Capacitive proximity sensor adjusting method applied to folding equipment and electronic equipment
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- HONOR DEVICE CO LTD
- Filing Date
- 2024-08-14
- Publication Date
- 2026-04-17
AI Technical Summary
When the folding screen of the folding device changes from a non-complete folding form to a fully folded form, the environmental capacitance value detected by the capacitive proximity sensor changes sharply, resulting in an increase in the probability of misjudging the human body's approaching capacitance value, affecting the adjustment accuracy of electromagnetic radiation.
By detecting the shape changes of the folding screen in electronic devices, adjusting the environmental offset data of the capacitive proximity sensor, so as to accurately eliminate the environmental capacitance value when the folding screen is in a fully folded form, and improve the detection accuracy of the human body's close capacitance value.
It reduces the misjudgment of environmental capacitance value changes caused by changes in the folding screen shape, improves the detection accuracy of capacitive proximity sensors on folding screen electronic devices, and ensures accurate judgment of human proximity and effective adjustment of electromagnetic radiation.
Smart Images

Figure CN121889686A_ABST
Abstract
Description
Capacitive proximity sensor adjustment method and electronic device used in folding equipment
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on November 30, 2023, with application number 202311637615.0 and application name “Capacitive proximity sensor adjustment method and electronic device applied to folding devices”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of terminals, and in particular to a capacitive proximity sensor adjustment method and electronic device for folding devices. Background Art
[0003] With the advancement of device technology, electronic devices are increasingly used in daily life. When users use electronic devices, excessive electromagnetic radiation from them can have certain impacts on human health. Currently, the specific absorption rate (SAR) is commonly used to measure the energy absorption rate of the human body when exposed to radiofrequency electromagnetic fields. The lower the SAR value, the less electromagnetic radiation is absorbed by the body.
[0004] To reduce the impact of electromagnetic radiation on users when using electronic devices, capacitive proximity sensors can be installed on electronic devices to detect the contact between the human body and the electronic device, thereby determining whether the SAR value absorbed by the human body exceeds the standard. When the capacitive proximity sensor detects that a person is approaching the electronic device, it can trigger the electronic device to adjust the modem's transmission power, reducing the impact of electromagnetic radiation on the human body. Therefore, improving the accuracy of capacitive proximity sensors in detecting whether a person is close to an electronic device has become a pressing issue.
[0005] Summary of the Invention
[0006] The present application provides a capacitive proximity sensor adjustment method and electronic device for foldable devices, which reduces the probability of misjudging the human body proximity capacitance value when the metal medium of screen B approaches the antenna connected to the capacitive proximity sensor of screen A when the folding screen of the electronic device is transformed from a non-fully folded form to a fully folded form, thereby improving the accuracy of the capacitive proximity sensor in detecting the human body proximity capacitance value on the foldable screen electronic device.
[0007] In the first aspect, the present application provides a capacitive proximity sensor adjustment method for a folding device, characterized in that it is applied to an electronic device with a folding screen and a capacitive proximity sensor, and the method includes: if the folding screen is changed from a non-fully folded form to a fully folded form, the electronic device detects the capacitance value within a first time period through the capacitive proximity sensor. The electronic device determines a first environmental capacitance value based on the capacitance value within the first time period. When the electronic device determines that the folding screen is in the fully folded form, the electronic device detects the first capacitance value through the capacitive proximity sensor. The electronic device determines a first human body proximity capacitance value based on the first capacitance value and the first environmental capacitance value. When the first human body proximity capacitance value is greater than a first preset threshold, the electronic device determines that a human body is approaching the electronic device.
[0008] In a possible implementation, after the electronic device determines that a human body is close to the electronic device, the method further includes: the electronic device triggering a modem to operate at a specified transmission power, or the electronic device lighting up a display screen.
[0009] In a possible implementation, the electronic device determines the first environmental capacitance value based on the capacitance value in the first time period, specifically including: the electronic device determines the lowest capacitance value that lasts for a first preset time period in the first time period as the first environmental capacitance value.
[0010] In one possible implementation, the electronic device determines a first human proximity capacitance value based on the first capacitance value and the first environmental capacitance value, specifically including: the electronic device subtracts the first environmental capacitance value from the first capacitance value to obtain the first human proximity capacitance value.
[0011] In one possible implementation, if the folding screen changes from a non-fully folded form to a fully folded form, before the electronic device detects the capacitance value within a first time period through the capacitive proximity sensor, the method also includes: when the Hall sensor detects that the folding screen is in a folded form, the capacitive proximity sensor detects that the lowest capacitance value that lasts for a first preset time period in the current time period is greater than a second preset threshold, and the electronic device allows calibration of the ambient capacitance, the electronic device determines that the folding screen is changed from a non-fully folded form to a fully folded form.
[0012] In one possible implementation, when the Hall sensor detects that the folding screen is in a folded form, the capacitive proximity sensor detects that the lowest capacitance value that has lasted for a first preset time period in the current time period is greater than a second preset threshold, and the electronic device allows calibration of the ambient capacitance, the electronic device determines that the folding screen is changed from a non-fully folded form to a fully folded form, specifically including: when the status flag of the Hall sensor is a first value, the capacitive proximity sensor detects that the lowest capacitance value that has lasted for a first preset time period is greater than a second preset threshold, and the calibration flag of the capacitive proximity sensor is a second value, the electronic device determines that the folding screen is changed from a non-fully folded form to a fully folded form.
[0013] In one possible implementation, the method further includes: when the electronic device determines that the foldable screen is in a non-fully folded state, the electronic device detects a second capacitance value. The electronic device determines a second human body proximity capacitance value based on the second capacitance value and a second environmental capacitance value. The second environmental capacitance value is the environmental capacitance value determined by the electronic device when the foldable screen is started in the non-fully folded state.
[0014] In one possible implementation, when the electronic device determines that the foldable screen is in a non-fully folded state, the electronic device detects a second capacitance value, specifically including: when the Hall sensor detects that the foldable screen is in a fully unfolded state, or when the Hall sensor detects that the foldable screen is in a folded state but the capacitive proximity sensor detects that the lowest capacitance value that lasts for a first preset time period in a current time period is less than a second preset threshold, the electronic device determines that the foldable screen is in a non-fully folded state. The electronic device detects the second capacitance value.
[0015] In one possible implementation, when the Hall sensor detects that the folding screen is in a fully unfolded form, or when the Hall sensor detects that the folding screen is in a folded form but the capacitive proximity sensor detects that the lowest capacitance value that has lasted for a first preset time period in the current time period is less than a second preset threshold, the electronic device determines that the folding screen is in a non-fully folded form, specifically including: when the status flag of the Hall sensor is a third value, or when the status flag of the Hall sensor is a first value, but the capacitive proximity sensor detects that the lowest capacitance value that has lasted for a first preset time period is less than the second preset threshold, the electronic device determines that the folding screen is in a non-fully folded form.
[0016] In a second aspect, embodiments of the present application provide an electronic device comprising: a capacitive proximity sensor, one or more processors, and one or more memories. The one or more memories and the capacitive proximity sensor are coupled to the one or more processors, and the one or more memories are configured to store a computer-executable program. When the one or more processors and the capacitive proximity sensor execute the computer-executable program, the electronic device performs the method described in any possible implementation of the first aspect.
[0017] In a third aspect, an embodiment of the present application provides a chip system, comprising a processing circuit and an interface circuit, wherein the interface circuit is used to receive code instructions and transmit them to the processing circuit, and the processing circuit is used to run the code instructions so that the chip system executes a method as in any possible implementation of the first aspect above.
[0018] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer-executable program. When the computer-executable program runs on an electronic device, the electronic device executes a method as in any possible implementation of the first aspect described above. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] FIG1A is a schematic diagram of a configuration structure of a capacitive proximity sensor provided in an embodiment of the present application;
[0020] FIG1B is a schematic diagram of a circuit structure involved in detecting capacitance values of a capacitive proximity sensor provided by an embodiment of the present application;
[0021] FIG1C is a schematic diagram of an implementation method of a capacitive proximity sensor provided by an embodiment of the present application for detecting the proximity capacitance of a human body;
[0022] FIG2A is a schematic diagram of a foldable screen electronic device with a capacitive proximity sensor provided by an embodiment of the present application;
[0023] FIG2B is a schematic diagram of another foldable screen electronic device with a capacitive proximity sensor provided by an embodiment of the present application;
[0024] FIG3A is a schematic diagram of a folding screen configuration provided by an embodiment of the present application;
[0025] FIG3B is a schematic diagram of another folding screen configuration provided by an embodiment of the present application;
[0026] FIG3C is a schematic diagram of another folding screen configuration provided by an embodiment of the present application;
[0027] FIG4 is a flow chart of a method for adjusting a capacitive proximity sensor applied to a foldable device according to an embodiment of the present application;
[0028] FIG5A is a schematic diagram of a process for detecting the folding screen form according to an embodiment of the present application;
[0029] FIG5B is a schematic diagram of a Hall sensor detection method provided in an embodiment of the present application;
[0030] FIG6 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0031] FIG7 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0032] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments and are not intended to limit the present application. As used in the specification and appended claims of this application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used in this application refers to any or all possible combinations including one or more of the listed features. In the embodiments of the present application, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as implying relative importance or implicitly indicating the number of technical features indicated. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise stated, the meaning of "multiple" is two or more.
[0033] First, the working principle of the capacitive proximity sensor involved in the embodiments of the present application is introduced.
[0034] FIG1A shows a configuration structure of a capacitive proximity sensor according to an embodiment of the present application.
[0035] As shown in FIG1A , a capacitive proximity sensor in an electronic device can be disposed between an overlay and a printed circuit board (PCB). The capacitive proximity sensor can detect the capacitance value around the sensor. As shown in (a) in FIG1A , when a human body is not close to the electronic device, the capacitance value detected by the capacitive proximity sensor is equal to the ambient capacitance value, where the ambient capacitance value is the capacitance value caused by the surrounding environment such as the components and layout around the capacitive proximity sensor, i.e., C SARsensor =C Env , where C SARsensor is the capacitance value detected by the capacitive proximity sensor, C Envis the environmental capacitance value. If the human body approaches the electronic device, as shown in (b) in Figure 1A, the capacitance value detected by the capacitive proximity sensor is the sum of the capacitance value triggered by the human body when the human body approaches the electronic device (also called the human body proximity capacitance value) and the environmental capacitance value, that is, C SARsensor =C Env +C User , where C User is the capacitance value close to the human body, C User It can be simulated as the capacitance of a parallel plate capacitor, and its calculation formula can be as follows: C User =ε0×ε r ×S÷d
[0036] Among them, ε0 is the space dielectric constant, ε r is the relative dielectric constant, S is the common area between the human body and the electronic device, and d is the distance between the human body and the electronic device.
[0037] FIG1B is a circuit structure involved in detecting capacitance values of a capacitive proximity sensor according to an embodiment of the present application.
[0038] As shown in FIG1B , the circuit structure may include: a multiplexer (MUX), a shield driver, an offset compensation module, a temperature sensor, a cap-to-voltage converter, and an analog-to-digital converter (ADC), etc.
[0039] The shield driver can be used to drive the MUX. The input of the MUX is the capacitance value of multiple detection points on the electronic device (as shown in Figure 1B). S0 、C S1 、C S2 ...C Si ), the output is the capacitance value detected by the capacitive proximity sensor (as shown in Figure 1B C SAR sensor ). Among them, the capacitance value detected by the capacitive proximity sensor can be the sum of the environmental capacitance value and the human body proximity capacitance value (when the human body is not close to the electronic device, the human body proximity capacitance value is 0). The capacitance value detected by the capacitive proximity sensor output by the MUX and the environmental offset data output by the offset compensation module can be used as inputs of the voltage converter. Among them, the environmental offset data is used to eliminate the environmental capacitance value, thereby obtaining the human body proximity capacitance value from the capacitance value detected by the capacitive proximity sensor. The voltage converter can convert the human body proximity capacitance value into a corresponding voltage (V as shown in Figure 1B user). The temperature sensor can be used to provide a temperature compensation value to ensure that the data detected by the capacitive proximity sensor does not change with changes in temperature. The analog-to-digital converter can be used to quantify the voltage corresponding to the human body proximity capacitance value, so that the subsequent digital processing unit (not shown in Figure 1B) can judge whether the human body is close to the electronic device based on the quantization result. In the embodiment of the present application, in order to simplify the description process, the detected human body proximity capacitance value is directly used to judge whether the human body is close to the electronic device, and the implementation details of converting the human body proximity capacitance value into the corresponding voltage and making a judgment based on the voltage are not described.
[0040] FIG1C shows an implementation method of a capacitive proximity sensor for detecting a human body approaching capacitance value in an embodiment of the present application.
[0041] Because the capacitance value detected by a capacitive proximity sensor is the sum of the ambient capacitance value and the human proximity capacitance value, to obtain the human proximity capacitance value from the capacitance value detected by the capacitive proximity sensor, it is necessary to use environmental offset data to eliminate the ambient capacitance value from the capacitance value detected by the capacitive proximity sensor.
[0042] Specifically, after the electronic device leaves the factory, if the devices and their layout in the surrounding space where the capacitive proximity sensor is located are fixed and do not change significantly, when there is no human body approaching, the capacitance value detected by the capacitive proximity sensor (that is, the environmental capacitance value) will usually be relatively stable, and the rapid change in capacitance value is usually caused by the human body approaching the electronic device. Therefore, based on this feature, the specific implementation method of the electronic device determining the environmental offset data is as follows: When the electronic device is started, the capacitive proximity sensor can detect the capacitance change. When the capacitive proximity sensor detects the lowest capacitance value that lasts for a preset duration of 1 in the current time period, the electronic device determines the lowest capacitance value as the environmental capacitance value, and the value of the environmental offset data is the same as the environmental capacitance value. In this way, the electronic device can avoid the situation where the human body proximity capacitance value is also misjudged as the environmental capacitance value when the user holds the electronic device and starts it, thereby improving the accuracy of the electronic device in detecting the environmental capacitance value.
[0043] After the electronic device determines the environmental offset data, the specific implementation method of the electronic device detecting the human body proximity capacitance value is as follows: when the capacitive proximity sensor detects a capacitance value at a certain point in time, the capacitive proximity sensor can subtract the environmental offset data from the capacitance value detected by the capacitive proximity sensor at that point in time to obtain the human body proximity capacitance value at that point in time.
[0044] As shown in Figure 1C, curve L1 can be used to indicate environmental offset data. Curve L2 is a curve showing the change in capacitance detected by the capacitive proximity sensor over time. Curve L3 is a curve showing the change in the difference value obtained by subtracting the environmental offset data from the capacitance detected by the capacitive proximity sensor over time. For example, a time point T1 is selected. The capacitance value detected by the capacitive proximity sensor at time T1 is A2, and the environmental offset data is A1. Therefore, the difference value A2-A1=A3 is the value of curve L3 at time T1, and A3 is the human body proximity capacitance value.
[0045] In the embodiments of the present application, FIG. 1A to FIG. 1C are only used to exemplify the present application and do not constitute a limitation to the present application.
[0046] When the capacitive proximity sensor detects a human body approaching the electronic device, it determines whether the human body approaching the electronic device is greater than a preset threshold 1. If the human body approaching the electronic device is less than the threshold 1, the capacitive proximity sensor determines that the user is not near the electronic device. If the human body approaching the electronic device is greater than the threshold 1, the capacitive proximity sensor determines that the user is near the electronic device. Therefore, the capacitive proximity sensor can trigger the electronic device to adjust the modem's transmit power, making the modem's transmit power lower when a human body is near than when a human body is not near, thereby reducing the impact of electromagnetic radiation on the human body.
[0047] However, if the electronic device is a foldable electronic device (which can be simply referred to as a foldable device), such as a foldable device or a retractable device with a foldable screen, one of the significant differences in hardware between foldable devices / retractable devices and non-foldable / non-retractable devices is that the relative spatial positions of the components of the non-foldable / non-retractable device are fixed, while the spatial layout of the components of the foldable device / retractable device is variable. That is, during the folding / retracting process, the relative spatial positions of the components of the foldable device / retractable device change, and after the folding / retracting operation is completed, there are different spatial position relationships between the components of the foldable device / retractable device corresponding to different degrees of folding / retracting. In this way, the devices and their layout in the surrounding space of the capacitive proximity sensor will change due to the degree of folding / retracting, resulting in a large change in the ambient capacitance value.
[0048] The following embodiments of this application are described using a foldable electronic device (which may be referred to as a foldable screen electronic device) as an example. It should be noted that the electronic device may be a foldable electronic device as illustrated in the subsequent embodiments of Figures 3A-3C. In some embodiments, the electronic device may also be a foldable device such as a tri-fold electronic device with a foldable screen, a retractable electronic device, or the like. In other words, this application does not limit the specific folding form of the electronic device or the connection method of the screen.
[0049] Figures 2A-2B show a folding screen electronic device with a capacitive proximity sensor according to an embodiment of the present application.
[0050] As shown in Figure 2A, exemplarily, the capacitive proximity sensor may include: a capacitive proximity sensor chip and an antenna connected to the chip. For example, the A screen of the folding screen electronic device (which may be referred to as an electronic device in the embodiment of the present application) has a capacitive proximity sensor chip inside, and two antennas are provided on the A screen of the folding screen electronic device: antenna A and antenna B. The capacitive proximity sensor chip can be connected to antenna A and antenna B through a line. The capacitive proximity sensor chip can determine whether the human body is close to the electronic device by detecting the capacitance values of antenna A and antenna B. In other words, the capacitance value detected by the capacitive proximity sensor chip through antenna A and antenna B is the capacitance value detected by the capacitive proximity sensor. In addition, the B screen of the electronic device may also be provided with a metal medium C.
[0051] When the user folds the folding screen of a folding screen electronic device in half and the shape of the folding screen electronic device changes from a non-fully folded shape to a fully folded shape, the environment around the capacitive proximity sensor changes significantly, resulting in a large difference between the environmental capacitance value of the electronic device in the non-fully folded shape and the current actual environmental capacitance value. That is, the environmental offset data used by the electronic device in the non-fully folded shape cannot effectively eliminate the current environmental capacitance value, thereby making the detected human body proximity capacitance value greater than the actual human body proximity capacitance value. Therefore, in this case, when the capacitive proximity sensor triggers the electronic device to adjust the modem transmission power, the distance between the human body and the electronic device is greater than the set distance (that is, the distance corresponding to the preset threshold 1). It may even happen that when the human body is not close to the electronic device, the capacitive proximity sensor still triggers the electronic device to reduce the modem transmission power, affecting the communication efficiency of the electronic device.
[0052] As shown in FIG2B , for example, taking the structure of the folding screen electronic device in FIG2A as an example, when the folding screen electronic device is folded in half and the folding screen electronic device changes from a non-fully folded form to a fully folded form, the metal medium C of screen B is close to the antenna B of screen A, and the metal medium C will cause an induced capacitance value, which is a part of the current ambient capacitance value. If the folding screen electronic device uses the ambient offset data in the non-fully folded form to eliminate the ambient capacitance value, the current ambient capacitance value cannot be eliminated well, resulting in the uneliminated part of the ambient capacitance value being misjudged as the human body proximity capacitance value, making the detected human body proximity capacitance value greater than the actual human body proximity capacitance value, thereby causing the capacitive proximity sensor to trigger the electronic device to adjust the modem transmission power when the distance of the human body close to the electronic device is greater than the set distance (i.e., the distance corresponding to the preset threshold value). It may even happen that when the human body is not close to the electronic device, the capacitive proximity sensor still triggers the electronic device to adjust the modem transmission power, affecting the communication efficiency of the electronic device.
[0053] Therefore, the present application provides a capacitive proximity sensor adjustment method for a folding device, comprising: the electronic device can detect a capacitance value through a capacitive proximity sensor. The capacitance value detected by the capacitive proximity sensor is the sum of the human body proximity capacitance value and the environmental capacitance value, and the human body proximity capacitance value is the capacitance value triggered when the human body approaches the electronic device. The electronic device can detect whether the folding screen is changed from a non-fully folded form to a fully folded form. When the folding screen is changed from a non-fully folded form to a fully folded form, the electronic device can adjust the environmental offset data 1 to the environmental offset data 2 based on the currently determined environmental capacitance value. The environmental offset data 1 is used to eliminate the environmental capacitance value in the capacitance value detected by the capacitive proximity sensor when the folding screen is not in a fully folded form, and the environmental offset data 2 is used to eliminate the environmental capacitance value in the capacitance value detected by the capacitive proximity sensor when the folding screen is in a fully folded form. When the folding screen is in a fully folded form, and the electronic device detects that the human body proximity capacitance value is greater than a preset threshold 1 through the capacitive proximity sensor based on the environmental offset data 2, the electronic device determines that the human body is approaching the electronic device.
[0054] In this way, implementing the capacitive proximity sensor adjustment method for foldable devices provided in the present application can reduce the probability of misjudging the human body proximity capacitance value when the metal medium of screen B approaches the antenna connected to the capacitive proximity sensor of screen A when the folding screen of the electronic device is transformed from a non-fully folded form to a fully folded form, thereby improving the accuracy of the capacitive proximity sensor in detecting the human body proximity capacitance value on the folding screen electronic device.
[0055] Next, an electronic device with a foldable screen according to an embodiment of the present application is introduced.
[0056] The foldable screen on the electronic device can form at least two screens. For example, the foldable screen can be folded along a folding edge or a folding axis to form a first screen and a second screen.
[0057] Among them, the folding methods of folding screens on electronic devices can be divided into two categories. One is a folding screen that folds outward (referred to as an outward-folding folding screen), and the other is a folding screen that folds inward (referred to as an inward-folding folding screen). Among them, take the folding screen that can be folded to form a first screen and a second screen as an example. After the outward-folding folding screen is folded, the display direction of the first screen and the display direction of the second screen are opposite to each other. After the inward-folding folding screen is folded, the display direction of the first screen and the display direction of the second screen are opposite. In the embodiment of the present application, the first screen can be called screen A and the second screen can be called screen B.
[0058] For example, the form of the outward-folding folding screen provided in the embodiment of the present application may be as follows:
[0059] Please refer to Figure 3A, which shows a schematic diagram of the product form of an electronic device with an outward folding screen provided in an embodiment of the present application. Among them, (a) in Figure 3A is a schematic diagram of the form of the outward folding screen when it is fully unfolded. The outward folding screen can be folded along the folding edge in the directions 11a and 11b shown in (a) in Figure 3A to form a semi-folded screen A (i.e., the first screen) and screen B (i.e., the second screen) as shown in (b) in Figure 3A. The outward folding screen can continue to be folded along the folding edge in the directions 12a and 12b shown in (b) in Figure 3A to form a fully folded outward folding screen as shown in (c) in Figure 3A. As shown in (c) in Figure 3A, after the folding screen of the electronic device is completely folded, screen A (i.e., the first screen) and screen B (i.e., the second screen) are facing each other and are visible to the user.
[0060] It can be understood that for an electronic device with an outward-folding folding screen, when the folding screen is in a fully folded state or a semi-folded state, the electronic device can display the interface content on screen A (i.e., the first screen) or screen B (i.e., the second screen). When the folding screen is in a fully unfolded state, the electronic device can display the interface content on screen A (i.e., the first screen) and screen B (i.e., the first screen). Among them, the introduction to the fully folded state, semi-folded state, and fully unfolded state of the folding screen can be referred to the description in the following embodiments and will not be repeated here.
[0061] For example, the form of the inward folding screen provided in the embodiment of the present application may be as follows:
[0062] Please refer to Figure 3B, which shows a schematic diagram of the product form of an electronic device with an inward folding screen provided in an embodiment of the present application. Among them, (a) in Figure 3B is a schematic diagram of the fully unfolded form of the inward folding screen. The inward folding screen can be folded along the folding edge in the directions 21a and 21b shown in (a) in Figure 3B to form a semi-folded screen A and screen B as shown in (b) in Figure 3B. The inward folding screen can continue to be folded along the folding edge in the directions 22a and 22b shown in (b) in Figure 3B to form a fully folded outward folding screen as shown in (c) in Figure 3B. As shown in (c) in Figure 3B, after the folding screen of the electronic device is fully folded, screen A and screen B are opposite and invisible to the user.
[0063] It should be noted that a display screen may be further provided on the back of the first screen or the second screen of the inward folding screen provided in the embodiment of the present application, and the display screen may be referred to as a third screen. As shown in FIG3C , a C screen (i.e., the third screen) may be provided on the back of the A screen (i.e., the first screen). After the inward folding screen is fully folded, the C screen faces the A screen in reverse, and the C screen is visible to the user. It is understandable that for electronic devices with such an inward folding screen, when the folding screen is in a fully folded form, the interface may be displayed on the third screen; when the folding screen is in a semi-folded form, the interface may be displayed on the first screen, the second screen, and the third screen; when the folding screen is in a fully unfolded state, the interface may be displayed on the first screen and the second screen.
[0064] In an embodiment of the present application, the angle α between screen A and screen B of the folding screen of the electronic device (including the inward-folding folding screen and the outward-folding folding screen) has a value range of [0°, 180°]. Among them, if α∈[0°, P1], the electronic device can determine that the folding screen is in a fully folded form; if α∈(P1, P2), the electronic device can determine that the folding screen is in a semi-folded form; α∈[P2, 180°], the electronic device can determine that the folding screen is in a fully unfolded form. Among them, 0°<P1<P2<180°. P1 and P2 can be preset angle thresholds. P1 and P2 can be determined based on the usage habits of a large number of users using folding screens; or, P1 and P2 can be set by the user in the electronic device.
[0065] In some embodiments, according to the usage habits of most users, when the angle α between screen A and screen B is greater than 150°, the user is more likely to want to use screen A and screen B as a whole (i.e., as a complete display screen). When the angle α between screen A and screen B is less than 30 degrees, the user is more likely to want to use screen A or screen B alone, and the folding screen can be in a fully folded form. Therefore, in the embodiment of the present application, the value range of the preset angle threshold P1 can be (0, 30°), and the value range of the preset angle threshold P2 can be (150°, 180°). For example, the preset angle threshold P1 can be 5°, 10°, 15°, 20°, etc. The preset angle threshold P2 can be 155°, 160°, 165° or 170°, etc. The specific implementation method of the electronic device detecting the angle between screen A and screen B will be described in detail in subsequent embodiments and will not be repeated here.
[0066] The folding screen (including the inward-folding folding screen and the outward-folding folding screen) in the embodiment of the present application is folded to form at least two screens. It can be multiple independent screens, or it can be a complete screen with an integrated structure, which is folded into at least two parts.
[0067] For example, the foldable screen can be a flexible foldable screen, including folding edges made of a flexible material. Part or all of the flexible foldable screen is made of a flexible material. When the flexible foldable screen is folded, the at least two screens formed are a complete screen with an integrated structure, but are folded into at least two parts.
[0068] For another example, the foldable screen may be a multi-screen foldable screen. The multi-screen foldable screen may include multiple (two or more) screens. These multiple screens are multiple independent display screens. These multiple screens may be connected in sequence via folding axes. Each screen may rotate about the folding axis connected to it, thereby folding the multi-screen foldable screen.
[0069] 3A, 3B, and 3C illustrate the folding screen in the embodiment of the present application by taking a flexible folding screen as an example. Furthermore, in subsequent embodiments of the present application, the method provided in the embodiment of the present application is also illustrated by taking a flexible folding screen as an example.
[0070] For example, the electronic device in the embodiments of the present application may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, as well as a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) or virtual reality (VR) device, etc., including the above-mentioned folding screen. The embodiments of the present application do not impose any special restrictions on the specific type of the electronic device.
[0071] FIG4 is a flow chart of a method for adjusting a capacitive proximity sensor applied to a foldable device, provided in an embodiment of the present application.
[0072] As shown in FIG4 , the process of the method may specifically include:
[0073] S401: When the electronic device is not in the fully folded state and is started, the electronic device may determine environmental offset data 1 through the capacitive proximity sensor. The environmental offset data 1 is used to eliminate the environmental capacitance value in the capacitance value detected by the capacitive proximity sensor when the foldable screen is not in the fully folded state.
[0074] Specifically, when the electronic device is not in a fully folded state when it is started, the capacitive proximity sensor can be in a calibration state, at which time the capacitive proximity sensor can detect changes in capacitance. When the capacitive proximity sensor detects that the lowest capacitance value that lasts for a preset duration of 1 in the current time period is a value of 1, the electronic device determines this value of 1 as the current ambient capacitance value. Therefore, the electronic device can determine the value of the ambient offset data 1 as a value of 1. In this way, the electronic device can avoid the situation where the human body proximity capacitance value is also mistakenly judged as the ambient capacitance value when the user holds the electronic device to start it, thereby improving the accuracy of the electronic device in detecting the ambient capacitance value.
[0075] In an embodiment of the present application, the electronic device determines that the folding screen is not in a fully folded form when it detects that the following conditions are met: the electronic device detects that the status flag of the Hall sensor is 0, or detects that the status flag of the Hall sensor is 1 but the lowest capacitance value detected by the capacitive proximity sensor in the current time period that lasts for a preset duration 1 is less than a preset threshold 2 (also referred to as a second preset threshold).
[0076] Among them, the status flag of the Hall sensor can be used to indicate whether the Hall sensor detects that the folding screen is in a folded state, and the folding state can include: a semi-folded state and a fully folded state. The semi-folded state is that the angle of the folding screen is between the first angle and the second angle, and the fully folded state is that the angle of the folding screen is between the second angle and the third angle, the third angle (for example, 0 degrees, etc.) is smaller than the second angle (for example, 30 degrees, etc.), and the second angle (for example, 30 degrees, etc.) is smaller than the first angle (for example, 150 degrees, etc.). The specific values of the first angle, the second angle, and the third angle are not limited in this application.
[0077] S402: The electronic device continuously detects a capacitance value through a capacitive proximity sensor, wherein the capacitance value detected by the capacitive proximity sensor is the sum of a human body proximity capacitance value and an environmental capacitance value.
[0078] In an embodiment of the present application, when the capacitive proximity sensor is in a normal operating state rather than a calibration state, the capacitive proximity sensor can eliminate the environmental capacitance value from the capacitance value detected by the capacitive proximity sensor based on environmental offset data (e.g., environmental offset data 1 or subsequent environmental offset data 2), thereby obtaining a human proximity capacitance value. The electronic device can determine whether a human body is close to the electronic device based on whether the human proximity capacitance value is greater than a preset threshold 1.
[0079] S403: The electronic device detects whether the folding screen changes from a non-fully folded state to a fully folded state.
[0080] Specifically, when the user folds the folding screen on the electronic device in half and the shape of the folding screen changes from a non-fully folded shape to a fully folded shape, the environment around the capacitive proximity sensor changes significantly, resulting in a large difference between the environmental capacitance value determined by the electronic device in the non-fully folded shape and the current actual environmental capacitance value. That is, the electronic device cannot use the environmental offset data 1 to better eliminate the current environmental capacitance value. Therefore, the part of the current environmental capacitance value that is not eliminated is mistakenly judged as the human body proximity capacitance value, so that the human body proximity capacitance value detected by the electronic device is greater than the actual human body proximity capacitance value.
[0081] Therefore, when the electronic device detects that the folding screen changes from a non-fully folded form to a fully folded form, the electronic device needs to adjust the environmental offset data 1 so that the adjusted environmental offset data can better eliminate the environmental capacitance value in the capacitance value detected by the capacitive proximity sensor when the folding screen is in the fully folded form, thereby obtaining the accurate human body proximity capacitance value when the user approaches the electronic device when the folding screen is in the fully folded form.
[0082] Among them, the specific method for the electronic device to detect whether the folding screen has changed from a non-fully folded form to a fully folded form will be described in detail in subsequent embodiments.
[0083] S404: When the foldable screen changes from the partially folded state to the fully folded state, the electronic device adjusts the environmental offset data 1 to environmental offset data 2 based on the currently determined environmental capacitance value. The environmental offset data 2 is used to eliminate the environmental capacitance value from the capacitance value detected by the capacitive proximity sensor when the foldable screen is in the fully folded state.
[0084] In an embodiment of the present application, when the folding screen is transformed from a non-fully folded form to a fully folded form, the capacitive proximity sensor may be in a calibration state. The capacitive proximity sensor may detect that the lowest capacitance value that lasts for a preset duration 1 in the current time period is a value 2, and determine this value 2 as the current ambient capacitance value. Therefore, the electronic device may determine the ambient offset data 2 as the value 2. In this way, the electronic device can avoid misjudging the human body proximity capacitance value as the ambient capacitance value when the user holds the electronic device and folds it, thereby improving the accuracy of the electronic device in detecting the ambient capacitance value.
[0085] Exemplarily, the "current time period" described in this step may be the first time period closest to the time when the folding screen is detected to be transformed from a non-fully folded form to a fully folded form. Therefore, if the folding screen is transformed from a non-fully folded form to a fully folded form, the electronic device may detect the capacitance value within the first time period. Then, the electronic device determines that the lowest capacitance value that lasts for a preset duration 1 (which may be referred to as the first preset duration) in the first time period is a value 2, and the electronic device determines that the value 2 is the environmental capacitance value (which may be referred to as the first environmental capacitance value), and the value of the environmental offset data 2 is the same as the first environmental capacitance value.
[0086] S405: When the folding screen is in a fully folded state, the electronic device detects the human body approaching capacitance value through the capacitive proximity sensor based on the environmental offset data 2.
[0087] Specifically, when the foldable screen is in a fully folded state and the capacitive proximity sensor is in normal operation rather than calibration, the electronic device can eliminate the ambient capacitance value from the capacitance value detected by the capacitive proximity sensor based on environmental offset data 2, thereby obtaining a human proximity capacitance value. The electronic device can also determine whether a human body is close to the electronic device based on whether the human proximity capacitance value is greater than a preset threshold 1.
[0088] For example, if the folding screen is in a fully folded form, the capacitance value detected by the capacitive proximity sensor is 1000 (which can be called the first capacitance value). If the environmental offset data 2 is 350, the human body proximity capacitance value detected by the capacitive proximity sensor = the capacitance value detected by the capacitive proximity sensor - the environmental offset data 2, so the human body proximity capacitance value is 1000-350=650 (which can be called the first human body proximity capacitance value). Among them, the capacitance value detected by the capacitive proximity sensor - the environmental offset data 2, that is, the electronic device eliminates the environmental capacitance value in the capacitance value detected by the capacitive proximity sensor according to the environmental offset data 2.
[0089] S406: When the folding screen is in a non-fully folded state, the electronic device detects the human body approaching capacitance value through the capacitive proximity sensor based on the environmental offset data 1.
[0090] Specifically, if the foldable screen is not in the fully folded state, the capacitive proximity sensor can eliminate the ambient capacitance value from the capacitance value detected by the capacitive proximity sensor based on environmental cancellation data 1, thereby obtaining a human proximity capacitance value. The electronic device can determine whether a human body is close to the electronic device based on whether the human proximity capacitance value is greater than a preset threshold 1.
[0091] Exemplarily, if the folding screen is not in a fully folded form, the capacitance value detected by the capacitive proximity sensor is 1000 (which can be called the second capacitance value). If the environmental offset data 1 is 250, the human body proximity capacitance value detected by the capacitive proximity sensor = the capacitance value detected by the capacitive proximity sensor - the environmental offset data 1, so the human body proximity capacitance value is 1000-250=750 (which can be called the second human body proximity capacitance value). Among them, the value of the environmental offset data 1 is the environmental capacitance value when the folding screen is in a non-fully folded form (which can be called the second environmental capacitance value), and the capacitance value detected by the capacitive proximity sensor - the environmental offset data 1, that is, the electronic device eliminates the environmental capacitance value in the capacitance value detected by the capacitive proximity sensor according to the environmental offset data 1.
[0092] S407: When the electronic device detects that the human body is approaching the electronic device and the capacitance value is greater than the preset threshold 1, the electronic device determines that the human body is approaching the electronic device.
[0093] Among them, the value of the preset threshold 1 (also called the first preset threshold) can be 5000, 7000, etc., that is, this application does not limit the specific value of this preset threshold 1.
[0094] S408: The electronic device triggers the modem to operate at the specified transmission power.
[0095] In an embodiment of the present application, when the electronic device determines that a human body is close to the electronic device, the electronic device can trigger the modem to operate at a specified transmission power, so that the transmission power of the modem when the human body is close is lower than the transmission power when the human body is not close, thereby reducing the impact of electromagnetic radiation on the user when using the electronic device and protecting human health.
[0096] In some embodiments, when the electronic device determines that a human body is close to the electronic device, the electronic device can light up the display screen.
[0097] Furthermore, each step shown in FIG4 in the embodiment of the present application is described in detail.
[0098] As shown in FIG5A , the specific implementation process of step S403 may include:
[0099] S501: The electronic device detects the status flag of the Hall sensor.
[0100] The status flag of the Hall sensor can be used to indicate whether the Hall sensor detects that the folding screen is in a folded state. The folding states can include: a semi-folded state and a fully folded state. The semi-folded state means that the angle of the folding screen is between a first angle and a second angle. The fully folded state means that the angle of the folding screen is between the second angle and a third angle, where the third angle is smaller than the second angle, and the second angle is smaller than the first angle.
[0101] S502: When detecting that the status flag of the Hall sensor changes from 0 to 1, the electronic device sets the calibration flag of the capacitive proximity sensor to 1.
[0102] The capacitive proximity sensor calibration flag is used to indicate whether the electronic device allows calibration of the ambient capacitance value, thereby adjusting the ambient offset data. The capacitive proximity sensor calibration flag defaults to 0.
[0103] In an embodiment of the present application, when the status flag of the Hall sensor changes from 0 to 1, it indicates that the folding screen has changed from a non-fully folded form to a folded form (including a semi-folded form and a fully folded form). In other words, the Hall sensor detects whether the folding screen is in a folded form. To determine whether the folding screen is in a fully folded form, the electronic device must subsequently determine whether the lowest capacitance value detected by the capacitive proximity sensor in the current time period that lasts for a preset duration 1 is greater than a preset threshold 2.
[0104] In some embodiments, when the electronic device detects that the status flag of the Hall sensor is 0, the electronic device may set the calibration flag of the capacitive proximity sensor to 1.
[0105] S503: When it is detected that the status flag of the Hall sensor is 1, the electronic device may detect the current capacitance value through the capacitive proximity sensor.
[0106] Among them, the status flag of the Hall sensor is 1, indicating that the Hall sensor detects that the folding screen is in the folded state.
[0107] S504: The electronic device determines whether the lowest capacitance value detected by the capacitive proximity sensor in the current time period and lasting for a preset duration 1 is greater than a preset threshold 2.
[0108] Among them, the lowest capacitance value that lasts for a preset time length of 1 in the current time period can be characterized as the current ambient capacitance value. When the status flag of the Hall sensor is 1, and the lowest capacitance value that lasts for a preset time length of 1 in the current time period is greater than the preset threshold 2, it is also characterized that the distance between the display screen on the side where the capacitive proximity sensor is not set (for example, screen B shown in Figure 3A) and the display screen where the capacitive proximity sensor is set (for example, screen A shown in Figure 3A) is less than the preset distance threshold. In other words, when the status flag of the Hall sensor is 1 and the lowest capacitance value that lasts for a preset time length of 1 is greater than the preset threshold 2, the folding screen is in a fully folded state.
[0109] In some embodiments, the electronic device may also determine in this step whether the difference between the lowest capacitance value detected by the capacitive proximity sensor and the environmental offset data 1 in the current time period that lasts for a preset time length 1 is greater than a preset threshold 3. If yes and the status flag of the Hall sensor is 1, the folding screen is in a fully folded form. If not and the status flag of the Hall sensor is 1, the folding screen is not in a fully folded form but in a semi-folded form. It can be understood that the difference between the lowest capacitance value detected by the capacitive proximity sensor and the environmental offset data 1 in the current time period that lasts for a preset time length 1 is caused by the display screen on the side where the capacitive proximity sensor is not set approaching the display screen on which the capacitive proximity sensor is set. Therefore, the difference can more directly represent the distance between screen A and screen B.
[0110] In an embodiment of the present application, the preset threshold 2 may be obtained by testing the electronic device before it leaves the factory. Specifically, before leaving the factory, the electronic device may measure the environmental capacitance value corresponding to the maximum angle between screen A and screen B when the folding screen is in a fully folded form (such as the aforementioned second angle), and then determine the preset threshold 2 based on the environmental capacitance value. For example, the preset threshold 2 may be equal to the environmental capacitance value, or the preset threshold 2 may be equal to the environmental capacitance value plus an error threshold. The preset threshold 3 may be determined based on the preset threshold 2, for example, the preset threshold 3 may be equal to the preset threshold 2 minus the environmental offset data 1, or the preset threshold 3 may be equal to the preset threshold 2 minus the environmental offset data 1 plus the error threshold. It is understandable that since the components of each electronic device have errors in material and layout, the preset threshold 2 corresponding to each electronic device is also different.
[0111] S505: When it is determined that the lowest capacitance value that lasts for the preset duration 1 in the current time period is greater than the preset threshold 2, the electronic device determines whether the calibration flag of the capacitive proximity sensor is 1.
[0112] The calibration flag of the capacitive proximity sensor is 1, which is used to indicate that the electronic device allows calibration of the environmental capacitance value, thereby adjusting the environmental offset data according to the calibrated environmental capacitance value.
[0113] S506: When it is determined that the calibration flag of the capacitive proximity sensor is 1, the electronic device determines that the folding screen is transformed from a non-fully folded form to a fully folded form, and executes step S404.
[0114] Specifically, when the status flag of the Hall sensor is 1, the lowest capacitance value detected by the capacitive proximity sensor in the current time period that lasts for a preset duration 1 is greater than the preset threshold 2, and the calibration flag of the capacitive proximity sensor is 1, the electronic device determines that the folding screen has changed from a non-fully folded form to a fully folded form, and the capacitive proximity sensor can be in a calibration state. The electronic device executes S404, calibrates the ambient capacitance value through the capacitive proximity sensor, and adjusts the ambient offset data 1 to the ambient offset data 2 according to the calibrated ambient capacitance value.
[0115] S507: The electronic device sets the calibration flag of the capacitive proximity sensor to 0.
[0116] In the embodiment of the present application, the electronic device may change the calibration flag of the capacitive proximity sensor from 1 to 0 before or after executing S404, and this application does not limit this. When the calibration flag of the capacitive proximity sensor is 0, it indicates that the electronic device does not allow calibration of the ambient capacitance value.
[0117] S508: When it is detected that the status flag of the Hall sensor is 0, the electronic device determines that the folding screen is in a fully unfolded state and executes step S406.
[0118] In some possible implementations, when the status flag of the Hall sensor is 1, and the minimum capacitance value detected by the capacitive proximity sensor in the current time period that lasts for a preset duration 1 is less than a preset threshold 2, the electronic device can determine that the shape of the folding screen is a semi-folded shape, not a fully folded shape, so the electronic device can execute S406.
[0119] In some possible implementations, when the status flag of the Hall sensor is 1, the lowest capacitance value detected by the capacitive proximity sensor for a preset time duration 1 is greater than a preset threshold 2, and the calibration flag of the capacitive proximity sensor is 0, the electronic device determines that the current folding screen is in a fully folded state and the capacitive proximity sensor is in a normal working state, and the electronic device executes S405.
[0120] Implementing the process shown in Figure 5A, combining the capacitive proximity sensor and the Hall sensor to identify the form of the folding screen, can solve the problem of low accuracy in identifying the form of the folding screen using only the Hall sensor. As shown in Figure 5B, the status flag of the Hall sensor used to indicate the form of the folding screen has only two values. When the folding screen is in a fully expanded form (the angle of the folding screen in the example of Figure 5B is 180 degrees), the status flag of the Hall sensor is 0; however, when the angle between the folding screens is less than or equal to the first angle (the angle of the folding screen in the example of Figure 5B is 150 degrees), the status flag of the Hall sensor is 1. In other words, using a Hall sensor alone can determine whether the folding screen is in a folded form or in a fully expanded form, but cannot accurately determine whether the folding screen is in a fully folded form. However, implementing the process shown in Figure 5A, combining the capacitive proximity sensor and the Hall sensor can accurately determine whether the folding screen is in a fully expanded form, a semi-folded form or a fully folded form.
[0121] It is understandable that the embodiments of the present application do not limit the specific values of the status flag of the Hall sensor and the specific values of the calibration flag of the capacitive proximity sensor. In other words, in addition to using 0 / 1 to represent the corresponding meaning, other values can also be used to represent the corresponding meaning. Specifically, when the status flag of the Hall sensor is the first value, it indicates that the Hall sensor detects that the folding screen is in a folded state; when the status flag of the Hall sensor is the third value, it indicates that the Hall sensor detects that the folding screen is in a fully unfolded state; when the calibration flag of the capacitive proximity sensor is the second value, it indicates that the electronic device allows calibration of the ambient capacitance.
[0122] FIG6 shows a device structure of an electronic device provided in an embodiment of the present application.
[0123] As shown in Figure 6, the device structure of the electronic device may include: a Hall sensor, a capacitive proximity sensor, an application processor AP, and a modem. The capacitive proximity sensor may include a folding screen shape determination module, an environmental capacitance value calibration module, and a human body proximity determination module, wherein:
[0124] The Hall effect sensor can be used to detect whether the foldable screen is in the folded state. When the foldable screen is detected to be in the fully unfolded state, the Hall effect sensor can send a status flag of 0 to the foldable screen state determination module in the capacitive proximity sensor. When the foldable screen is detected to be in the folded state, the Hall effect sensor can send a status flag of 1 to the foldable screen state determination module in the capacitive proximity sensor.
[0125] The capacitive proximity sensor can be used to detect capacitance values, calibrate ambient capacitance values to adjust ambient offset data, determine the human body proximity capacitance value based on the detected capacitance value, determine whether the human body proximity capacitance value is greater than a preset threshold 1, etc. As shown in Figure 6, the folding screen form judgment module in the capacitive proximity sensor can receive the value of the status flag sent by the Hall sensor and judge the form of the folding screen based on the value of the Hall sensor status flag, for example, determining whether the folding screen is in a non-fully folded form / fully folded form, determining whether the folding screen has changed from a non-fully folded form to a fully folded form, etc. Then, when the folding screen form judgment module determines that the folding screen has changed from a non-fully folded form to a fully folded form, it can send calibration indication information to the ambient capacitance value calibration module, triggering the ambient capacitance value calibration module to calibrate the ambient capacitance value and adjust the ambient offset data according to the calibrated ambient capacitance value. The human body proximity judgment module can be used to determine whether the human body proximity capacitance value is greater than a preset threshold 1. If so, it can send human body proximity indication information to the application processor AP. The human body proximity indication information is used to indicate that a human body is close to the electronic device. The specific implementation method can refer to the aforementioned embodiment.
[0126] After receiving the human proximity indication information, the application processor (AP) can perform corresponding operations. For example, as shown in FIG6 , the AP can send a transmit power adjustment message to the modem, triggering the modem to operate at a specified transmit power. The specified transmit power is lower than the transmit power when the human body is not near the electronic device.
[0127] FIG6 is merely used to exemplify the present application and does not constitute any limitation to the present application.
[0128] FIG7 shows a hardware structure of an electronic device 100 provided in an embodiment of the present application.
[0129] In the embodiment of the present application, the electronic device 100 is the electronic device described in the above embodiment.
[0130] As shown in FIG7 , the electronic device 100 may include a processor 701 , a memory 702 , a wireless communication module 703 (optional), a display screen 704 , a sensor module 705 , an audio module 706 (optional) and a microphone 707 (optional).
[0131] It is understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than those shown in FIG7 , or may combine or separate certain components, or arrange the components differently. The components shown in FIG7 may be implemented in hardware, software, or a combination of software and hardware.
[0132] The processor 701 may include one or more processor units. For example, the processor 701 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors. The controller may generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution.
[0133] Processor 701 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in processor 701 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 701. If processor 701 needs to use the same instruction or data again, it can directly call it from the memory. This avoids repeated accesses, reduces the waiting time of processor 701, and thus improves system efficiency.
[0134] In some embodiments, the processor 701 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a USB interface.
[0135] The memory 702 is coupled to the processor 701 and is used to store various software programs and / or multiple sets of instructions. In a specific implementation, the memory 702 may include a volatile memory (volatile memory), such as a random access memory (RAM); it may also include a non-volatile memory (non-volatile memory), such as a ROM, a flash memory (flash memory), a hard disk drive (HDD) or a solid state drive (SSD); the memory 702 may also include a combination of the above types of memories. The memory 702 may also store some program codes so that the processor 701 calls the program code stored in the memory 702 to implement the implementation method of the embodiment of the present application in the electronic device 100. The memory 702 can store an operating system, such as an embedded operating system such as uCOS, VxWorks, or RTLinux.
[0136] The wireless communication module 703 can provide wireless communication solutions applied to the electronic device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc. The wireless communication module 703 can be one or more devices integrating at least one communication processing module. The wireless communication module 703 receives electromagnetic waves via an antenna, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 701. The wireless communication module 703 can also receive signals to be transmitted from the processor 701, frequency modulate and amplify them, and convert them into electromagnetic waves for radiation through the antenna. In some embodiments, the electronic device 100 can also detect or scan devices near the electronic device 100 through the Bluetooth module (not shown in Figure 7) and the WLAN module (not shown in Figure 7) in the wireless communication module 703, and establish a wireless communication connection with the nearby devices to transmit data. Among them, the Bluetooth module can provide solutions including one or more Bluetooth communications of classic Bluetooth (basic rate / enhanced data rate, BR / EDR) or Bluetooth low energy (bluetooth low energy, BLE), and the WLAN module can provide solutions including one or more WLAN communications of Wi-Fi direct, Wi-Fi LAN or Wi-Fi softAP.
[0137] The display screen 704 can be used to display images, videos, etc. The display screen 704 may include a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLed, or a quantum dot light-emitting diode (QLED). In some embodiments, the electronic device 100 may include one or N display screens 704, where N is a positive integer greater than one.
[0138] The sensor module 705 may include multiple sensor devices, such as a Hall sensor 705A and a capacitive proximity sensor 705B. The Hall sensor 705A can be used to detect whether the foldable screen on the electronic device 100 is in the folded state. The capacitive proximity sensor 705B is used to detect the ambient capacitance value and the human body proximity capacitance value. The specific implementation method can be referred to the above process and will not be repeated here.
[0139] The sensor module 705 may also include a touch sensor (not shown in FIG7 ). The touch sensor may also be referred to as a "touch control device." The touch sensor may be provided on the display screen 704 . The touch sensor and the display screen 704 form a touch screen, also known as a "touch screen." The touch sensor may be used to detect touch operations applied to or near the touch sensor.
[0140] The audio module 706 can be used to convert digital audio information into an analog audio signal output, and can also be used to convert an analog audio input into a digital audio signal. The audio module 706 can also be used to encode and decode audio signals. In some embodiments, the audio module 706 can also be arranged in the processor 701, or some functional modules of the audio module 706 can be arranged in the processor 701.
[0141] The microphone 707, which can also be called a "microphone" or a "microphone", can be used to collect sound signals in the environment surrounding the electronic device, and then convert the sound signals into electrical signals, and then subject the electrical signals to a series of processing, such as analog-to-digital conversion, to obtain a digital audio signal that can be processed by the processor 701 of the electronic device. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 707 to input the sound signal into the microphone 707. The electronic device 100 can be provided with at least one microphone 707. In other embodiments, the electronic device 100 can be provided with two microphones 707, which, in addition to collecting sound signals, can also achieve noise reduction functions. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 707 to collect sound signals, reduce noise, identify the source of sound, and achieve directional recording functions.
[0142] It should be noted that the electronic device 100 shown in FIG. 7 is merely used to exemplify the hardware structure of the electronic device provided in the present application, and does not constitute a specific limitation to the present application.
[0143] As used in the above embodiments, the term “when…” may be interpreted to mean “if…” or “after…” or “in response to determining…” or “in response to detecting…”, depending on the context. Similarly, the phrases “upon determining…” or “if (stated condition or event) is detected” may be interpreted to mean “if determining…” or “in response to determining…” or “upon detecting (stated condition or event)” or “in response to detecting (stated condition or event)”, depending on the context.
[0144] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk).
[0145] Those skilled in the art will appreciate that all or part of the process steps in the above-described method embodiments can be implemented by a computer program instructing the relevant hardware. The program can be stored in a computer-readable storage medium, and when executed, the program can include the process steps in the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.
Claims
1. A capacitive proximity sensor adjustment method for a folding device, characterized in that: Applied to an electronic device having a folding screen and a capacitive proximity sensor, the method comprises: If the folding screen changes from a non-fully folded state to a fully folded state, the electronic device detects a capacitance value within a first time period through the capacitive proximity sensor; The electronic device determines a first environmental capacitance value based on the capacitance value in the first time period; When the electronic device determines that the folding screen is in the fully folded state, the electronic device detects a first capacitance value through the capacitive proximity sensor; The electronic device determines a first human body proximity capacitance value based on the first capacitance value and the first environment capacitance value; When the first human body proximity capacitance value is greater than a first preset threshold, the electronic device determines that a human body is close to the electronic device.
2. The method according to claim 1, characterized in that: After the electronic device determines that a human body is close to the electronic device, the method further includes: The electronic device triggers the modem to operate according to the specified transmission power, or the electronic device lights up the display screen.
3. The method according to claim 1 or 2, characterized in that: The electronic device determines a first environmental capacitance value based on the capacitance value in the first time period, specifically including: The electronic device determines the lowest capacitance value that lasts for a first preset time period within the first time period as a first environmental capacitance value.
4. The method according to claim 1, characterized in that: The electronic device determines a first human body proximity capacitance value based on the first capacitance value and the first environment capacitance value, specifically including: The electronic device subtracts the first environmental capacitance value from the first capacitance value to obtain the first human body capacitance value.
5. The method according to claim 1, characterized in that The electronic device further comprises a Hall sensor.
6. The method according to claim 5, characterized in that If the folding screen is transformed from a non-fully folded state to a fully folded state, before the electronic device detects a capacitance value within a first time period through the capacitive proximity sensor, the method further includes: When the Hall sensor detects that the folding screen is in a folded state, the capacitive proximity sensor detects that the lowest capacitance value that has lasted for a first preset time period in a current time period is greater than a second preset threshold, and the electronic device allows calibration of the ambient capacitance, the electronic device determines that the folding screen is transformed from a non-fully folded state to a fully folded state.
7. The method according to claim 6, characterized in that When the Hall sensor detects that the folding screen is in the folded state, the capacitive proximity sensor detects that the lowest capacitance value that lasts for a first preset time period in the current time period is greater than a second preset threshold, and the electronic device allows calibration of the ambient capacitance, the electronic device determines that the folding screen is changed from a non-fully folded state to a fully folded state, specifically including: When the status flag of the Hall sensor is a first value, the capacitive proximity sensor detects that the lowest capacitance value that has lasted for a first preset time period is greater than a second preset threshold, and the calibration flag of the capacitive proximity sensor is a second value, the electronic device determines that the folding screen is transformed from a non-fully folded form to a fully folded form.
8. The method according to claim 6, characterized in that The method further comprises: When the electronic device determines that the folding screen is in a non-completely folded state, the electronic device detects a second capacitance value; The electronic device determines a second human body proximity capacitance value based on the second capacitance value and the second environmental capacitance value; wherein the second environmental capacitance value is the environmental capacitance value determined by the electronic device when the folding screen is in the non-fully folded form and is started.
9. The method according to claim 8, characterized in that When the electronic device determines that the folding screen is in a non-completely folded state, the electronic device detects a second capacitance value, specifically including: When the Hall sensor detects that the folding screen is in a fully unfolded state, or when the Hall sensor detects that the folding screen is in a folded state but the capacitive proximity sensor detects that the lowest capacitance value that lasts for a first preset time period in the current time period is less than a second preset threshold, the electronic device determines that the folding screen is in a non-fully folded state; The electronic device detects a second capacitance value.
10. The method according to claim 9, characterized in that When the Hall sensor detects that the folding screen is in a fully unfolded state, or when the Hall sensor detects that the folding screen is in a folded state but the capacitive proximity sensor detects that the lowest capacitance value that lasts for a first preset time period in the current time period is less than a second preset threshold, the electronic device determines that the folding screen is in a non-fully folded state, specifically including: When the status flag of the Hall sensor is a third value, or when the status flag of the Hall sensor is a first value, but the capacitive proximity sensor detects that the minimum capacitance value that has lasted for a first preset time period is less than a second preset threshold, the electronic device determines that the folding screen is in a non-fully folded state.
11. An electronic device, characterized in that: include: a capacitive proximity sensor, one or more processors, and one or more memories; The one or more memories and the capacitive proximity sensor are coupled to the one or more processors, and the one or more memories are used to store computer executable programs. When the one or more processors and the capacitive proximity sensor execute the computer executable programs, the electronic device executes the method as described in any one of claims 1-10.
12. A chip system, characterized in that: It comprises a processing circuit and an interface circuit, wherein the interface circuit is used to receive code instructions and transmit them to the processing circuit, and the processing circuit is used to run the code instructions so that the chip system executes the method as described in any one of claims 1-10.
13. A computer-readable storage medium, characterized in that: A computer executable program is stored, and when the computer executable program is run on an electronic device, the electronic device executes the method according to any one of claims 1 to 10.