Capacitive proximity sensor adjusting method applied to folding equipment and electronic equipment

By adjusting the environmental offset data in the folding screen electronic device, the problem of environmental capacitance value changes caused by the change in the folding screen shape is solved, the detection accuracy of the human body's proximity capacitance value is improved, and the accurate human body proximity detection and electromagnetic radiation management of electronic devices are ensured.

CN120103493APending Publication Date: 2025-06-06HONOR DEVICE CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202311637615.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-30
Publication Date
2025-06-06

AI Technical Summary

Technical Problem

When the folding screen of an electronic device changes from a non-complete folding form to a fully folding form, the antenna connected to the capacitive proximity sensor of the B screen close to the A screen causes a sharp change in the environmental capacitance value, causing the user to misjudgment the human body's approaching capacitance value when approaching the electronic device.

Method used

The capacitance value is detected by the capacitive proximity sensor, and when the folding screen changes from a non-complete folding form to a fully folded form, the environment offset data is adjusted to accurately judge the human body's proximity capacitance value.

Benefits of technology

The drastic change in the environmental capacitance value when the folding screen changes, and the accuracy of the capacitance proximity sensor detects the human body's proximity value on the folding screen electronic device is improved, avoiding misjudgment and unnecessary electromagnetic radiation adjustment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120103493A_ABST
    Figure CN120103493A_ABST
Patent Text Reader

Abstract

The invention discloses a capacitive proximity sensor adjusting method applied to folding equipment and electronic equipment, and relates to the field of terminals, and the electronic equipment can detect a capacitance value through a capacitive proximity sensor. Wherein the capacitance value detected by the capacitive proximity sensor is the sum of the human body proximity capacitance value and the environment capacitance value. When it is detected that the folding screen is converted from the non-complete folding state to the complete folding state, the electronic device can adjust the environment offset data 1 to the environment offset data 2 based on the currently determined environment capacitance value. Wherein the environment offset data 1 is used for eliminating the environment capacitance value when the folding screen is not in the completely folded state, and the environment offset data 2 is used for eliminating the environment capacitance value when the folding screen is in the completely folded state. When the folding screen is in a fully folded state, the electronic device can detect a human body proximity capacitance value through the capacitive proximity sensor based on the environment offset data 2.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminals, and in particular to a capacitive proximity sensor adjustment method and electronic device applied to a folding device. Background Art

[0002] With the development of terminal technology, the frequency of use of electronic devices in daily life is also increasing. When users use electronic devices, excessive electromagnetic radiation from electronic devices will have a certain impact on human health. At present, the specific absorption rate (SAR, also known as the electromagnetic radiation absorption ratio) is usually used to measure the energy absorption rate when the human body is exposed to radio frequency electromagnetic fields. The lower the SAR value, the less electromagnetic radiation is absorbed by the human body.

[0003] In order to reduce the impact of electromagnetic radiation on users when using electronic devices, capacitive proximity sensors can be set on electronic devices to detect the contact state between the human body and the electronic device to determine whether the SAR value absorbed by the human body exceeds the standard. When the capacitive proximity sensor detects that the human body is close to the electronic device, the capacitive proximity sensor can trigger the electronic device to adjust the transmission power of the modem to reduce the impact of electromagnetic radiation on the human body. Therefore, how to improve the accuracy of the capacitive proximity sensor in detecting whether the human body is close to the electronic device has become a problem that needs to be solved urgently. Summary of the invention

[0004] The present application provides a capacitive proximity sensor adjustment method and electronic device for a folding device, which reduces the probability of misjudging the human body proximity capacitance value when the metal medium of the B screen approaches the antenna connected to the capacitive proximity sensor of the A screen 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.

[0005] In a first aspect, the present application provides a method for adjusting a capacitive proximity sensor applied to a folding device, characterized in that it is applied to an electronic device having a folding screen and a capacitive proximity sensor, and the method includes: if the folding screen changes from a non-fully folded form to a fully folded form, 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 within the first time period. When the electronic device determines that the folding screen is in the fully folded form, 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 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 close to the electronic device.

[0006] 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.

[0007] 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.

[0008] In a possible implementation, the electronic device determines a first human proximity capacitance value based on the first capacitance value and the first environment capacitance value, specifically including: the electronic device subtracts the first environment capacitance value from the first capacitance value to obtain the first human proximity capacitance value.

[0009] 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 the 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.

[0010] In one possible implementation, 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 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 changed from a non-fully folded state to a fully folded state.

[0011] In a possible implementation, the method further includes: when the electronic device determines that the folding 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 the second environmental capacitance value. The second environmental capacitance value is an environmental capacitance value determined by the electronic device when the folding screen is in the non-fully folded state for startup.

[0012] In a possible implementation, 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-completely folded state. The electronic device detects the second capacitance value.

[0013] In one possible implementation, 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 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 state, specifically including: when the status flag bit of the Hall sensor is a third value, or, when the status flag bit 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 a second preset threshold, the electronic device determines that the folding screen is in a non-fully folded state.

[0014] In a second aspect, an embodiment of the present application provides an electronic device, including: 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 a computer executable program. When the one or more processors and the capacitive proximity sensor execute the computer executable program, the electronic device executes the method in any possible implementation of the first aspect described above.

[0015] 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 in any possible implementation of the first aspect above.

[0016] 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 in any possible implementation of the first aspect described above. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1A A schematic diagram of the configuration structure of a capacitive proximity sensor provided in an embodiment of the present application;

[0018] Figure 1B A schematic diagram of a circuit structure involved in detecting capacitance value of a capacitive proximity sensor provided in an embodiment of the present application;

[0019] Figure 1C A schematic diagram of an implementation method of a capacitive proximity sensor provided in an embodiment of the present application for detecting a human body approaching capacitance;

[0020] Figure 2A A schematic diagram of a folding screen electronic device with a capacitive proximity sensor provided in an embodiment of the present application;

[0021] Figure 2B A schematic diagram of another folding screen electronic device with a capacitive proximity sensor provided in an embodiment of the present application;

[0022] Figure 3A A schematic diagram of a folding screen configuration provided in an embodiment of the present application;

[0023] Figure 3B A schematic diagram of another folding screen form provided in an embodiment of the present application;

[0024] Figure 3C A schematic diagram of another folding screen form provided in an embodiment of the present application;

[0025] Figure 4 A schematic flow chart of a capacitive proximity sensor adjustment method for a folding device provided in an embodiment of the present application;

[0026] Figure 5A A schematic diagram of a process for detecting the folding screen form provided in an embodiment of the present application;

[0027] Figure 5B A schematic diagram of Hall sensor detection provided in an embodiment of the present application;

[0028] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0029] Figure 7 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0030] 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 be used as limitations on the present application. As used in the specification and the appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear contrary indication in the context. It should also be understood that the term "and / or" used in the present application refers to any or all possible combinations including one or more of the listed striking ones. In the embodiments of the present application, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first" and "second" can expressly or implicitly include one or more of the features. In the description of the embodiments of the present application, unless otherwise specified, the meaning of "multiple" is two or more.

[0031] First, the working principle of the capacitive proximity sensor involved in the embodiments of the present application is introduced.

[0032] Figure 1A A capacitive proximity sensor configuration is provided in accordance with an embodiment of the present application.

[0033] like Figure 1A As shown, the capacitive proximity sensor in the electronic device can be arranged between the housing (overlay) and the printed circuit board (PCB). The capacitive proximity sensor can detect the capacitance value around the sensor. Figure 1AAs shown in (a) in FIG. 1 , when the 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 devices and layout around the capacitive proximity sensor, that is, C SARsensor =C Env , where C SARsensor is the capacitance value detected by the capacitive proximity sensor, C Env is the environmental capacitance value. If the human body is close to the electronic equipment, such as Figure 1A As shown in (b) in the figure, the capacitance value detected by the capacitive proximity sensor at this time 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 value of a parallel plate capacitor, and its calculation formula can be as follows:

[0034] C User =ε 0 ×ε r ×S÷d

[0035] 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.

[0036] Figure 1B This is a circuit structure involved in detecting capacitance value of a capacitive proximity sensor in an embodiment of the present application.

[0037] like Figure 1B As shown, the circuit structure may include: a multiplexer (MUX), a barrier driver, an offset compensation module (offset compensation), a temperature sensor (Temprature Sensor), a voltage converter (Cap-to-Voltage) and an analog-to-digital converter (ADC), etc.

[0038] The shielddriver can be used to drive the MUX. The input of the MUX is the capacitance value of multiple detection points on the electronic device (such as Figure 1B C shown S0 , C S1 , C S2 ……C Si), the output is the capacitance value detected by the capacitive proximity sensor (such as Figure 1B C shown SARsensor ). 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 (such as Figure 1B The V 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 temperature changes. The analog-to-digital converter can be used to quantify the voltage corresponding to the human body proximity capacitance value for subsequent digital processing units ( Figure 1B (not shown) to determine 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 determine whether the human body is close to the electronic device, and the implementation details of converting the human body proximity capacitance value into a corresponding voltage and making a judgment based on the voltage are not described.

[0039] Figure 1C This is an implementation method of the capacitive proximity sensor in the embodiment of the present application for detecting the capacitance value of the human body approaching.

[0040] Since the capacitance value detected by the capacitive proximity sensor is the sum of the environmental capacitance value and the human body proximity capacitance value, in order to obtain the human body proximity capacitance value from the capacitance value detected by the capacitive proximity sensor, it is necessary to use the environmental offset data to eliminate the environmental capacitance value from the capacitance value detected by the capacitive proximity sensor.

[0041] Specifically, when 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) is usually relatively stable, and the rapid change of the 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 to start, thereby improving the accuracy of the electronic device in detecting the environmental capacitance value.

[0042] 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.

[0043] like Figure 1C As shown in the example, curve L1 can be used to indicate environmental offset data. Curve L2 is a curve showing the change of capacitance detected by the capacitive proximity sensor over time. Curve L3 is a curve showing the change of 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 capacitance value of the human body approaching.

[0044] In the embodiment of the present application, Figure 1A to Figure 1C It is only used to illustrate the present application and does not constitute a limitation to the present application.

[0045] When the capacitive proximity sensor detects a human body approaching a capacitance value, the capacitive proximity sensor can determine whether the human body approaching capacitance value is greater than a preset threshold 1. If the human body approaching capacitance value is less than the preset threshold 1, the capacitive proximity sensor can determine that the user is not close to the electronic device; if the human body approaching capacitance value is greater than the preset threshold 1, the capacitive proximity sensor can determine that the user is close to the electronic device, and therefore, the capacitive proximity sensor can trigger the electronic device to adjust the transmission power of the modem, so that the transmission power of the modem when the human body is close is less than the transmission power when the human body is not close, thereby reducing the impact of electromagnetic radiation on the human body.

[0046] However, if the electronic device is a foldable electronic device (which can be referred to as a folding device), such as a foldable device or a retractable device with a folding 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 non-foldable / non-retractable devices are fixed, while the spatial layout of the components of foldable devices / retractable devices is variable. That is, during the folding / retracting process, the relative spatial positions of the components of the foldable device / retractable device are variable, 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 where the capacitive proximity sensor is located will change due to the degree of folding / retracting, resulting in a large change in the ambient capacitance value.

[0047] The following embodiments of the present application will be described by taking the electronic device as a foldable 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 as follows Figure 3A-3C The foldable electronic device illustrated in the embodiment may, in some embodiments, be a foldable device such as a tri-fold electronic device with a foldable screen, a retractable electronic device, etc. In other words, the present application does not limit the specific folding form of the electronic device and the connection method of the screen.

[0048] Figure 2A-2B This is a folding screen electronic device with a capacitive proximity sensor involved in an embodiment of the present application.

[0049] like Figure 2A As shown, 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 the electronic device in the embodiment of the present application) has a capacitive proximity sensor chip inside, and the A screen of the folding screen electronic device is provided with two antennas: antenna A and antenna B. The capacitive proximity sensor chip can be connected to antenna A and antenna B through lines. 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.

[0050] 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), and even 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.

[0051] like Figure 2B As shown, for example, Figure 2A Taking the structure of a foldable screen electronic device as an example, when the foldable screen electronic device is folded in half and changes from a non-fully folded form to a fully folded form, the metal medium C of screen B is close to antenna B of screen A, and the metal medium C will cause an induced capacitance value, which is a part of the current environmental capacitance value. If the foldable screen electronic device uses the environmental offset data when it is in a non-fully folded form to eliminate the environmental capacitance value, the current environmental capacitance value cannot be eliminated well, resulting in the uneliminated part of the environmental capacitance value being misjudged as a 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), and even 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.

[0052] Therefore, the present application provides a capacitive proximity sensor adjustment method for a folding device, including: the electronic device can detect a capacitance value through a capacitive proximity sensor. Wherein, 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. Wherein, 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 the preset threshold 1 through the capacitive proximity sensor based on the environmental offset data 2, the electronic device determines that the human body is close to the electronic device.

[0053] 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 is close to 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 a foldable screen electronic device.

[0054] Next, an electronic device with a foldable screen according to an embodiment of the present application is introduced.

[0055] The folding screen on the electronic device can form at least two screens. For example, the folding screen can be folded along a folding edge or a folding axis to form a first screen and a second screen.

[0056] Among them, the folding methods of the folding screen on the electronic device can be divided into two categories. One is a folding screen that folds outward (referred to as the outward-folding folding screen), and the other is a folding screen that folds inward (referred to as the 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. 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 an embodiment of the present application, the first screen can be called screen A and the second screen can be called screen B.

[0057] For example, the form of the outward folding screen provided in the embodiment of the present application may be as follows:

[0058] Please refer to Figure 3AAs shown, it shows a schematic diagram of the product form of an electronic device with an outward folding screen provided by an embodiment of the present application. Figure 3A (a) is a schematic diagram of the fully unfolded outward folding screen. The outward folding screen can be unfolded along the folding edge according to Figure 3A Folding 11a and 11b in the direction shown in (a) can form Figure 3A The semi-folded A screen (i.e., the first screen) and the B screen (i.e., the second screen) are shown in (b) of FIG. The outward folding screen can be folded along the folding edge according to Figure 3A Continuing to fold the directions 12a and 12b shown in (b) above, a Figure 3A The fully folded outward folding screen shown in (c) is shown in FIG. Figure 3A As shown in (c) in the figure, 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.

[0059] It can be understood that for an electronic device with an outward 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 of 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, which will not be repeated here.

[0060] For example, the form of the inward folding screen provided in the embodiment of the present application may be as follows:

[0061] Please refer to Figure 3B , which shows a schematic diagram of the product form of an electronic device with an inward folding screen provided by an embodiment of the present application. Among them, Figure 3B (a) is a schematic diagram of the fully unfolded state of the inward folding screen. The inward folding screen can be unfolded along the folding edge according to Figure 3B The direction 21a and 21b shown in (a) are folded to form Figure 3B The semi-folded A and B screens are shown in (b) of FIG. The inward folding screen can be folded along the folding edge according to Figure 3B The direction 22a and 22b shown in (b) are further folded to form Figure 3B The fully folded outward folding screen shown in (c) is shown in FIG. Figure 3B As shown in (c), after the folding screen of the electronic device is fully folded, screen A and screen B are opposite to each other and are invisible to the user.

[0062] It should be noted that a display screen may be 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. Figure 3C As shown, screen C (i.e., the third screen) can be set on the back of screen A (i.e., the first screen). After the inner folding screen is fully folded, screen C is opposite to screen A, and screen C is visible to the user. It can be understood that for electronic devices with such inner folding screens, when the folding screen is in a fully folded state, the interface can be displayed on the third screen; when the folding screen is in a semi-folded state, the interface can 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 can be displayed on the first screen and the second screen.

[0063] In an embodiment of the present application, the value range of the angle α between screen A and screen B of the folding screen of the electronic device (including an inward-folding folding screen and an outward-folding folding screen) is [0°, 180°]. Among them, if α∈[0°, P1], the electronic device can determine that the folding screen is in a fully folded state; if α∈(P1, P2), the electronic device can determine that the folding screen is in a semi-folded state; α∈[P2, 180°], the electronic device can determine that the folding screen is in a fully unfolded state. 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.

[0064] 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 the subsequent embodiments and will not be repeated here.

[0065] The folding screen in the embodiment of the present application (including an inward-folding folding screen and an outward-folding folding screen) may be a plurality of independent screens or a complete screen of an integrated structure, but is folded into at least two parts.

[0066] For example, the folding screen may be a flexible folding screen, and the flexible folding screen includes a folding edge made of a flexible material. Part or all of the flexible folding screen is made of a flexible material. The at least two screens formed after the flexible folding screen is folded are a complete screen of an integrated structure, but are folded to form at least two parts.

[0067] For another example, the folding screen may be a multi-screen folding screen. The multi-screen folding screen may include multiple (two or more) screens. The multiple screens are multiple separate display screens. The multiple screens may be connected in sequence through folding axes. Each screen may rotate around the folding axis connected thereto to achieve folding of the multi-screen folding screen.

[0068] in, Figure 3A , Figure 3B and Figure 3C In the embodiment of the present application, the folding screen is described by taking the folding screen being a flexible folding screen as an example. In addition, in the subsequent embodiments of the present application, the folding screen is also described by taking the folding screen being a flexible folding screen as an example.

[0069] Exemplarily, 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) device, a virtual reality (VR) device, and the like 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.

[0070] Figure 4 A process of a capacitive proximity sensor adjustment method applied to a folding device is provided in an embodiment of the present application.

[0071] like Figure 4 As shown, the process of the method may specifically include:

[0072] S401: When the electronic device is not in a 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 folding screen is not in a fully folded state.

[0073] 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 a change in capacitance. When the capacitive proximity sensor detects that the lowest capacitance value that lasts for a preset time length 1 in the current time period is a value of 1, the electronic device determines the value 1 as the current environmental capacitance value, and therefore, the electronic device can determine the value of the environmental offset data 1 as the value 1. 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 to start it, thereby improving the accuracy of the electronic device in detecting the environmental capacitance value.

[0074] In an embodiment of the present application, the electronic device determines that the folding screen is not in a fully folded state 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).

[0075] 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.), and the specific values ​​of the first angle, the second angle, and the third angle are not limited in this application.

[0076] 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.

[0077] In the embodiment of the present application, when the capacitive proximity sensor is in a normal working state rather than a calibration state, the capacitive proximity sensor can eliminate the environmental capacitance value in the capacitance value detected by the capacitive proximity sensor according to the environmental offset data (for example, environmental offset data 1 or subsequent environmental offset data 2), thereby obtaining the human body proximity capacitance value. The electronic device can determine whether the human body is close to the electronic device according to whether the human body proximity capacitance value is greater than a preset threshold 1.

[0078] S403: The electronic device detects whether the folding screen changes from a non-fully folded state to a fully folded state.

[0079] 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 ambient capacitance value determined by the electronic device in the non-fully folded shape and the current actual ambient capacitance value. That is, the electronic device cannot use the environmental offset data 1 to effectively eliminate the current ambient capacitance value. Therefore, the portion of the current ambient capacitance value that has not been eliminated is mistakenly judged as the human body proximity capacitance value, causing the human body proximity capacitance value detected by the electronic device to be greater than the actual human body proximity capacitance value.

[0080] 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 an accurate human body proximity capacitance value when the user approaches the electronic device when the folding screen is in the fully folded form.

[0081] Among them, the specific method for the electronic device to detect whether the folding screen is changed from a non-fully folded form to a fully folded form will be described in detail in subsequent embodiments.

[0082] S404: When the folding screen changes from a non-fully folded form to a fully folded form, 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 in the capacitance value detected by the capacitive proximity sensor when the folding screen is in the fully folded screen form.

[0083] In the 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 can be in a calibrated state. The capacitive proximity sensor can detect that the lowest capacitance value that lasts for a preset time length 1 in the current time period is a value 2, and the value 2 is determined as the current environmental capacitance value. Therefore, the electronic device can determine the environmental offset data 2 as the value 2. 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 folds it, thereby improving the accuracy of the electronic device in detecting the environmental capacitance value.

[0084] 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 changed from a non-fully folded form to a fully folded form. Therefore, if the folding screen is changed from a non-fully folded form to a fully folded form, the electronic device can 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 value 2, then the electronic device determines that value 2 is the environmental capacitance value (which may be referred to as the first environmental capacitance value), and the value of environmental offset data 2 is the same as the first environmental capacitance value.

[0085] 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.

[0086] Specifically, when the folding screen is in a fully folded state and the capacitive proximity sensor is in a normal working state rather than a calibration state, the electronic device can eliminate the environmental capacitance value in the capacitance value detected by the capacitive proximity sensor according to the environmental offset data 2, thereby obtaining the human body proximity capacitance value. The electronic device can determine whether the human body is close to the electronic device according to whether the human body proximity capacitance value is greater than a preset threshold 1.

[0087] Exemplarily, if the folding screen is in a fully folded state, 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.

[0088] 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.

[0089] Specifically, if the folding screen is not in a fully folded state, the capacitive proximity sensor can eliminate the environmental capacitance value in the capacitance value detected by the capacitive proximity sensor according to the environmental offset data 1, thereby obtaining the human body proximity capacitance value. The electronic device can determine whether the human body is close to the electronic device according to whether the human body proximity capacitance value is greater than the preset threshold 1.

[0090] 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 not in a 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.

[0091] 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.

[0092] 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.

[0093] S408: The electronic device triggers the modem to operate at the specified transmission power.

[0094] 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.

[0095] 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.

[0096] Further, in the embodiments of the present application Figure 4 Each step shown is described in detail.

[0097] like Figure 5A As shown, the specific implementation process of step S403 may include:

[0098] S501: The electronic device detects the status flag of the Hall sensor.

[0099] 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 means that the angle of the folding screen is between the first angle and the second angle, and the fully folded state means that the angle of the folding screen is between the second angle and the third angle, the third angle is smaller than the second angle, and the second angle is smaller than the first angle.

[0100] S502: When it is detected 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.

[0101] The calibration flag of the capacitive proximity sensor is used to indicate whether the electronic device allows calibration of the environmental capacitance value, thereby adjusting the environmental offset data. The calibration flag of the capacitive proximity sensor is 0 by default.

[0102] In the 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), that is to say, the Hall sensor detects whether the folding screen is in a folded form, and to determine whether the folding screen is in a fully folded form, the electronic device subsequently needs to determine whether the minimum 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.

[0103] 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.

[0104] S503: When it is detected that the status flag bit of the Hall sensor is 1, the electronic device can detect the current capacitance value through the capacitive proximity sensor.

[0105] Among them, the status flag of the Hall sensor is 1, indicating that the Hall sensor detects that the folding screen is in a folded state.

[0106] 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 time length 1 is greater than a preset threshold 2.

[0107] Among them, the lowest capacitance value that lasts for a preset time length 1 in the current time period can be represented as the current environmental capacitance value. When the state flag bit of the Hall sensor is 1, and the lowest capacitance value that lasts for a preset time length 1 in the current time period is greater than the preset threshold 2, it indicates that the display screen on the side where the capacitive proximity sensor is not set (for example, Figure 3A B screen shown) and a display screen provided with a capacitive proximity sensor (for example, Figure 3AThat is to say, when the state flag of the Hall sensor is 1 and the minimum capacitance value for the preset time 1 is greater than the preset threshold 2, the folding screen is in a fully folded state.

[0108] 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 in the current time period for a preset duration 1 and the environmental offset data 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 state. If no and the status flag of the Hall sensor is 1, the folding screen is not in a fully folded state but in a semi-folded state. It can be understood that the difference between the lowest capacitance value detected by the capacitive proximity sensor in the current time period for a preset duration 1 and the environmental offset data 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 characterize the distance between screen A and screen B.

[0109] 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 the electronic device leaves the factory, it 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 state (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.

[0110] S505: When it is determined that the lowest capacitance value that lasts for the preset time length 1 in the current time period is greater than the preset threshold 2, the electronic device determines whether the calibration flag bit of the capacitive proximity sensor is 1.

[0111] 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.

[0112] 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 state to a fully folded state, and executes step S404.

[0113] Specifically, when the status flag of the Hall sensor is 1, the minimum capacitance value detected by the capacitive proximity sensor in the current time period that lasts for a preset time length 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 is changed from a non-fully folded form to a fully folded form, and the capacitive proximity sensor may be in a calibration state. The electronic device executes S404, calibrates the ambient capacitance value through the capacitive proximity sensor, and adjusts the ambient compensation data 1 to the ambient compensation data 2 according to the calibrated ambient capacitance value.

[0114] S507: The electronic device sets the calibration flag of the capacitive proximity sensor to 0.

[0115] In the embodiment of the present application, the electronic device may change the setting of the calibration flag of the capacitive proximity sensor from 1 to 0 before executing S404 or after executing S404, and the present 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 environmental capacitance value.

[0116] 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.

[0117] 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.

[0118] 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 length 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.

[0119] Implementation Figure 5A The process shown in the figure, combined with the capacitive proximity sensor and the Hall sensor to identify the shape of the folding screen, can solve the problem of low accuracy of using only the Hall sensor to identify the shape of the folding screen. Figure 5B As shown in the figure, the status flag of the Hall sensor used to indicate the folding screen state has only two values. When the folding screen is in the fully unfolded state ( Figure 5B In the example, when the angle between the folding screens is 180 degrees, the state flag of the Hall sensor is 0; however, when the angle between the folding screens is less than or equal to the first angle ( Figure 5BIn the example, when the angle of the folding screen is 150 degrees, the status flag of the Hall sensor is 1. In other words, the Hall sensor alone can determine whether the folding screen is in a folded state or in a fully unfolded state, but cannot accurately determine whether the folding screen is in a fully folded state. Figure 5A The process shown, combined with the capacitive proximity sensor and the Hall sensor, can accurately determine whether the folding screen is in a fully unfolded state, a half-folded state, or a fully folded state.

[0120] 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. That is to say, in addition to using 0 / 1 to represent the corresponding meaning, other values ​​can also be used to represent the corresponding meaning. Among them, when the status flag of the Hall sensor is the first value, it represents 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 represents 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 represents that the electronic device allows calibration of the environmental capacitance.

[0121] Figure 6 A device structure of an electronic device is provided in an embodiment of the present application.

[0122] like Figure 6 As shown, the device structure of the electronic device may include: a Hall sensor, a capacitive proximity sensor, an application processor AP and a modem modem. The capacitive proximity sensor may include a folding screen shape judgment module, an environmental capacitance value calibration module and a human body proximity judgment module, wherein:

[0123] The Hall sensor can be used to detect whether the folding screen is in a folded state. When the folding screen is detected to be in a fully unfolded state, the Hall sensor can send a status flag bit = 0 to the folding screen state judgment module in the capacitive proximity sensor; when the folding screen is detected to be in a folded state, the Hall sensor can send a status flag bit = 1 to the folding screen state judgment module in the capacitive proximity sensor.

[0124] The capacitive proximity sensor can be used to detect capacitance values, calibrate environmental capacitance values ​​to adjust environmental offset data, determine the human body proximity capacitance value based on the detected capacitance value, and determine whether the human body proximity capacitance value is greater than a preset threshold 1. Figure 6As shown, the folding screen shape judgment module in the capacitive proximity sensor can receive the value of the status flag sent by the Hall sensor, and judge the shape of the folding screen based on the value of the status flag of the Hall sensor, for example, determine whether the folding screen is in a non-fully folded shape / fully folded shape, determine whether the folding screen is changed from a non-fully folded shape to a fully folded shape, and so on. Then, when the folding screen shape judgment module determines that the folding screen is changed from a non-fully folded shape to a fully folded shape, it can send calibration indication information to the environmental capacitance value calibration module, trigger the environmental capacitance value calibration module to calibrate the environmental capacitance value, and adjust the environmental offset data according to the calibrated environmental capacitance value. The human body approach judgment module can be used to determine whether the human body approach capacitance value is greater than the preset threshold 1. If so, human body approach indication information can be sent to the application processor AP. Among them, the human body approach indication information is used to indicate that the human body is close to the electronic device. The specific implementation method can refer to the aforementioned embodiment.

[0125] After receiving the human body approach indication information, the application processor AP may perform corresponding operations, for example, Figure 6 As shown, the AP can send transmission power adjustment information to the modem to trigger the modem to work at a specified transmission power, wherein the specified transmission power is less than the transmission power when the human body is not close to the electronic device.

[0126] Figure 6 It is only used to illustrate the present application and does not constitute any limitation to the present application.

[0127] Figure 7 A hardware structure of an electronic device 100 provided in an embodiment of the present application.

[0128] In the embodiment of the present application, the electronic device 100 is the electronic device described in the above embodiment.

[0129] like Figure 7 As shown, 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).

[0130] It is understandable that the structure shown in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also include Figure 7 More or fewer components may be shown, or some components may be combined or separated, or the components may be arranged differently. Figure 7 The components shown may be implemented in hardware, software or a combination of software and hardware.

[0131] The processor 701 may include one or more processor units, for example, the processor 701 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and / or a neural-network processing unit (neural-network processing unit, NPU), etc. Among them, different processing units can be independent devices or integrated in one or more processors. The controller can generate an operation control signal according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions.

[0132] A memory may also be provided in the processor 701 for storing instructions and data. In some embodiments, the memory in the processor 701 is a cache memory. The memory may store instructions or data that the processor 701 has just used or cyclically used. If the processor 701 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 701, and thus improves the efficiency of the system.

[0133] In some embodiments, the processor 701 may include one or more interfaces. The interface 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, etc.

[0134] The memory 702 is coupled to the processor 701 and is used to store various software programs and / or multiple groups of instructions. In a specific implementation, the memory 702 may include a volatile memory, such as a random access memory (RAM); it may also include a non-volatile memory, such as a ROM, a flash memory, a hard disk drive (HDD) or a solid state drive (SSD); the memory 702 may also include a combination of the above-mentioned types of memories. The memory 702 may also store some program codes so that the processor 701 calls the program codes 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 may store an operating system, such as an embedded operating system such as uCOS, VxWorks, RTLinux, etc.

[0135] 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 (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, 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 sent from the processor 701, modulate and amplify them, and convert them into electromagnetic waves for radiation through the antenna. In some embodiments, the electronic device 100 can also communicate with the processor 701 through the Bluetooth module ( Figure 7 Not shown), WLAN module ( Figure 7The WLAN module may provide a solution including one or more Bluetooth communication in basic rate / enhanced data rate (BR / EDR) or Bluetooth low energy (BLE), and a solution including one or more WLAN communication in Wi-Fi direct, Wi-Fi LAN or Wi-Fi softAP.

[0136] 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 or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 704, where N is a positive integer greater than 1.

[0137] The sensor module 705 may include multiple sensor devices, for example, a Hall sensor 705A and a capacitive proximity sensor 705B. The Hall sensor 705A may be used to detect whether the folding screen on the electronic device 100 is in a folded state. The capacitive proximity sensor 705B is used to detect the environmental capacitance value and the human body proximity capacitance value. The specific implementation method can refer to the aforementioned process, which will not be repeated here.

[0138] The sensor module 705 may also include a touch sensor ( Figure 7 (not shown in the figure). The touch sensor may also be referred to as a "touch control device". The touch sensor may be provided on the display screen 704, and the touch sensor and the display screen 704 form a touch screen, also referred to as a "touch control screen". The touch sensor may be used to detect a touch operation applied thereto or thereabout.

[0139] The audio module 706 can be used to convert digital audio information into analog audio signal output, and can also be used to convert analog audio input into 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.

[0140] Microphone 707, which can also be called "microphone" or "microphone", can be used to collect sound signals in the environment surrounding the electronic device, 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 an audio signal in digital form 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 approaching the microphone 707 with his mouth 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 can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 707 to realize the collection of sound signals, noise reduction, identification of sound sources, and realization of directional recording function, etc.

[0141] It should be noted that Figure 7 The electronic device 100 shown in the figure is only used to exemplify the hardware structure of the electronic device provided by the present application, and does not constitute a specific limitation to the present application.

[0142] 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 (the stated condition or event) is detected" may be interpreted to mean "if determining..." or "in response to determining..." or "upon detecting (the stated condition or event)" or "in response to detecting (the stated condition or event)", depending on the context.

[0143] 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 devices. 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 a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. 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 contains one or more available media integration. 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), etc.

[0144] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.

Claims

1. A capacitive proximity sensor adjustment method for a folding device, It is 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, It is 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, It is 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, It is 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, It is characterized in that The electronic device further comprises a Hall sensor.

6. The method according to claim 5, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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, It is 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.

Citation Information

Cited By

  • Capacitive proximity sensor adjustment method applied to foldable device, and electronic device

    EP4768925A1

  • Capacitive proximity sensor adjustment method applied to foldable device, and electronic device

    WO2025112654A1