Electronic equipment, detection method and storage medium
By using multiple columns and multiple rows of electrode groups to form induction capacitors in foldable mobile phones, the problem of high folding angle detection in the prior art is solved, and efficient and accurate angle and touch data detection is achieved.
Patent Information
- Application Number
- CN202311718076.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-13
- Publication Date
- 2025-06-13
AI Technical Summary
In the prior art, when detecting the folding angle of a folding mobile phone, there are problems of complex structure and high detection cost.
By using a first electrode group arranged in parallel with multiple rows and a second electrode group arranged in parallel with multiple rows, the first induction capacitor and the second induction capacitor are formed, respectively, used to detect the folding angle and touch data, thereby reducing the cost of angle detection.
The simultaneous detection of folding angle and touch data is achieved, which improves the utilization rate of the electrode structure, reduces the cost of angle detection, and improves the detection accuracy.
Smart Images

Figure CN120144005A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of electronic device usage, and particularly to an electronic device, a detection method, and a storage medium. Background Art
[0002] With the gradual development of electronic devices, electronic devices such as foldable mobile phones and foldable laptops have been applied in many practical usage scenarios, improving the portability and display effect of electronic devices.
[0003] With the development of screen technology, more and more manufacturers have launched foldable mobile phones; these foldable mobile phones can be in a folded state when operated by a single hand of the user, and can be unfolded to a specified angle state when placed on a table, bringing a wider and more shocking screen visual experience to the user.
[0004] During the use of a foldable mobile phone, in order to ensure effective screen display of the foldable mobile phone, it is necessary to control the display state, operation mode, etc. of the foldable mobile phone according to the folding angle of the folding screen to match the user's usage habits. Therefore, determining the folding angle of the folding screen becomes particularly crucial. Summary of the Invention
[0005] To overcome the problems existing in the related art, the present disclosure provides an electronic device, a detection method, and a storage medium. The first electrode group of the present disclosure can detect the folding angle and touch data respectively, reducing the cost of angle detection.
[0006] According to the first aspect of the embodiments of the present disclosure, there is provided an electronic device, including:
[0007] A rotating shaft;
[0008] A first frame and a second frame, connected to opposite sides of the rotating shaft and capable of folding relative to the rotating shaft;
[0009] Multiple columns of first electrode groups arranged in parallel, respectively distributed on the first frame and the second frame; each column of the first electrode group is parallel to the rotating shaft; each column of the first electrode group includes a plurality of first electrodes electrically connected in sequence; wherein, the first electrodes of the first electrode group distributed on the first frame can form a first induction capacitance with the first electrodes of the first electrode group distributed on the second frame;
[0010] Multiple rows of second electrode groups arranged in parallel, all distributed on the first frame and the second frame; each row of the second electrode group is arranged crosswise with the rotating shaft; each row of the second electrode group includes a plurality of second electrodes electrically connected in sequence; wherein, the second electrodes of the second electrode group can form a second induction capacitance with the first electrodes of the first electrode group;
[0011] The processing module is electrically connected to multiple columns of the first electrode groups and is configured to determine the folding angle between the first housing and the second housing based on the capacitance value of the first inductive capacitance, or determine the touch data of the touch object acting on the electronic device based on the capacitance value of the second inductive capacitance.
[0012] In some embodiments, the electronic device further includes:
[0013] A touch panel is located on the first housing and the second housing, and multiple columns of the first electrode groups and multiple rows of the second electrode groups are all located within the touch panel.
[0014] In some embodiments,
[0015] The first electrodes distributed on the first housing and the first electrodes distributed on the second housing correspond to each other one by one to form one first inductive capacitance.
[0016] In some embodiments, there are multiple pairs of corresponding first electrodes between a column of the first electrode groups located on the first housing and a column of the first electrode groups located on the second housing;
[0017] Multiple pairs of corresponding first electrodes form multiple first inductive capacitances, and the multiple first inductive capacitances form a group of first inductive capacitances;
[0018] Two columns of the first electrode groups forming the same group of first inductive capacitances are symmetrically distributed on both sides of the rotation axis with the rotation axis as the axis of symmetry.
[0019] In some embodiments, the first electrodes of the first electrode groups located on the second housing are grounded; the electronic device further includes: a first excitation module, a detection module, and a controlled switch;
[0020] One end of the controlled switch is connected to the first electrodes of the first electrode groups located on the first housing, and the other end is connected to the first excitation module and the detection module;
[0021] The first excitation module is configured to output a first excitation signal to the first electrode groups when the controlled switch is switched to conduct between the first electrodes of the first electrode groups located on the first housing and the first excitation module;
[0022] The detection module is configured to detect first inductive signals output by multiple first electrodes of the first electrode groups under the action of the first excitation signal when the controlled switch is switched to conduct between the first electrodes of the first electrode groups located on the first housing and the detection module;
[0023] The processing module, electrically connected to the detection module, is further configured to determine the capacitance value of the first sensing capacitor based on the first sensing signal.
[0024] In some embodiments, the electronic device further includes:
[0025] A second excitation module, electrically connected to the second electrodes of multiple rows of the second electrode groups, is configured to output a second excitation signal to the second electrodes of multiple rows of the second electrode groups;
[0026] The processing module, electrically connected to the first electrodes of multiple columns of the first electrode groups, is further configured to obtain second sensing signals output by the first electrodes of multiple columns of the first electrode groups under the action of the second excitation signal; and determine the capacitance value of the second sensing capacitor based on the second sensing signals.
[0027] In some embodiments, the folding module further includes:
[0028] A magnetic element, disposed on the first housing;
[0029] A magnetic sensor, disposed on the second housing, is configured to detect the magnetic flux formed by the interaction between the magnetic element and the magnetic sensor when the first housing and the second housing are folded relative to the rotating shaft;
[0030] The processing module, electrically connected to the magnetic sensor, is further configured to determine the folding angle based on the magnetic flux and the capacitance value of the first sensing capacitor.
[0031] According to a second aspect of the embodiments of the present disclosure, a detection method is provided. The method includes:
[0032] In a first time period of a preset time period, obtain the capacitance value of a first sensing capacitor formed in the electronic device; and determine the folding angle between the first housing and the second housing of the electronic device based on the capacitance value of the first sensing capacitor; the first sensing capacitor is formed by the first electrodes of the first electrode groups located on the first housing and the first electrodes of the first electrode groups located on the second housing;
[0033] In a second time period, obtain the capacitance value of a second sensing capacitor formed in the electronic device, and determine touch data of a touch object acting on the electronic device based on the capacitance value of the second sensing capacitor; the second sensing capacitor is formed by the first electrodes of the first electrode groups and the second electrodes of the second electrode groups evenly distributed on the first housing and the second housing;
[0034] Wherein, one of the first time periods and one waiting time period constitute one of the preset time periods that repeatedly appears in the time series; the second time period is distributed within the waiting time period of the preset time period.
[0035] In some embodiments, the method further includes:
[0036] Obtain a plurality of the folding angles determined within a plurality of the preset time periods, and judge the change conditions of the plurality of folding angles;
[0037] When the folding angle does not change, set the waiting time period to a preset first time value;
[0038] When the folding angle changes, set the waiting time period to a preset second time value, and the first time value is greater than the second time value.
[0039] In some embodiments, determining the folding angle between the first housing and the second housing of the electronic device based on the capacitance value of the first sensing capacitor includes:
[0040] Obtain the magnetic flux formed by the interaction between the magnetic element and the magnetic sensor of the electronic device;
[0041] Determine the folding angle based on the magnetic flux and the capacitance value of the first sensing capacitor.
[0042] In some embodiments, there are multiple pairs of corresponding first electrodes between a column of the first electrode groups located on the first housing and a column of the first electrode groups located on the second housing; multiple pairs of corresponding first electrodes form multiple first sensing capacitors, and the multiple first sensing capacitors form a group of first sensing capacitors; determining the folding angle based on the magnetic flux and the capacitance value of the first sensing capacitor includes:
[0043] Based on the difference between the current capacitance value and the historical capacitance value of each detected group of first sensing capacitors, obtain multiple current capacitance differences for multiple groups of first sensing capacitors;
[0044] When all of the preset number of current capacitance differences are less than a first difference threshold, determine the folding angle based on the current capacitance values of multiple groups of first sensing capacitors corresponding to the preset number of current capacitance differences;
[0045] When the number of current capacitance differences less than the first difference threshold does not exceed the preset number, determine the folding angle based on the magnetic flux.
[0046] In some embodiments, determining the folding angle based on the current capacitances of multiple groups of the first sensing capacitors corresponding to the preset number of the current capacitance differences includes:
[0047] Performing an averaging process on the current capacitances of multiple groups of the first sensing capacitors corresponding to the preset number of the current capacitance differences to obtain a current average capacitance;
[0048] Determining the folding angle based on the current average capacitance.
[0049] In some embodiments, determining the folding angle based on the current average capacitance includes:
[0050] Obtaining the current temperature of the electronic device;
[0051] Determining the folding angle based on the current average capacitance and the current temperature.
[0052] In some embodiments, determining the folding angle based on the magnetic flux includes:
[0053] Obtaining a magnetic flux difference based on the difference between the acquired current magnetic flux and the historical magnetic flux;
[0054] When the magnetic flux difference is less than a second difference threshold, determining the folding angle based on the historical magnetic flux;
[0055] When the magnetic flux difference is greater than the second difference threshold, determining the folding angle based on the current magnetic flux.
[0056] In some embodiments, determining the folding angle based on the current magnetic flux includes:
[0057] Obtaining multiple historical average capacitances; wherein each historical average capacitance is determined by the historical capacitances of multiple groups of the first sensing capacitors corresponding to the preset number of historical capacitance differences;
[0058] Determining the folding angle based on the multiple historical average capacitances and the current magnetic flux.
[0059] In some embodiments, determining the folding angle based on the multiple historical average capacitances and the current magnetic flux includes:
[0060] Determining a first angle based on the multiple historical average capacitances;
[0061] Determining a second angle based on the current magnetic flux;
[0062] Determining the folding angle based on the first angle and the second angle.
[0063] In some embodiments, determining the folding angle based on the first angle and the second angle includes:
[0064] obtaining the folding angle based on the average value of the first angle and the second angle; or,
[0065] performing a weighting process on the first angle and the second angle to obtain the folding angle.
[0066] According to a third aspect of the embodiments of the present disclosure, there is provided an electronic device, including:
[0067] an angle detection module configured to obtain the capacitance value of a first induced capacitance formed in the electronic device within a first time period of a preset time period; and determine the folding angle between a first housing and a second housing of the electronic device based on the capacitance value of the first induced capacitance; the first induced capacitance is formed by a first electrode of a first electrode group located on the first housing and the first electrode of the first electrode group located on the second housing;
[0068] a touch detection module configured to obtain the capacitance value of a second induced capacitance formed in the electronic device within a second time period, and determine touch data of a touch object acting on the electronic device based on the capacitance value of the second induced capacitance; the second induced capacitance is formed by the first electrode of the first electrode group and second electrodes of a second electrode group evenly distributed on the first housing and the second housing;
[0069] wherein, one first time period and one waiting time period constitute one preset time period that repeatedly appears in a time series; the second time period is distributed within the waiting time period of the preset time period.
[0070] According to a fourth aspect of the embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of an electronic device, enabling the electronic device to execute the detection method as described in the second aspect above.
[0071] The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
[0072] In the electronic device proposed by the present disclosure, the first electrode group and the second electrode group distributed in the electronic device can form a second induced capacitance to determine the touch data acting on the electronic device; the first electrode group distributed in the electronic device can form a first induced capacitance to determine the folding angle; thus, the first electrode group in the electronic device can be used to detect both touch data and the folding angle of the electronic device, improving the structural utilization rate of the electrode structure in the electronic device and further reducing the angle detection cost of the electronic device.
[0073] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and do not limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0074] The drawings herein are incorporated into and constitute a part of this specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure.
[0075] Figure 1 is a schematic structural diagram of an electronic device shown according to an exemplary embodiment;
[0076] Figure 2a is a schematic structural diagram of the electronic device in a flattened state shown according to an exemplary embodiment;
[0077] Figure 2b is a schematic structural diagram of the electronic device in a folded state shown according to an exemplary embodiment;
[0078] Figure 3a is a schematic diagram showing the principle of forming a first sensing capacitance shown according to an exemplary embodiment Figure 1 ;
[0079] Figure 3b is a second schematic diagram showing the principle of forming a first sensing capacitance shown according to an exemplary embodiment;
[0080] Figure 4a is a schematic circuit diagram showing a controlled switch connected to a first excitation module shown according to an exemplary embodiment;
[0081] Figure 4b is a schematic circuit diagram showing a controlled switch connected to a detection module shown according to an exemplary embodiment;
[0082] Figure 5 is a schematic distribution diagram of a multi-row second electrode group and a multi-column first electrode group shown according to an exemplary embodiment;
[0083] Figure 6a is a schematic diagram showing the detection frequencies of a touch detection mode and an angle detection mode shown according to an exemplary embodiment Figure 1 ;
[0084] Figure 6b is a second schematic diagram showing the detection frequencies of a touch detection mode and an angle detection mode shown according to an exemplary embodiment;
[0085] Figure 7 is a schematic structural diagram of a magnetic element and a magnetic sensor shown according to an exemplary embodiment;
[0086] Figure 8Schematic flowchart of a detection method shown according to an exemplary embodiment Figure 1 ;
[0087] Figure 9 Graph showing the correspondence between a preset capacitance characterization value and a preset angle shown according to an exemplary embodiment;
[0088] Figure 10 Graph showing the correspondence between a preset capacitance characterization value, a preset angle, and a preset temperature shown according to an exemplary embodiment;
[0089] Figure 11 Second schematic flowchart of the detection method shown according to an exemplary embodiment
[0090] Figure 12 Block diagram of an electronic device shown according to an exemplary embodiment. Detailed implementation manners
[0091] Here, exemplary embodiments will be described in detail, and examples thereof are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0092] Currently, for an electronic device such as a foldable mobile phone, the detection of the folding angle can be processed by using a mechanical detection structure provided in the electronic device or a Hall element in cooperation with an acceleration sensor and a gravity sensor. However, using the above detection structure will have problems such as complex structure and high detection cost of the electronic device.
[0093] To overcome the above problems, the present disclosure proposes an electronic device. Refer to Figure 1 , Figure 1 Schematic diagram of an electronic device shown according to an exemplary embodiment; as Figure 1 shown, the electronic device includes:
[0094] Rotating shaft 1;
[0095] The first housing 2 and the second housing 3, connected to opposite sides of the rotating shaft 1 and capable of folding relative to the rotating shaft 1;
[0096] A first electrode group 4 arranged in multiple parallel columns is respectively distributed in the first housing 2 and the second housing 3; each column of the first electrode group 4 is parallel to the rotating shaft 1; each column of the first electrode group 4 includes multiple first electrodes electrically connected in sequence; wherein, the first electrodes of the first electrode group 4 distributed in the first housing 2 can form a first induction capacitance with the first electrodes of the first electrode group 4 distributed in the second housing 3;
[0097] A second electrode group 5 arranged in multiple parallel rows is distributed in both the first housing 2 and the second housing 3; each row of the second electrode group 5 is arranged crosswise with the rotating shaft 1; each row of the second electrode group 5 includes multiple second electrodes electrically connected in sequence; wherein, the second electrodes of the second electrode group 5 can form a second induction capacitance with the first electrodes of the first electrode group 4;
[0098] A processing module ( Figure 1 not shown), is electrically connected to the multiple columns of the first electrode group, and is configured to determine the folding angle between the first housing 2 and the second housing 3 based on the capacitance value of the first induction capacitance, or determine the touch data of the touch object acting on the electronic device based on the capacitance value of the second induction capacitance.
[0099] The electronic device proposed by the present disclosure is applied in an actual folding scenario. In different folding scenarios, the folding angle of the electronic device in different folding states is obtained, and the display state, software interaction, etc. of the electronic device are adjusted according to the folding angle, so as to improve the functional use of the electronic device in different folding states.
[0100] Here, the electronic device includes but is not limited to a mobile terminal or a portable electronic device; the mobile terminal includes but is not limited to a folding device, such as a folding mobile phone, a folding tablet computer, a folding laptop computer; the portable electronic device includes but is not limited to a wearable device, such as a smart watch or smart glasses.
[0101] Exemplarily, taking the electronic device as a folding mobile phone as an example, the folding mobile phone can be applied in the following scenarios. For example, when the folding mobile phone is in a shooting scenario, the folding mobile phone is hovered at a specified angle and then stood on the desktop, and by determining the current folding angle, half of the folding screen of the mobile phone is controlled to magnify the viewfinder, and the other half of the screen is used for panoramic shooting; for another example, when the folding mobile phone is in an office scenario, after the mobile phone is folded to 90 degrees and hovered, the mobile phone opens the typing mode according to the detected folding angle. At this time, half of the folding screen displays the typing content, and the other half of the screen displays the keyboard; for another example, when the folding mobile phone is in a video viewing scenario, after hovering at different folding angles, the two screens of the folding screen of the folding mobile phone respectively display different split screens. Here, the folding mobile phone can also be applied in scenarios such as hovering call, hovering game, hovering reading, etc., and the present disclosure will not elaborate further herein.
[0102] In the present disclosure, the rotating shaft serves as the rotation center of the electronic device. Here, the rotating shaft can be formed by a stator structure and a rotor structure; the rotor structure is assembled with the stator structure and can rotate relative to the stator structure. The first housing and the second housing proposed in the present disclosure are distributed on both sides of the rotating shaft and are respectively connected to the rotor structure; the first housing and the second housing can perform relative movement or opposite movement based on the rotation of the rotor structure, and the electronic device forms different folding states during the movement. Here, the rotation of the rotor structure relative to the stator structure can be driven by an electric motor or by a magnetic drive module, and the present disclosure does not limit this.
[0103] In the present disclosure, the electronic device includes a folding screen and a housing, and the folding screen is disposed on the housing; the folding screen includes a touch panel and / or a display panel; the housing includes a back shell and / or a middle frame; the first housing and the second housing proposed in the present disclosure can form a part of the back shell or a part of the middle frame, and the first housing and the second housing are respectively connected to both sides of the rotating shaft and are used to support and carry at least one functional module of the electronic device; by way of example, the battery module, main board, etc. of the electronic device can be placed on the first housing or the second housing.
[0104] Here, the first electrode group of multiple columns parallel to the rotating shaft and the second electrode group of multiple rows intersecting with the rotating shaft proposed in the present disclosure can be disposed on the first housing and the second housing, and a back shell or a middle frame is disposed based on the first housing and the second housing. When the first housing and the second housing perform a folding movement along the rotating shaft, the multiple columns of the first electrode group respectively distributed on the first housing and the second housing perform relative movement or opposite movement following the above folding movement, so that the relative distance between the first electrode group distributed on the first housing and the first electrode group distributed on the second housing changes, and / or the facing area between the first electrode group distributed on the first housing and the first electrode group distributed on the second housing changes.
[0105] Referring to the formula Cx = ε * AS / d; this formula is the capacitance value formula of the first induced capacitance between the first electrodes. Here, ε is the relative dielectric constant, S is the facing area between the first electrode distributed on the first housing and the first electrode distributed on the second housing, d is the relative distance between the first electrode distributed on the first housing and the first electrode distributed on the second housing, and Cx is the capacitance value of the above first induced capacitance formed between the first electrode distributed on the first housing and the first electrode distributed on the second housing. Here, when the relative distance between the first electrode group and the second electrode group changes, and / or the facing area changes, the capacitance value of the first induced capacitance changes, and the processing module of the electronic device can determine the folding angle in different folding states according to the capacitance values of the multiple first induced capacitances generated between the multiple first electrodes of the first electrode group distributed on the first housing and the multiple first electrodes of the first electrode group distributed on the second housing.
[0106] Exemplarily, when the first housing and the second housing move towards each other with the rotating shaft as the central axis, the relative distance between the first electrode of the first electrode group located in the first housing and the first electrode of the first electrode group located in the second housing gradually decreases, so that the capacitance value of the first induced capacitance formed therebetween gradually increases; and when the first housing and the second housing move in the opposite direction with the rotating shaft as the central axis, the relative distance between the first electrode of the first electrode group located in the first housing and the first electrode of the first electrode group located in the second housing gradually increases, so that the capacitance value of the first induced capacitance formed therebetween gradually decreases; thus, in the present disclosure, the folding trend of the first housing and the second housing can be judged based on the change of the capacitance value of the first induced capacitance, and moreover, the current folding angle can be determined based on the capacitance value of the first induced capacitance.
[0107] Here, the multiple first electrodes electrically connected in sequence between a column of first electrode groups can be arranged in parallel or in series. The present disclosure does not limit this. It should be noted that both the first electrode and the second electrode can be electrode plates or electrode blocks, and the present disclosure does not limit this. Here, the composition structure of the first electrode group and the composition structure of the second electrode group can be the same or different.
[0108] A first electrode of a column of first electrode groups distributed in the first housing can form a first induced capacitance with a first electrode of a column of first electrode groups distributed in the second housing, or can form a first induced capacitance with multiple first electrodes of a column of first electrode groups distributed in the second housing, or can form a first induced capacitance with multiple first electrodes of multiple first electrode groups distributed in the second housing. The present disclosure does not limit this.
[0109] It should be noted that when the electronic device is folded, the capacitance parameter (i.e., relative distance or facing area) of the formed first induced capacitance will change. Thus, the present disclosure can determine the current folding angle by collecting the capacitance values of multiple first induced capacitances.
[0110] For multiple rows of second electrode groups, multiple rows of parallel second electrode groups intersect with the extending direction of the rotating shaft respectively, and are distributed in the first housing and the second housing at the same time; when a user acts on the electronic device, a second induced capacitance can be mutually induced between each second electrode in each row of second electrode groups and multiple first electrodes of multiple columns of first electrode groups; the processing module of the electronic device determines which area on the screen of the electronic device corresponds to the capacitance value of the second induced capacitance reaching the preset capacitance value peak by obtaining the capacitance values of multiple second induced capacitances, so as to determine the touch data acting on the electronic device; and in response to the determined touch data, the processing module of the electronic device adjusts and refreshes the display screen of the electronic device, so that the display of the electronic device adapts to the touch action of the user.
[0111] Each second electrode of the second electrode group in a row can form a second induction capacitance with a first electrode of a first electrode group distributed on the second housing or on the first housing, or can form a second induction capacitance with multiple first electrodes of a first electrode group, or multiple first electrodes of multiple first electrode groups can form a second induction capacitance. The present disclosure does not limit this. The present disclosure can determine whether there is a touch at the corresponding position according to the capacitance value of each second induction capacitance and obtain touch data.
[0112] In the present disclosure, the processing module is disposed on the first housing or the second housing and is electrically connected to the multiple first electrode groups. Here, the processing module can connect the first electrodes in the first electrode group through conductive wires, or can also connect the first electrodes in the first electrode group through a connection circuit board such as a flexible circuit board. Here, the processing module includes a central processing unit (CPU) or a system-on-a-chip (SoC). The above CPU or SoC is disposed on the main board of the electronic device.
[0113] In an embodiment of the present disclosure, the above first electrode group and second electrode group can also be disposed on the main board of the electronic device, or separately disposed between the main board and the folding screen, or disposed inside the folding screen. The present disclosure does not limit this.
[0114] Here, the range of the folding angle can be from 0 degrees to 360 degrees. When the folding angle is 0 degrees, the first housing and the second housing of the electronic device are in an overlapping state. At this time, the folding screen located on the first housing and the second housing is within the enclosed space surrounded by the first housing and the second housing, and the folding screen is in a screen-off state and does not display a picture. When the folding angle is 180 degrees, the electronic device is in a flattened state. At this time, the two half-screens of the folding screen on the first housing and the second housing are combined to display a picture. When the folding angle is 360 degrees, the first housing and the second housing of the electronic device are also in an overlapping state. At this time, the first housing and the second housing are within the enclosed space formed by folding the folding screen. At this time, the folding screen is in a screen-on state, and a display picture is respectively displayed on the two half-screens of the folding screen located on both sides of the rotating shaft. Here, the display pictures on the two half-screens can be combined into the same picture, or can be non-related pictures, such as application pictures from different application programs.
[0115] It should be noted that the present disclosure can obtain the folding angle based on the capacitance value of the first induction capacitance through a first angle calculation model. Here, the first angle calculation model is obtained by training multiple groups of capacitance values and corresponding folding angles obtained through folding tests on the electronic device.
[0116] In the electronic device proposed by the present disclosure, a first electrode group and a second electrode group distributed in the electronic device can form a second induction capacitance to determine touch data acting on the electronic device; the first electrode group distributed in the electronic device can form a first induction capacitance to determine the folding angle; thus, the first electrode group in the electronic device can be used not only to detect touch data but also to detect the folding angle of the electronic device, improving the structural utilization rate of the electrode structure in the electronic device and further reducing the angle detection cost of the electronic device.
[0117] Moreover, when the electronic device is in different folding states, the present disclosure analyzes the capacitance value of the above-mentioned first induction capacitance to obtain the folding angle, which helps the electronic device quickly and efficiently adjust the display state, software interaction, etc. of the electronic device according to the folding angle, and improves the functional use of the electronic device in different folding states; and, compared with setting a mechanical detection structure to detect the folding angle, the present disclosure uses an electrode group capable of detecting touch for angle detection, which has low cost, small structural occupation, and high detection accuracy.
[0118] In some embodiments, the above-mentioned electronic device further includes:
[0119] A touch panel located on the first housing and the second housing, and multiple columns of the first electrode group and multiple rows of the second electrode group are both located in the touch panel.
[0120] Here, in combination with the above embodiments of the present disclosure, the touch panel is disposed on the folding screen and is located between the display panel and the back shell, and is fixed to the first housing and the second housing; in the present disclosure, the touch panel includes a touch chip, the above-mentioned multiple columns of the first electrode group and multiple rows of the second electrode group, and multiple signal traces connecting the multiple columns of the first electrode group, the multiple rows of the second electrode group and the touch chip.
[0121] The touch chip is a display panel driver integrated circuit (DDIC), which is connected to the display panel and is used to adjust the screen display of the display panel. The touch chip is also connected to the processing module and is used to transmit an output signal to the processing module, so that the processing module determines the capacitance value of the first induction capacitance based on the signal output by the touch chip. Here, the touch chip can be distributed on the first housing or the second housing; optionally, the touch chip in the present disclosure is disposed in the touch panel on the first housing and is located at a position far from the end of the rotating shaft.
[0122] In the embodiments of the present disclosure, multiple columns of the first electrode group and multiple rows of the second electrode group of the touch panel are respectively distributed in different layers of the touch panel.
[0123] It should be noted that the multiple columns of first electrode groups in the touch panel proposed in the present disclosure can be applied in two detection modes; the two detection modes include: an angle detection mode and a touch detection mode; in the angle detection mode, a first induction capacitance can be formed between the first electrodes of the first electrode groups located on both sides of the rotation axis, and the processing module determines the folding angle according to the capacitance value of the first induction capacitance; in the touch detection mode, when a finger touches the folding screen to ground, multiple second induction capacitances can be formed between the second electrodes of the multiple rows of second electrode groups and the first electrodes of the multiple columns of first electrode groups at this time, and the processing module determines the touch position according to the capacitance values of the multiple second induction capacitances and obtains touch data.
[0124] In the embodiment of the present disclosure, the folding screen includes an angle detection area, which covers the rotation axis and part of the column first electrode groups in the touch panel. When the electronic device is in the angle detection mode, the processing module can only connect part of the column first electrode groups in the angle detection area, so as to obtain the capacitance value of the first induction capacitance output by part of the column first electrode groups. Refer to FIGS. 2a and Figure 2b ; Figure 2a is a schematic structural diagram of an electronic device in a flattened state shown according to an exemplary embodiment; Figure 2b is a schematic structural diagram of an electronic device in a folded state shown according to an exemplary embodiment; As Figure 2a and Figure 2b shown, the angle detection area 6 covers the rotation axis 1, and part of the column first electrode groups (not shown) respectively distributed in the first housing and the second housing are distributed in the angle detection area 6.
[0125] In the present disclosure, since the distance between the first electrode groups located in the angle detection area and arranged on both sides of the rotation axis is small, during the folding process of the electronic device, the sensing area of the first induction capacitance formed between the first electrode groups respectively located in the first housing and the second housing is large, and the electric field strength is greater. Therefore, the detection and analysis of the capacitance value of the first induction capacitance by the electronic device are more effective, further improving the accuracy of angle detection.
[0126] Here, the multiple rows of second electrode groups and the multiple columns of first electrode groups proposed in the present disclosure can be arranged in the touch panel, effectively saving the structural space of the electronic device, and improving the accuracy of angle detection on the basis of ensuring the accuracy of touch detection, thereby enhancing the overall practicality of the touch panel of the electronic device.
[0127] In some embodiments, the first electrodes distributed in the first housing and the first electrodes distributed in the second housing correspond to each other one by one to form a first induction capacitance.
[0128] The processing module in the present disclosure is further configured to determine the folding angle based on the capacitance values of the multiple first induction capacitances.
[0129] Here, when the electronic device is in the folded state, the first electrodes of a first electrode group distributed on the first housing correspond to the other first electrodes of a first electrode group distributed on the second housing, and a first sensing capacitor can be formed between two corresponding first electrodes.
[0130] Here, the two first electrodes forming a first sensing capacitor may be electrode sheets with the same size and arranged oppositely, or electrode sheets with different sizes and partially opposite. Exemplarily, among the two first electrodes forming a first sensing capacitor, the width of the first electrode distributed on the first housing is greater than the width of the first electrode distributed on the second housing. At this time, the total number of first electrodes in a column of first electrode groups where the first electrode distributed on the first housing is located is less than the total number of first electrodes in a column of first electrode groups where the first electrode distributed on the second housing is located.
[0131] In the present disclosure, when the folded state of the folding angle changes, the capacitance value of a first sensing capacitor corresponding one by one changes due to the change in the distance and / or the facing area between the corresponding two first electrodes. Thus, the processing module can determine the folding angle of the electronic device based on the changed capacitance value of the first sensing capacitor.
[0132] In the present disclosure, through the regular one-to-one corresponding distribution of the first electrodes, the error in determining the first sensing capacitor is reduced, and the accuracy of angle detection is further improved.
[0133] In some embodiments, there are multiple pairs of one-to-one corresponding first electrodes between a column of first electrode groups located on the first housing and a column of first electrode groups located on the second housing;
[0134] Multiple pairs of one-to-one corresponding first electrodes form multiple first sensing capacitors, and the multiple first sensing capacitors form a group of first sensing capacitors;
[0135] The two first electrode groups forming the same group of first sensing capacitors are symmetrically distributed on both sides of the rotation axis with the rotation axis as the symmetry axis.
[0136] In the embodiments of the present disclosure, multiple first electrodes in a column of the first electrode groups may be connected in parallel or in series. In the present disclosure, there are multiple pairs of corresponding first electrodes in two columns of the first electrode groups that form the same group of first sensing capacitors, and multiple first sensing capacitors are formed by the multiple pairs of corresponding first electrodes, so that each group of first sensing capacitors is jointly formed by multiple first sensing capacitors. Here, when the connection manners between multiple electrode plates are different, the connection manners of the multiple first sensing capacitors are different; when the multiple first sensing capacitors are connected in parallel, the capacitance value of this group of first sensing capacitors is the sum of the capacitance values of the multiple first sensing capacitors; when the multiple first sensing capacitors are connected in series, the reciprocal of the capacitance value of this group of first sensing capacitors is the sum of the reciprocals of the capacitance values of the multiple first sensing capacitors.
[0137] Here, a certain first electrode (which may be a first electrode close to the edge of the electronic device) in multiple columns of the first electrode groups located in the first housing or the second housing is connected to the touch chip through a signal trace. When the touch chip acquires the signals transmitted in multiple columns of the first electrode groups, the processing module determines the capacitance value of a group of first sensing capacitors formed by multiple first electrodes in this column of the first electrode groups and multiple first electrodes in another column of the first electrode groups through the signals transmitted in each column of the first electrode groups, and determines the real-time folding angle of the electronic device according to the acquired multiple groups of capacitance values.
[0138] Here, determining the folding angle according to the capacitance values of multiple groups of first sensing capacitors may be implemented as determining the folding angle based on the average value of the capacitance values of the multiple groups of first sensing capacitors acquired, or further determining the folding angle by selecting the capacitance values of the first sensing capacitors corresponding to several non-adjacent groups of first electrode groups among the multiple groups of first sensing capacitors. In this way, determining the folding angle by analyzing the capacitance values of multiple groups of first sensing capacitors can reduce the error of angle detection, thereby improving the accuracy of angle detection.
[0139] In the present disclosure, two columns of the first electrode groups that form the same group of first sensing capacitors are symmetrically distributed with respect to the axis of rotation, and the distances between the two columns of the first electrode groups and the axis of rotation are the same; preferably, the two first electrodes corresponding to the multiple first sensing capacitors in the same group of first sensing capacitors are also symmetrically distributed with respect to the axis of rotation.
[0140] See Figure 3a and Figure 3b , Figure 3a is a schematic diagram showing the principle of forming the first sensing capacitor according to an exemplary embodiment Figure 1 ; Figure 3b is the second schematic diagram showing the principle of forming the first sensing capacitor according to an exemplary embodiment; as Figure 3a and Figure 3bAs shown, four columns of first electrode groups distributed on both sides of the rotating shaft 1 respectively form two groups of first induction capacitors. The two columns of first electrode groups that form the same group of first induction capacitors are symmetrically distributed with the rotating shaft as the axis of symmetry. Figure 3a The capacitive power line X in Figure 3a schematically shows the composite field strength formed by multiple first induction capacitors in each group of first induction capacitors.
[0141] In the present disclosure, by arranging two columns of first electrode groups symmetrically to form a group of first induction capacitors, the facing area between two corresponding first electrodes in the two columns of first electrode groups that form the same group of first induction capacitors is larger during the folding process, so that the sensing area is larger, thereby improving the accuracy of folding angle detection.
[0142] In some embodiments, the above electronic device may further include:
[0143] The first electrode of the first electrode group located in the second housing is connected to the ground terminal; the electronic device further includes: a first excitation module, a detection module, and a controlled switch;
[0144] One end of the controlled switch is connected to the first electrode of the first electrode group located in the first housing, and the other end is connected to the first excitation module and the detection module;
[0145] The first excitation module is configured to output a first excitation signal to the first electrode group when the controlled switch is switched to conduct between the first electrode of the first electrode group located in the first housing and the first excitation module;
[0146] The detection module is configured to detect the first induction signals output by the multiple first electrodes of the first electrode group under the action of the first excitation signal when the controlled switch is switched to conduct between the first electrode of the first electrode group located in the first housing and the detection module;
[0147] The processing module is electrically connected to the detection module and is further configured to determine the capacitance value of the first induction capacitor based on the first induction signal.
[0148] Combined with the above embodiments of the present disclosure, multiple columns of first electrode groups, a touch chip, and the above first excitation module, the detection module, and the controlled switch can all be arranged in the touch panel.
[0149] In an embodiment of the present disclosure, the grounding terminal may be electrically connected to any one of the first electrodes in the first electrode group located in the first housing; in order to reduce the wiring complexity, the grounding terminal may be disposed on a first electrode of the first electrode group close to the side of the electronic device; here, the grounding terminal may be connected to the first electrode of the first electrode group through a first switching switch; in combination with the above of the present disclosure, when the electronic device is in the angle detection mode, the first switching switch is in the closed state, and at this time, a plurality of successively electrically connected first electrodes on the first housing are grounded through a corresponding first switching switch.
[0150] In the present disclosure, refer to Figure 4a and Figure 4b . Figure 4a is a schematic circuit diagram of a controlled switch connected to the first excitation module shown according to an exemplary embodiment; Figure 4b is a schematic circuit diagram of a controlled switch connected to the detection module shown according to an exemplary embodiment. As Figure 4a and Figure 4b shown, both the first excitation module 7 and the detection module 8 are disposed in the touch chip, and the controlled switch K is connected at the positions of the first excitation module 7 and the detection module 8. The controlled switch K is a multi-pole multi-throw switch or a signal control switch, and there may be a plurality of controlled switches K. One end of the second controlled switch K is connected to the signal trace connected to the multi-column first electrode group 2 located in the first housing.
[0151] Here, a total clock module is further disposed in the electronic device, and the total clock module can generate different timing signals; here, the total clock module can generate a first timing signal; the first timing signal corresponds to a plurality of identical preset time periods that repeatedly appear in the time sequence, and each preset time period is composed of a first time period and a waiting time period; within the first time period, the first timing signal triggers the first excitation module to generate a first excitation signal.
[0152] During a first time period, the electronic device is in an angle detection mode. The controlled switch is first in a first switch state, that is, closing the connection line between the first excitation module and multiple columns of first electrode groups on the first housing. At this time, the first excitation module outputs a first excitation signal to the first electrodes of multiple columns of first electrode groups on the first housing through a signal channel formed by multiple signal traces. The first excitation signal can be a square wave signal or a sine wave signal. After a specified time when the first excitation module outputs the first excitation signal, the controlled switch switches to a second switch state, that is, closing the connection line between the detection module and multiple columns of first electrode groups on the first housing. At this time, when the first excitation signal is transmitted by the first electrodes of multiple columns of first electrode groups on the first housing and the first electrodes of multiple columns of first electrode groups on the second housing are connected to the ground wire, multiple groups of first induction capacitors are formed between the first electrodes of multiple columns of first electrode groups on the first housing and the first electrodes of multiple columns of first electrode groups on the second housing. And because each group of first induction capacitors changes the electrical signal parameters of the first excitation signal, a first induction signal is formed on the first electrodes of each group of first electrode groups. Here, the first induction signal is transmitted to the detection module through a signal transmission channel formed by the signal traces corresponding to multiple columns of first electrode groups on the first housing.
[0153] It should be noted that during the first time period, the first excitation module generates a frame of scan frame, and a frame of scan frame sequentially inputs the first excitation signal to multiple columns of first electrode groups on the first housing to form a scan of all the first electrodes in multiple columns of first electrode groups.
[0154] It should also be noted that in the electronic device, the first electrodes of the first electrode group will also form parasitic capacitors with the surrounding conductors. The capacitance value determined by the processing module according to the first induction signal output by the first electrode group of the first housing is the sum of the capacitance values of multiple parasitic capacitors and the capacitance values of multiple first induction capacitors; during the folding process of the electronic device, because the change in the parasitic capacitance formed between the first electrodes of the first electrode group and their surrounding conductors is small, therefore, the processing module can determine the capacitance value of the first induction capacitor based on this, and determine the change in the folding state from the change in the capacitance value of the first induction capacitor, and further determine the folding angle.
[0155] In the embodiment of the present disclosure, by grounding the first electrodes in the first electrode group of the second housing, the detection circuit in the touch panel forms a loop, and the grounding process also increases the capacitance intensity of multiple groups of first induction capacitors formed on both sides of the rotating shaft, further improving the accuracy of determining the folding angle using the capacitance value of the first induction capacitor; and, a controlled switch, a detection module, and a first excitation module are provided in the electronic device, which can quickly and effectively further determine the folding angle by generating the first excitation signal and detecting the first induction signal, ensuring the effectiveness of the folding angle detection.
[0156] In some embodiments, the above electronic device further includes:
[0157] A second excitation module, electrically connected to the second electrodes of multiple rows of the second electrode groups, and configured to output a second excitation signal to the second electrodes of multiple rows of the second electrode groups;
[0158] A processing module, electrically connected to the first electrodes of multiple columns of the first electrode groups, and further configured to obtain second induction signals output by the multiple first electrodes of multiple columns of the first electrode groups under the action of the second excitation signal; and determine the capacitance value of the second induction capacitor based on the second induction signals.
[0159] Here, a second switching switch is further provided in the touch panel of the electronic device. One end of the second switching switch is electrically connected to the detection module, and the other end is electrically connected to the first electrodes of multiple columns of the first electrode groups of the first frame and the second frame. Optionally, it is connected to the first electrodes near the edge of the electronic device in the first electrode group.
[0160] Combined with the above of the present disclosure, the electronic device further has a touch detection mode. When in the touch detection mode, the first switching switch is in an open state, cutting off the connection line between the first electrode group on the second frame and the ground terminal; at the same time, the second switching switch is closed, and all columns of the first electrode groups on the first frame and the second frame are electrically connected to the detection module.
[0161] In the present disclosure, the above-mentioned total clock module further generates a second timing signal; the second timing signal is also a periodic signal, and the second timing signal corresponds to multiple second time periods that appear at intervals. Here, the touch detection mode of the electronic device in the present disclosure is turned on during the second time periods. One or more second time periods are distributed in the waiting time period between two adjacent first time periods, and the time difference between two adjacent second time periods is equal to or greater than the first time period; in this way, the touch detection mode of the electronic device occurs between two adjacent angle detection modes, and different detection modes are not carried out in the same time period. Here, different electronic devices generate the second timing signal under different circumstances. For example, in the first electronic device, when the folding screen is in the lit state, or when the folding screen is in the off state and the proximity sensor of the electronic device detects that the user is approaching, the second timing signal is generated; in the second electronic device, when the electronic device is in the powered-on state, the second timing signal is generated.
[0162] During a second time period, a second timing signal triggers a second excitation module to generate a second excitation signal. It should be noted that during the second time period, the second excitation module generates a frame of scanning frames, and a frame of scanning frames sequentially inputs the second excitation signal to each row of the second electrode groups; the second excitation signal can be a square wave signal or a sine wave signal. Under the action of the second excitation signal, each first electrode of multiple columns of the first electrode groups can sequentially form at least one second induction capacitance with at least a second electrode at the cross position of each row of the second electrode groups. Here, due to the effect of the touch finger on the folding screen, the second induction capacitance will be affected by the finger's grounding and its capacitance value will change; when the detection module obtains multiple second induction capacitances of each column of the first electrode groups, it determines touch data (including touch position, touch duration, etc.) based on the magnitude of each second induction capacitance.
[0163] See Figure 5 , Figure 5 is a distribution schematic diagram of multiple rows of second electrode groups and multiple columns of first electrode groups shown according to an exemplary embodiment; as Figure 5 shown, the touch panel has multiple rows of second electrode groups 5 (including multiple second electrodes, i.e., TX electrodes), and multiple columns of first electrode groups 4 (including multiple first electrodes, i.e., RX electrodes). In some examples, during a first time period, the detection module can obtain the capacitance values of multiple groups of first induction capacitances by connecting multiple columns of the first electrode groups located in the angle detection area 6 and distributed in the first housing; during the second time period, the detection module can obtain the capacitance values of multiple groups of second induction capacitances by connecting all columns of the second electrode groups 4.
[0164] It should be noted that the detection frequencies of the touch detection mode and the angle detection mode in the present disclosure can be preset or flexibly set according to the actual usage state of the electronic device. Exemplarily, see Figure 6a and Figure 6b , Figure 6a is a schematic diagram of the detection frequencies of the touch detection mode and the angle detection mode shown according to an exemplary embodiment Figure 1 ; Figure 6b is a second schematic diagram of the detection frequencies of the touch detection mode and the angle detection mode shown according to an exemplary embodiment; Figure 6a and Figure 6b In, the coordinate direction represents the second time period Tt corresponding to the touch detection mode, and the first time period Tc corresponding to the angle detection mode. As Figure 6a shown, the frequency of the touch detection mode is 120 hz, and the frequency of the angle detection mode is 120 hz. At this time, the touch detection mode and the angle detection mode are alternately turned on, and the waiting time period between the second time period Tt and two consecutive first time periods Tc coincides; as Figure 6bAs shown, if it is detected that the folding angle has not changed in multiple consecutive preset time periods, that is, the electronic device is in a hovering state at the current folding angle. At this time, the detection frequency of the angle detection mode can be adjusted to 30 hz, and the frequency of the touch detection mode is still 120 hz. At this time, the waiting period between two consecutive first time periods Tc can include four second time periods Tt.
[0165] In the embodiments of the present disclosure, by using the electrode group for touch detection in the touch panel of the folding screen for angle detection, the detection cost is greatly saved.
[0166] Here, considering that when the folding screen is in a touch response scenario, finger touch interferes with the capacitance values of multiple groups of first induction capacitors formed between the first electrode group and the second electrode group, thereby affecting the accuracy of the detected folding angle. Therefore, the present disclosure also provides a magnetic element and a magnetic sensor.
[0167] In some embodiments, refer to Figure 7 , Figure 7 is a schematic structural diagram of a magnetic element and a magnetic sensor shown according to an exemplary embodiment; as Figure 7 shown, the folding module proposed by the present disclosure further includes:
[0168] A magnetic element 9, disposed on the first housing 2;
[0169] A magnetic sensor 10, disposed on the second housing 3, configured to detect the magnetic flux formed by the interaction between the magnetic element 9 and the magnetic sensor 10 when the first housing 2 and the second housing 3 are folded relative to the rotation axis ( Figure 7 not shown);
[0170] A processing module ( Figure 7 not shown), electrically connected to the magnetic sensor 10, configured to determine the folding angle based on the magnetic flux and the capacitance value of the first induction capacitor.
[0171] In the present disclosure, the magnetic element may be a magnet; the magnetic sensor may be a Hall sensor. The magnet and the Hall sensor may be disposed within the touch screen and located between the display panel and the touch panel, or between the touch panel and the back cover. The present disclosure does not limit this.
[0172] Here, the magnet and the Hall sensor can be respectively located within the two half-screens of the folding screen, and the magnet and the Hall sensor are symmetrically distributed with respect to the axis of rotation; when the folding screen is in different folding states, the Hall element in the Hall sensor detects the magnetic field lines of the magnet, thereby determining the change in magnetic flux formed by the interaction between the magnetic element and the magnetic sensor, and further determining whether the first housing and the second housing of the electronic device are approaching or moving away from each other. The processing module jointly determines the folding angle of the electronic device in the current folding state based on the magnetic flux and the capacitance value of the first sensing capacitor.
[0173] In some other embodiments, the magnetic element can also be located on the second housing, and in this case, the magnetic sensor is located on the first housing.
[0174] The embodiments of the present disclosure detect the first sensing capacitor and detect the magnetic flux based on the magnetic sensor, more comprehensively detecting the magnetic field and the electric field. This not only reduces the error rate caused by the mechanical structure hysteresis of the axis of rotation when using only the magnetic sensor and the magnetic element to detect the folding angle, but also reduces the error rate caused by the interference of finger touch on the detection of the first sensing capacitor, comprehensively improving the accuracy of angle detection.
[0175] In some embodiments, there are multiple pairs of corresponding first electrodes between a column of first electrode groups located on the first housing and a column of first electrode groups located on the second housing; the multiple pairs of corresponding first electrodes form multiple first sensing capacitors, and the multiple first sensing capacitors form a group of first sensing capacitors; the processing module is further configured to obtain multiple current capacitance differences for multiple groups of first sensing capacitors based on the difference between the current capacitance value and the historical capacitance value of each group of first sensing capacitors detected; when the preset number of current capacitance differences are all less than the first difference threshold, determine the folding angle based on the current capacitance values of the multiple groups of first sensing capacitors corresponding to the preset number of current capacitance differences; when the number of current capacitance differences less than the first difference threshold does not exceed the preset number, determine the folding angle based on the magnetic flux.
[0176] Here, in combination with the above content of the present disclosure, the frequency at which the angle detection mode is turned on can be 30 Hz or 120 Hz. Correspondingly, the angle detection mode can sample 30 times per second, or sample 120 times per second. Each time the angle is detected, the processing module of the present disclosure can record the corresponding detection time period and the data of multiple groups of first sensing capacitors formed between the first electrode group and the second electrode group; at this time, the processing module statistically calculates the current capacitance values of multiple groups of first sensing capacitors detected in the current first time period and the historical capacitance values of multiple groups of first sensing capacitors detected in a previous first time period.
[0177] In the embodiments of the present disclosure, when a finger touches the foldable screen, the disturbance to the first sensing capacitance is relatively large. Therefore, the capacitance value fluctuation of the first sensing capacitance detected in two consecutive first time periods is relatively large. The processing module obtains the current capacitance difference between the current capacitance value of multiple groups of first sensing capacitances in the current first time period and the historical capacitance value in the historical first time period, and compares them with the first difference threshold respectively. The folding angle is further determined through the comparison results.
[0178] Here, the first difference threshold is used to reflect the capacitance value change of the first sensing capacitance when the foldable screen is not affected by touch interference or the touch interference has an impact on the first sensing capacitance within the error range. If the current capacitance difference determined in the current first time period is less than the first difference threshold, it can be determined that a group of first sensing capacitances corresponding to this current capacitance difference is not affected by touch interference, or the touch interference has an impact on the first sensing capacitance within the error range. Here, the first difference threshold can be preset or dynamically adjusted.
[0179] In some examples, the preset angle for opening and closing the foldable screen is 30 degrees per second. The average change amount detected each time should be 0.25 degrees. Correspondingly, the capacitance difference of the first sensing capacitance corresponding to this angle change amount can be determined to determine the first difference threshold.
[0180] In other examples, the present disclosure can set the first difference threshold according to the specific usage scenario of the electronic device. Exemplarily, the first difference threshold of the electronic device in the typing scenario is greater than the first difference threshold of the electronic device in the call scenario.
[0181] In some other examples, the present disclosure can also use the average value of the historical capacitance differences determined in multiple historical first time periods as the first difference threshold. Alternatively, the present disclosure can further adjust the first difference threshold according to the folding angle determined by the magnetic flux detected by the magnetic sensor. In the present disclosure, taking the historical first time period as the previous detection time as an example, for the multiple current capacitance differences corresponding to multiple groups of first sensing capacitances, when there are a preset number of current capacitance differences less than the first difference threshold, it is determined that the touch interference to the angle detection in the current first time period is small. Therefore, the folding angle can be determined based on the multiple current capacitance values of multiple groups of first sensing capacitances. When the number of current capacitance differences less than the first difference threshold does not exceed the preset number, it is determined that the touch interference to the angle detection in the current first time period is large. At this time, the accuracy of determining the folding angle based on the multiple current capacitance values of multiple groups of first sensing capacitances is low. Therefore, the folding angle is further determined through the magnetic flux. Here, the preset number can be preset or dynamically adjusted. Exemplarily, the preset number can be half of the number of groups of first sensing capacitances.
[0182] In the embodiments of the present disclosure, by comparing the current capacitance differences of multiple groups of first sensing capacitances in the current first time period and the historical first time period with a first difference threshold, it is possible to analyze the degree of touch interference suffered by the folding screen in the angle detection mode, so as to adjust the way of determining the folding angle and further improve the accuracy of angle detection.
[0183] In some embodiments, the processing module is further configured to perform an averaging process on the current capacitances of multiple groups of first sensing capacitances corresponding to a preset number of current capacitance differences to obtain a current average capacitance; and determine the folding angle based on the current average capacitance.
[0184] In the present disclosure, the way of determining the folding angle according to the capacitance value can be obtained through a preset first angle mapping table, or the capacitance value can be input into a first angle calculation model, and the folding angle is output through the first angle calculation model. Here, the preset first mapping table includes the first angle mapping table between the preset angle and the preset capacitance value representation. Here, the preset capacitance value representation is used to reflect the capacitance value size represented by the first sensing signal output by the channel formed by the signal traces connected to the first electrode group located in the first housing.
[0185] Here, the present disclosure looks up the table in the above first angle mapping table based on the current average capacitance, so as to find the corresponding folding angle. In this way, the preset number of current capacitance values that are not affected by touch interference or are less affected by touch interference are used to determine the folding angle, improving the accuracy of angle detection.
[0186] In some other embodiments, the processing module is further configured to respectively determine a preset number of corresponding angles through the preset number of current capacitance differences and the first angle mapping table between the preset angle and the preset capacitance value representation, and obtain the folding angle by averaging the multiple corresponding angles.
[0187] In some embodiments, the processing module is further configured to obtain the current temperature of the electronic device; and determine the folding angle based on the current average capacitance and the current temperature.
[0188] In the present disclosure, the current temperature of the electronic device in the current first time period is detected by a temperature sensor provided in the electronic device. The capacitance formed by the electrodes in the touch panel is affected by temperature changes. Therefore, the present disclosure also sets a second angle mapping table between the preset angle, the preset temperature, and the preset capacitance value representation. When the temperature is different, the folding angles corresponding to the different capacitance values of each group of first sensing capacitances detected are different.
[0189] Here, the present disclosure can find the corresponding folding angle by obtaining the current temperature and the current average capacitance value of the electronic device. In this way, by detecting the current temperature and further looking up the table based on the current temperature to determine the folding angle, the error of the angle detection caused by temperature can be reduced, and the accuracy of the angle detection can be improved.
[0190] In the embodiments of the present disclosure, when the number of current capacitance differences less than the first difference threshold does not exceed a preset number, the folding angle is determined by magnetic flux.
[0191] In some embodiments, the processing module is further configured to obtain a magnetic flux difference based on the difference between the obtained current magnetic flux and the historical magnetic flux; when the magnetic flux difference is less than the second difference threshold, determine the folding angle based on the historical magnetic flux; when the magnetic flux difference is greater than the second difference threshold, determine the folding angle based on the current magnetic flux.
[0192] Here, the second preset difference is used to reflect the error of the magnetic flux generated by the interaction between the magnetic sensor and the magnetic element due to factors such as mechanical structure hysteresis existing in the rotating shaft; the second difference threshold can be preset or dynamically adjusted during the use of the electronic device.
[0193] Exemplarily, a magnetic flux difference is obtained based on the difference between the current magnetic flux obtained in the current first time period and the historical magnetic flux obtained in the previous first time period; if the magnetic flux difference is less than the second difference threshold, it is determined that the folding angle has not changed between the current first time period and the previous first time period. At this time, the folding angle determined in the previous first time period can be used as the current folding angle. Here, the folding angle determined in the previous first time period can be determined by the historical magnetic flux or by the capacitance values of multiple groups of first induction capacitors corresponding to the previous first time period; if the magnetic flux difference is greater than the second difference threshold, it is determined that the folding angle has changed between the current first time period and the previous first time period. At this time, the folding angle is determined by the current magnetic flux.
[0194] In the present disclosure, the method of determining the folding angle according to the magnetic flux can be obtained through a preset third angle mapping table, or the magnetic flux can be input into a second angle calculation model, and the folding angle is output through the second angle calculation model. Here, the preset third angle mapping table includes the mapping table between the preset angle and the preset magnetic flux. Exemplarily, the present disclosure can find the corresponding folding angle by corresponding the current magnetic flux with the above third angle mapping table.
[0195] Thus, the present disclosure can determine whether the folding screen is in the folding process or in the hovering state at a specified angle by comparing the magnetic flux difference between the current magnetic flux and the historical magnetic flux. Moreover, the current folding angle can be further output based on the comparison result between the magnetic flux difference and the second difference threshold.
[0196] In some embodiments, the processing module is further configured to obtain a plurality of historical average capacitance values; wherein each historical average capacitance value is determined by the historical capacitance values of multiple groups of first induction capacitors corresponding to a preset number of historical capacitance differences; and determine the folding angle based on the plurality of historical average capacitance values and the current magnetic flux.
[0197] Here, during the startup process of the angle detection mode, the processing module records the average capacitance value between multiple groups of first induction capacitors when there are a preset number of historical capacitance differences less than the first preset difference within each first time period; these average capacitance values correspond to the situation where the folding screen is not affected by touch interference or the influence of touch interference on the first induction capacitors is within the error range.
[0198] In the present disclosure, within the current first time period, when the number of current capacitance differences less than the first difference threshold does not exceed the preset number, it is determined that the touch interference on the angle detection within the current first time period is large. At this time, one or more historical average capacitance values before the current first time period recorded by the processing module are obtained; and the folding angle is jointly determined by combining the historical average capacitance values and the current magnetic flux.
[0199] Exemplarily, two historical first time periods (T2 and T1) before the current first time period T3 are obtained; the historical average capacitance value C1 corresponding to the historical first time period T1 and the historical average capacitance value C2 corresponding to the historical first time period T2 are obtained. The simulated capacitance value C3 corresponding to the current first time period T3 is obtained through extrapolation processing. Here, the simulated capacitance value C3 corresponding to the current first time period T3 can be obtained through the extrapolation formula: (C3 - C2) / (T3 - T2) = (C2 - C1) / (T2 - T1).
[0200] In the present disclosure, jointly determining the folding angle by combining the historical average capacitance values and the current magnetic flux may be to input the above simulated capacitance value and the current magnetic flux into an angle determination model, and calculate and output the folding angle through the angle determination model. Here, the angle determination model is obtained by training multiple times with a preset number of first induction capacitor capacitance values, magnetic fluxes, and measured folding angles obtained from folding tests of the electronic device.
[0201] In the embodiments of the present disclosure, the folding angle is jointly determined by combining the historical capacitance values of the first sensing capacitor that are not affected by touch interference or are slightly affected by touch interference and the current magnetic flux, which improves the comprehensiveness of angle detection and further enhances the accuracy of angle detection.
[0202] In some embodiments, the processing module is further configured to determine a first angle based on a plurality of historical average capacitance values, determine a second angle based on the current magnetic flux, and determine the folding angle based on the first angle and the second angle.
[0203] Here, determining the first angle based on a plurality of historical average capacitance values may be obtained by looking up a first angle mapping table or a second angle mapping table; determining the second angle based on the current magnetic flux may be obtained by looking up a third angle mapping table or a second angle mapping table.
[0204] After the present disclosure obtains the first angle and the second angle by looking up the mapping table, it further analyzes and calculates to obtain the folding angle, which improves the comprehensiveness and accuracy of angle detection.
[0205] In some embodiments, the processing module is further configured to obtain the folding angle based on the average value of the angles of the first angle and the second angle; or, perform a weighted process on the first angle and the second angle to obtain the folding angle.
[0206] Here, when performing a weighted process on the first angle and the second angle, the weight corresponding to the first angle and the weight corresponding to the second angle may be preset or dynamically adjusted; exemplarily, if the current application scenario is a video viewing hover scenario, the weight value of the first angle may be increased, and if the current application scenario is a call hover scenario, there is a situation of finger touch, and at this time, the weight value of the second angle may be increased.
[0207] In the present disclosure, the weight value of the first angle and the weight value of the second angle are both between 0 and 1, and the sum of the weight value of the first angle and the weight value of the second angle is 1.
[0208] The present disclosure performs an average process or a weighted process on the first angle and the second angle to obtain the folding angle, which improves the accuracy of angle detection.
[0209] The embodiments of the present disclosure further provide a detection method, which is applied to the electronic device proposed in the above embodiments of the present disclosure. Specifically, it can be applied to a folding device. Refer to Figure 8 , Figure 8 is a schematic flowchart of the detection method shown according to an exemplary embodiment Figure 1 ; as Figure 8 shown, the detection method can be implemented through the following steps:
[0210] Step S801, within the first time period of a preset time period, obtain the capacitance value of a first sensing capacitance formed in the electronic device; and determine the folding angle between the first housing and the second housing of the electronic device based on the capacitance value of the first sensing capacitance;
[0211] The first sensing capacitance is formed between a first electrode of a first electrode group located on the first housing and a first electrode of a first electrode group located on the second housing;
[0212] Step S802, within the second time period, obtain the capacitance value of a second sensing capacitance formed in the electronic device, and determine touch data of a touch object acting on the electronic device based on the capacitance value of the second sensing capacitance;
[0213] The second sensing capacitance is formed between the first electrode of the first electrode group and a second electrode of a second electrode group evenly distributed on the first housing and the second housing;
[0214] Wherein, a first time period and a waiting time period constitute a preset time period that repeatedly appears in the time sequence; the second time period is distributed within the waiting time period of the preset time period.
[0215] In the present disclosure, a total clock module is provided in the electronic device, and the total clock module can generate different timing signals; here, the total clock module can generate a first timing signal when the electronic device is in the powered-on state; here, different electronic devices also generate a second timing signal in different situations. For example, in the first electronic device, when the folding screen is in the lit state or the folding screen is in the off state and the proximity sensor of the electronic device detects that a user is approaching, the second timing signal is generated; in the second electronic device, the second timing signal is generated when the electronic device is in the powered-on state.
[0216] Here, the first timing signal corresponds to a plurality of identical preset time periods that repeatedly appear in the time sequence, and each preset time period is composed of a first time period and a waiting time period; within the first time period, the first timing signal triggers a first excitation module to generate a first excitation signal. The second timing signal is also a periodic signal, and the second timing signal corresponds to a plurality of second time periods that appear at intervals. Here, the angle detection mode of the electronic device in the present disclosure is turned on within the first time period, and the touch detection mode is turned on within the second time period; one or more second time periods are distributed within the waiting time period between two adjacent first time periods, and the time difference between two adjacent second time periods is equal to or greater than the first time period; in this way, the touch detection mode of the electronic device occurs between two adjacent angle detection modes, and different detection modes are not carried out within the same time period.
[0217] It should be noted that within the first time period, the first excitation module of the electronic device generates a frame of scanning frame, and a frame of scanning frame sequentially inputs the first excitation signal into multiple columns of first electrode groups on the first housing, forming a scan of all the first electrodes in the multiple columns of first electrode groups. Moreover, the detection module can detect the multiple columns of first electrode groups scanned on the first housing, thereby obtaining the first induction signal; after obtaining the first induction signal, the capacitance value of the first induction capacitor is obtained by analyzing the first induction signal. Within the second time period, the second excitation module generates a frame of scanning frame, and a frame of scanning frame sequentially inputs the second excitation signal into each row of second electrode groups, forming a scan of all the second electrodes in the multiple rows of second electrode groups. Moreover, the detection module can detect all the first electrode groups, thereby obtaining the second induction signal; after obtaining the second induction signal, the capacitance value of the second induction capacitor is obtained by analyzing the second induction signal.
[0218] In this way, within the first time period, the first electrode group and the second electrode group distributed in the electronic device can form a second induction capacitor to determine the touch data acting on the electronic device; within the second time period, the first electrode group distributed in the electronic device can form a first induction capacitor to determine the folding angle; in this way, the first electrode group in the electronic device can be used not only to detect touch data, but also to detect the folding angle of the electronic device, improving the structural utilization rate of the electrode structure in the electronic device and further reducing the angle detection cost of the electronic device; and the present disclosure separately detects the folding angle and touch data in different time periods, respectively ensuring the accuracy of angle detection and touch detection.
[0219] When the electronic device is in different folding states, the present disclosure obtains the folding angle by analyzing the capacitance value of the above-mentioned first induction capacitor, which helps the electronic device to quickly and efficiently adjust the display state, software interaction, etc. of the electronic device according to the folding angle, and improve the functional use of the electronic device in different folding states; moreover, compared with setting a mechanical detection structure to detect the folding angle, the present disclosure uses the electrode group for angle detection with low cost, small structural occupation, and high detection accuracy.
[0220] In some embodiments, the above detection method further includes:
[0221] Obtain multiple folding angles determined within multiple preset time periods, and judge the change situation of the multiple folding angles;
[0222] In the case where the folding angle does not change, set the waiting time period to a preset first time value;
[0223] In the case where the folding angle changes, set the waiting time period to a preset second time value, and the first time value is greater than the second time value.
[0224] Exemplarily, in combination withFigure 6a As shown, a second time period Tt is the same as the waiting time period corresponding to each preset time period; at this time, the waiting time period is a preset second time value; correspondingly, the frequency of the touch detection mode is 120 hz, and the frequency of the angle detection mode is 120 hz. As Figure 6b As shown, if it is detected that the folding angle has not changed in a plurality of consecutive preset time periods, that is, the electronic device is in a hovering state at the current folding angle, the waiting time period can be adjusted to the first time value at this time, that is, the detection frequency of the angle detection mode is adjusted to 30 hz, and the frequency of the touch detection mode is still 120 hz. At this time, the waiting time period between two consecutive first time periods Tc can include four second time periods Tt.
[0225] In this way, the embodiment of the present disclosure can increase the waiting time period between every two first time periods corresponding to the angle detection mode when the folding angle of the electronic device remains unchanged, that is, reduce the frequency of angle detection, thereby saving the power consumption of the electronic device; the present disclosure also reduces the above-mentioned application interval when the folding angle of the electronic device changes, that is, increases the frequency of angle detection, thereby improving the accuracy of angle detection.
[0226] In some embodiments, determining the folding angle between the first housing and the second housing based on the capacitance value of the first sensing capacitor can be implemented through the following steps:
[0227] Obtain the magnetic flux formed by the interaction between the magnetic element and the magnetic sensor of the electronic device; determine the folding angle based on the magnetic flux and the capacitance value of the first sensing capacitor.
[0228] Here, for the method of obtaining the magnetic flux and determining the folding angle based on the magnetic flux and the capacitance value of the first sensing capacitor, refer to the above text of the present disclosure, and the present disclosure will not elaborate further here.
[0229] The embodiment of the present disclosure detects the first sensing capacitor formed between the first electrodes of the first electrode groups respectively distributed on the first housing and the second housing, and detects the magnetic flux based on the magnetic sensor, more comprehensively detecting the magnetic field and the electric field, not only reducing the error rate caused by the mechanical structure hysteresis of the rotating shaft when using only the magnetic sensor and the magnetic element to detect the folding angle, but also reducing the error rate caused by the interference of finger touch on the detection of the first sensing capacitor, comprehensively improving the accuracy of angle detection.
[0230] In some embodiments, there are multiple pairs of corresponding first electrodes between a column of first electrode groups in the first housing and a column of first electrode groups in the second housing; the multiple pairs of corresponding first electrodes form multiple first sensing capacitors, and the multiple first sensing capacitors form a set of first sensing capacitors; the determination of the folding angle based on the magnetic flux and the capacitance value of the first sensing capacitors can be implemented through the following steps:
[0231] Based on the difference between the current capacitance value and the historical capacitance value of each set of first sensing capacitors detected, obtain multiple current capacitance differences for multiple sets of first sensing capacitors; when the preset number of current capacitance differences are all less than the first difference threshold, determine the folding angle based on the current capacitance values of multiple sets of first sensing capacitors corresponding to the preset number of current capacitance differences; when the number of current capacitance differences less than the first difference threshold does not exceed the preset number, determine the folding angle based on the magnetic flux.
[0232] Here, the current capacitance value is detected in the current first time period; the historical capacitance value is detected in the historical first time period. Taking the historical first time period as the previous first time period as an example, for the multiple current capacitance differences corresponding to multiple sets of first sensing capacitors, when there are a preset number of current capacitance differences less than the first difference threshold, it is determined that the touch interference received by the angle detection in the current first time period is small. At this time, determine the folding angle based on the multiple current capacitance values of multiple sets of first sensing capacitors; when the number of current capacitance differences less than the first difference threshold does not exceed the preset number, it is determined that the touch interference received by the angle detection in the current first time period is large. At this time, the accuracy of determining the folding angle based on the multiple current capacitance values of multiple sets of first sensing capacitors is low. Therefore, further determine the folding angle through the magnetic flux.
[0233] The embodiments of the present disclosure can analyze the degree of touch interference received by the folding screen in the angle detection mode by comparing the current capacitance differences of multiple sets of first sensing capacitors in the current first time period and the historical first time period with the first difference threshold, and adjust the way of determining the folding angle accordingly, further improving the accuracy of angle detection.
[0234] In some embodiments, the determination of the folding angle based on the current capacitance values of multiple sets of first sensing capacitors corresponding to the preset number of current capacitance differences can be implemented through the following steps:
[0235] Perform an averaging process on the current capacitance values of multiple sets of first sensing capacitors corresponding to the preset number of current capacitance differences to obtain a current average capacitance value; determine the folding angle based on the current average capacitance value.
[0236] In the present disclosure, the manner of determining the folding angle according to the capacitance value may be obtained through a pre-set first angle mapping table. Here, the first angle mapping table reflects the relationship between the preset angle and the preset capacitance value representation value. Here, the preset capacitance value representation value is used to reflect the capacitance value size represented by the first induction signal output by the channel formed by the signal traces connected to the first electrode group located in the first housing.
[0237] See Figure 9 , Figure 9 is a correspondence diagram between the preset capacitance value representation value and the preset angle shown according to an exemplary embodiment; Figure 9 In , the abscissa represents the preset angle in the folded state of the electronic device, and the ordinate represents the preset capacitance value representation value. See Table 1, and Table 1 is an example of the above-mentioned first angle mapping table.
[0238]
[0239] Table 1
[0240] Here, the present disclosure looks up the table in the above-mentioned first angle mapping table based on the current average capacitance value, so as to find the corresponding folding angle. In this way, the preset number of current capacitance values that are not affected by touch interference or are less affected by touch interference are used to determine the folding angle, improving the accuracy of angle detection.
[0241] In some other embodiments, the above-mentioned determination of the folding angle based on the current capacitance values of multiple groups of first induction capacitors corresponding to the differences from the preset number of current capacitance values may be implemented through the following steps:
[0242] Respectively, through the differences of the preset number of current capacitance values and the mapping table between the preset angle and the preset capacitance value representation value, determine the preset number of corresponding angles, and obtain the folding angle by averaging the multiple corresponding angles.
[0243] In some embodiments, the above-mentioned determination of the folding angle based on the current average capacitance value may be implemented through the following steps:
[0244] Obtain the current temperature of the electronic device; determine the folding angle based on the current average capacitance value and the current temperature.
[0245] In the present disclosure, the capacitance formed by the electrodes in the touch panel will be affected by temperature changes. Therefore, the present disclosure also sets a second angle mapping table between the preset angle, the preset temperature, and the preset capacitance value representation value. When the temperature is different, the angles corresponding to the detected different capacitance values are different.
[0246] See Figure 10 , Figure 10It is a corresponding relationship diagram between a preset capacitance characterization value, a preset angle, and a preset temperature shown according to an exemplary embodiment; here, the abscissa represents the preset folding angle of the electronic device, and the ordinate represents the preset capacitance characterization value, Figure 10 The different curves in it represent the relationship between the preset capacitance characterization value and the preset angle at different preset temperatures.
[0247]
[0248] Table 2
[0249]
[0250] Table 3
[0251] Referring to Table 2 and Table 3, Table 2 and Table 3 are example tables of the above-mentioned second angle mapping table; combining Table 1, Table 2 and Table 3; Table 1 shows the corresponding relationship between the preset capacitance characterization value and the preset angle when the temperature of the electronic device is 25 degrees Celsius; Table 2 shows the corresponding relationship between the preset capacitance characterization value and the preset angle when the temperature of the electronic device is 50 degrees Celsius; Table 1 shows the corresponding relationship between the preset capacitance characterization value and the preset angle when the temperature of the electronic device is 0 degrees Celsius.
[0252] In this way, by detecting the current temperature and further looking up the table based on the current temperature to determine the folding angle, the error of temperature on angle detection can be reduced and the accuracy of angle detection can be improved.
[0253] In some embodiments, the above-mentioned determining the folding angle based on the magnetic flux can be implemented through the following steps:
[0254] Based on the difference between the acquired current magnetic flux and the historical magnetic flux, a magnetic flux difference is obtained;
[0255] When the magnetic flux difference is less than the second difference threshold, the folding angle is determined based on the historical magnetic flux;
[0256] When the magnetic flux difference is greater than the second difference threshold, the folding angle is determined based on the current magnetic flux.
[0257] Exemplarily, taking the previous first time period in history as an example of the previous first time period, a magnetic flux difference is obtained based on the current magnetic flux obtained in the current first time period and the historical magnetic flux obtained in the previous first time period; if the magnetic flux difference is less than the second difference threshold, it is determined that the folding angle has not changed between the current first time period and the previous first time period. At this time, the folding angle determined in the previous first time period can be used as the current folding angle. Here, the folding angle determined in the previous first time period can be determined by the historical magnetic flux or by the capacitance values of multiple groups of first induction capacitors corresponding to the previous first time period; if the magnetic flux difference is greater than the second difference threshold, it is determined that the folding angle has changed between the current first time period and the previous first time period. At this time, the folding angle is determined by the current magnetic flux.
[0258] In this way, the present disclosure can determine whether the folding screen is in the folding process or in the hovering state at a specified angle by comparing the magnetic flux difference between the current magnetic flux and the historical magnetic flux. Moreover, based on the comparison result between the magnetic flux difference and the second difference threshold, the current folding angle can be further output.
[0259] In some embodiments, the above-mentioned determination of the folding angle based on the current magnetic flux can be implemented through the following steps:
[0260] Obtain a plurality of historical average capacitance values; wherein, each historical average capacitance value is determined by the historical capacitance values of multiple groups of first induction capacitors corresponding to a preset number of historical capacitance value differences;
[0261] Determine the folding angle based on the plurality of historical average capacitance values and the current magnetic flux.
[0262] Exemplarily, obtain two historical first time periods (T2 and T1) before the current first time period T3; obtain the historical average capacitance value C1 corresponding to the historical first time period T1 and the historical average capacitance value C2 corresponding to the historical first time period T2. The simulated capacitance value C3 corresponding to the current first time period T3 is obtained through extrapolation processing. Here, the simulated capacitance value C3 corresponding to the current first time period T3 can be obtained through an extrapolation formula, and the extrapolation formula is: (C3 - C2) / (T3 - T2)) = (C2 - C1) / (T2 - T1).
[0263] Here, the folding angle is determined according to the simulated capacitance value C3 corresponding to the current first time period T3 and the current magnetic flux.
[0264] In the embodiments of the present disclosure, the folding angle is jointly determined by combining the historical capacitance values of the first induction capacitors that are not affected by touch interference or are less affected by touch interference and the current magnetic flux, which improves the comprehensiveness of angle detection and further enhances the accuracy of angle detection.
[0265] In some embodiments, determining the folding angle based on the multiple historical average capacitances and the current magnetic flux may be implemented through the following steps:
[0266] Determine a first angle based on the multiple historical average capacitances;
[0267] Determine a second angle based on the current magnetic flux;
[0268] Determine the folding angle based on the first angle and the second angle.
[0269] Here, determining the analog capacitance C3 corresponding to the pre-detection time based on the multiple historical average capacitances and determining the first angle Ac based on C3 may be obtained by looking up a first angle mapping table or a second angle mapping table; determining the second angle Am based on the current magnetic flux may be obtained by looking up a third angle mapping table. Exemplarily, referring to Table 4, Table 4 is an example of a third angle mapping table.
[0270]
[0271] Table 4
[0272] In some embodiments, determining the folding angle based on the first angle and the second angle may be implemented through the following steps:
[0273] Obtain the folding angle based on the average value of the angles of the first angle and the second angle; or,
[0274] Perform a weighted process on the first angle and the second angle to obtain the folding angle.
[0275] Exemplarily, through the formula An = 1 / 2(Ac + Am), obtain the average value of the first angle Ac and the angle Am of the second angle to obtain the folding angle An.
[0276] The present disclosure performs an averaging process or a weighted process on the first angle and the second angle to obtain the folding angle, improving the accuracy of angle detection.
[0277] Refer to Figure 11 , Figure 11 is the second flowchart of the detection method shown according to an exemplary embodiment; Figure 11 shows an example of the detection method proposed by the present disclosure applied in an electronic device.
[0278] As Figure 11 shown, the detection method may be implemented through the following steps:
[0279] Step S1101, detect the capacitances of N groups of first induction capacitors;
[0280] Here, the detection module reads the first induction signal output by the first electrode group distributed in the first housing, and the processing module determines the capacitance values of multiple groups of first induction capacitors.
[0281] Step S1102, determine whether there is a detection abnormality in N groups of first induction capacitors;
[0282] Here, based on the difference between the current capacitance value detected by each group of first induction capacitors in the current first time period and the historical capacitance value detected in the historical first time period, multiple current capacitance differences for multiple groups of first induction capacitors are obtained; when the number of current capacitance differences not exceeding a preset number are all less than the first difference threshold, it is determined that a detection abnormality occurs; at this time, step S1105 is executed; when the number of current capacitance differences not exceeding a preset number are all less than the first difference threshold, it is determined that no detection abnormality occurs, and at this time step S1103 is executed.
[0283] Step S1103, obtain the current capacitance values of a preset number of groups of first induction capacitors, and determine the current average capacitance value;
[0284] When the number of current capacitance differences not exceeding a preset number are all less than the first difference threshold, determine the current capacitance values of multiple groups of first induction capacitors corresponding to the preset number of current capacitance differences. And, perform an averaging process on the current capacitance values of multiple groups of first induction capacitors to obtain the current average capacitance value.
[0285] Step S1104, obtain the current temperature of the electronic device;
[0286] Step S1105, determine the folding angle according to the current temperature and the current average capacitance value;
[0287] Look up the second mapping relationship table between the preset temperature, the preset capacitance value representation value, and the preset angle according to the current temperature and the current average capacitance value, and determine the folding angle.
[0288] Step S1106, obtain the magnetic flux corresponding to the magnetic sensor;
[0289] Step S1107, determine whether the magnetic flux has changed effectively;
[0290] Based on the difference between the current magnetic flux obtained in the current first time period and the historical magnetic flux obtained in the previous first time period, obtain the magnetic flux difference; judge the relationship between the magnetic flux difference and the second difference threshold to determine whether the folding angle has changed effectively between the current first time period and the previous first time period.
[0291] If the magnetic flux difference is less than the second difference threshold, it is determined that there is no effective change in the folding angle between the current first time period and the previous first time period, and step S1108 is executed at this time; if the magnetic flux difference is greater than the second difference threshold, it is determined that there is an effective change in the folding angle between the current first time period and the previous first time period, and S1109 is executed.
[0292] Step S1108: Obtain the folding angle determined in the previous first time period;
[0293] Step S1109: Determine the folding angle based on the current magnetic flux.
[0294] Here, obtain two historical first time periods (T2 and T1) T before the current first time period T3; obtain the historical average capacitance value C1 corresponding to the historical first time period T1 and the historical average capacitance value C2 corresponding to the historical first time period T2. The simulated capacitance value C3 corresponding to the current first time period T3 is obtained through extrapolation processing. Here, the simulated capacitance value C3 corresponding to the current first time period T3 can be obtained through the extrapolation formula: (C3 - C2) / (T3 - T2) = (C2 - C1) / (T2 - T1).
[0295] Determine the simulated capacitance value C3 corresponding to the current first time period based on multiple historical average capacitance values, and find the first angle Ac by looking up the first angle mapping table based on C3; find the second angle Am by looking up the third angle mapping table based on the current magnetic flux. Calculate the average value of the first angle Ac and the second angle Am through the following formula An = 1 / 2(Ac + Am) to obtain the folding angle An.
[0296] Step S1110: Output the folding angle.
[0297] The embodiment of the present disclosure also proposes an electronic device. The electronic device includes:
[0298] An angle detection module, configured to obtain the capacitance value of the first induction capacitance formed in the electronic device within the first time period of a preset time period; and determine the folding angle between the first housing and the second housing of the electronic device based on the capacitance value of the first induction capacitance; the first induction capacitance is formed by the first electrode of the first electrode group located on the first housing and the first electrode of the first electrode group located on the second housing;
[0299] The touch detection module is configured to obtain the capacitance value of a second induction capacitance formed in the electronic device during a second time period, and determine touch data of a touch object acting on the electronic device based on the capacitance value of the second induction capacitance; the second induction capacitance is formed by the first electrode of the first electrode group and the second electrodes of the second electrode group evenly distributed on the first housing and the second housing;
[0300] Wherein, one of the first time periods and one waiting time period constitute one of the preset time periods that repeatedly appears in the time sequence; the second time period is distributed within the waiting time period of the preset time period.
[0301] In some embodiments, the angle detection module is further configured to obtain multiple folding angles determined within multiple preset time periods, and judge the change situation of the multiple folding angles; in the case where the folding angles do not change, set the waiting time period to a preset first time value; in the case where the folding angles change, set the waiting time period to a preset second time value, and the first time value is greater than the second time value.
[0302] In some embodiments, the angle detection module is further configured to obtain the magnetic flux formed by the interaction between the magnetic element and the magnetic sensor of the electronic device; determine the folding angle based on the magnetic flux and the capacitance value of the first induction capacitance.
[0303] In some embodiments, there are multiple pairs of corresponding first electrodes between a column of the first electrode group located on the first housing and a column of the first electrode group located on the second housing; the multiple pairs of corresponding first electrodes form multiple first induction capacitances, and the multiple first induction capacitances form a group of first induction capacitances; the angle detection module is further configured to obtain multiple current capacitance differences for multiple groups of the first induction capacitances based on the difference between the current capacitance value and the historical capacitance value of each detected group of the first induction capacitances; when the preset number of the current capacitance differences are all less than a first difference threshold, determine the folding angle based on the current capacitance values of the multiple groups of the first induction capacitances corresponding to the preset number of the current capacitance differences; when the number of the current capacitance differences less than the first difference threshold does not exceed the preset number, determine the folding angle based on the magnetic flux.
[0304] In some embodiments, the angle detection module is further configured to perform an averaging process on the current capacitance values of multiple groups of the first induction capacitances corresponding to the preset number of the current capacitance differences to obtain a current average capacitance value; determine the folding angle based on the current average capacitance value.
[0305] In some embodiments, the angle detection module is further configured to determine the folding angle based on the current average capacitance value, including: obtaining the current temperature of the electronic device; and determining the folding angle based on the current average capacitance value and the current temperature.
[0306] In some embodiments, the angle detection module is further configured to obtain a magnetic flux difference based on the difference between the acquired current magnetic flux and the historical magnetic flux; when the magnetic flux difference is less than a second difference threshold, determine the folding angle based on the historical magnetic flux; and when the magnetic flux difference is greater than the second difference threshold, determine the folding angle based on the current magnetic flux.
[0307] In some embodiments, the angle detection module is further configured to obtain a plurality of historical average capacitance values; wherein each of the historical average capacitance values is determined by historical capacitance values of the plurality of first inductive capacitors corresponding to a plurality of historical capacitance differences; and determine the folding angle based on the plurality of historical average capacitance values and the current magnetic flux.
[0308] In some embodiments, the angle detection module is further configured to determine a first angle based on the plurality of historical average capacitance values; determine a second angle based on the current magnetic flux; and determine the folding angle based on the first angle and the second angle.
[0309] In some embodiments, the angle detection module is further configured to obtain the folding angle based on an average value of the angles of the first angle and the second angle; or perform a weighting process on the first angle and the second angle to obtain the folding angle.
[0310] See Figure 12 , Figure 12 is a block diagram of an electronic device shown in accordance with an exemplary embodiment. For example, the electronic device 900 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0311] Refer to Figure 12 , the electronic device 900 may include one or more of the following components: a processing component 902, a memory 904, a power component 906, a multimedia component 908, an audio component 910, an input / output (I / O) interface 912, a sensor component 914, and a communication component 916.
[0312] The processing component 902 generally controls the overall operation of the electronic device 900, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. Here, the processing component 802 may be the processing module described above in the present disclosure. The processing component 902 may include one or more processors 920 to execute instructions to complete all or part of the steps of the detection method described above in the present disclosure. In addition, the processing component 902 may include one or more modules to facilitate the interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate the interaction between the multimedia component 908 and the processing component 902.
[0313] The memory 904 is configured to store various types of data to support the operation of the device 900. Examples of such data include instructions for any application or method operating on the electronic device 900, contact data, phone book data, messages, pictures, videos, and the like. The memory 904 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disk.
[0314] The power component 906 provides power to various components of the electronic device 900. The power component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 900.
[0315] The multimedia component 908 includes a foldable screen that provides an output interface between the electronic device 900 and the user. In some embodiments, the foldable screen may include a display panel and a touch panel. The touch panel includes multiple rows of second electrode groups and multiple columns of first electrode groups. The multiple rows of second electrode groups and the multiple columns of first electrode groups can sense touches, swipes, and gestures on the touch panel. The multiple rows of second electrode groups and the multiple columns of first electrode groups can not only sense the boundaries of touch or swipe actions but also detect the duration and pressure associated with the touch or swipe operation. The multiple columns of first electrode groups can detect the folding angle of the electronic device in the angle detection mode. In some embodiments, the multimedia component 908 includes a front camera and / or a rear camera. When the device 900 is in an operation mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
[0316] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes a microphone (MIC), which is configured to receive external audio signals when the electronic device 900 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 904 or transmitted via the communication component 916. In some embodiments, the audio component 910 further includes a speaker for outputting audio signals.
[0317] The I / O interface 912 provides an interface between the processing component 902 and a peripheral interface module, and the peripheral interface module can be a keyboard, a click wheel, buttons, etc. These buttons can include, but are not limited to: a home button, a volume button, a power button, and a lock button.
[0318] The sensor component 914 includes one or more sensors for providing status assessments of various aspects of the electronic device 900. For example, the sensor component 914 can detect the on / off state of the device 900, the relative positioning of components, such as the display and keypad of the electronic device 900. The sensor component 914 can also detect a change in the position of the electronic device 900 or a component of the electronic device 900, the presence or absence of user contact with the electronic device 900, the orientation or acceleration / deceleration of the electronic device 900, and the temperature change of the electronic device 900. The sensor component 914 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 914 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 914 can further include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0319] The communication component 916 is configured to facilitate communication between the electronic device 900 and other devices in a wired or wireless manner. The electronic device 900 can access a wireless network based on communication standards, such as WiFi, 3G, or 5G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0320] In an exemplary embodiment, the electronic device 900 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above method.
[0321] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 904 including instructions, and the above instructions can be executed by a processor 920 of the device 900 to complete the above method. For example, the non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0322] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to execute the detection method proposed above in the present disclosure.
[0323] Those skilled in the art will readily conceive of other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common general knowledge or conventional technical means in the technical field not disclosed in the present disclosure. The specification and examples are only to be considered as exemplary, and the true scope and spirit of the present disclosure are pointed out by the following claims.
[0324] It should be understood that the present disclosure is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.
Claims
1. An electronic device, characterized in that, comprising: a rotating shaft; a first housing and a second housing, connected to opposite sides of the rotating shaft and capable of folding relative to the rotating shaft; multiple columns of first electrode groups arranged in parallel, respectively distributed on the first housing and the second housing; each column of the first electrode groups is parallel to the rotating shaft; each column of the first electrode groups includes a plurality of first electrodes electrically connected in sequence; wherein, the first electrodes of the first electrode groups distributed on the first housing can form a first induced capacitance with the first electrodes of the first electrode groups distributed on the second housing; multiple rows of second electrode groups arranged in parallel, all distributed on the first housing and the second housing; each row of the second electrode groups is arranged crosswise with the rotating shaft; each row of the second electrode groups includes a plurality of second electrodes electrically connected in sequence; wherein, the second electrodes of the second electrode groups can form a second induced capacitance with the first electrodes of the first electrode groups; a processing module, electrically connected to multiple columns of the first electrode groups, configured to determine the folding angle between the first housing and the second housing based on the capacitance value of the first induced capacitance, or determine the touch data of a touch object acting on the electronic device based on the capacitance value of the second induced capacitance.
2. The electronic device according to claim 1, characterized in that, the electronic device further comprises: a touch panel, located on the first housing and the second housing, and multiple columns of the first electrode groups and multiple rows of the second electrode groups are all located within the touch panel.
3. The electronic device according to claim 2, characterized in that, the first electrodes distributed on the first housing and the first electrodes distributed on the second housing correspond to each other one by one to form one of the first induced capacitances.
4. The electronic device according to claim 3, characterized in that, there are multiple pairs of corresponding first electrodes between a column of the first electrode groups located on the first housing and a column of the first electrode groups located on the second housing; the multiple pairs of corresponding first electrodes form multiple of the first induced capacitances, and the multiple first induced capacitances form a group of the first induced capacitances; the two columns of the first electrode groups forming the same group of the first induced capacitances are symmetrically distributed on both sides of the rotating shaft with the rotating shaft as the axis of symmetry.
5. The electronic device according to any one of claims 1 to 4, characterized in that, the first electrodes of the first electrode groups located on the second housing are grounded; the electronic device further comprises: a first excitation module, a detection module and a controlled switch; the controlled switch, one end is connected to the first electrodes of the first electrode groups located on the first housing, and the other end is connected to the first excitation module and the detection module; the first excitation module, configured to output a first excitation signal to the first electrode groups when the controlled switch is switched to conduct between the first electrodes of the first electrode groups located on the first housing and the first excitation module; The detection module is configured to detect a first induction signal output by a plurality of the first electrodes of the first electrode group under the action of the first excitation signal when the controlled switch is switched to conduct between the first electrode of the first electrode group located in the first housing and the detection module; The processing module is electrically connected to the detection module and is further configured to determine the capacitance value of the first induction capacitor based on the first induction signal.
6. The electronic device according to any one of claims 1 to 4, wherein, The electronic device further includes: A second excitation module, electrically connected to the second electrodes of multiple rows of the second electrode group, and configured to output a second excitation signal to the second electrodes of multiple rows of the second electrode group; The processing module is electrically connected to the first electrodes of multiple columns of the first electrode group and is further configured to obtain a second induction signal output by a plurality of the first electrodes of multiple columns of the first electrode group under the action of the second excitation signal; and determine the capacitance value of the second induction capacitor based on the second induction signal.
7. The electronic device according to any one of claims 1 to 4, wherein, The folding module further includes: A magnetic element, disposed in the first housing; A magnetic sensor, disposed in the second housing, and configured to detect the magnetic flux formed by the interaction between the magnetic element and the magnetic sensor when the first housing and the second housing are folded relative to the rotating shaft; The processing module is electrically connected to the magnetic sensor and is further configured to determine the folding angle based on the magnetic flux and the capacitance value of the first induction capacitor.
8. A detection method, wherein, includes: Obtaining the capacitance value of a first induction capacitor formed in the electronic device within a first time period of a preset time period; And determining the folding angle between the first housing and the second housing of the electronic device based on the capacitance value of the first induction capacitor; the first induction capacitor is formed by the first electrodes of the first electrode group located in the first housing and the first electrodes of the first electrode group located in the second housing; Within a second time period, obtaining the capacitance value of a second induction capacitor formed in the electronic device, and determining touch data of a touch object acting on the electronic device based on the capacitance value of the second induction capacitor; the second induction capacitor is formed by the first electrodes of the first electrode group and the second electrodes of the second electrode group evenly distributed on the first housing and the second housing; wherein, one said first time period and one waiting time period constitute one said preset time period that repeatedly appears in the time series; the second time period is distributed within the waiting time period of the preset time period.
9. The detection method according to claim 8, wherein, The method further includes: Obtaining a plurality of the folding angles determined within a plurality of said preset time periods, and judging the change conditions of the plurality of folding angles; When the folding angle does not change, setting the waiting time period to a preset first time value; When the folding angle changes, set the waiting time period to a preset second time value, where the first time value is greater than the second time value.
10. The method according to claim 8 or 9, wherein, determining the folding angle between the first housing and the second housing of the electronic device based on the capacitance value of the first sensing capacitance includes: obtaining the magnetic flux formed by the interaction between the magnetic element and the magnetic sensor of the electronic device; determining the folding angle based on the magnetic flux and the capacitance value of the first sensing capacitance.
11. The method according to claim 10, wherein, There are multiple pairs of corresponding first electrodes between a column of the first electrode groups located on the first housing and a column of the first electrode groups located on the second housing; multiple pairs of corresponding first electrodes form multiple first sensing capacitances, and the multiple first sensing capacitances form a group of the first sensing capacitances; determining the folding angle based on the magnetic flux and the capacitance value of the first sensing capacitance includes: obtaining multiple current capacitance differences for multiple groups of the first sensing capacitances based on the difference between the currently detected capacitance value and the historical capacitance value of each group of the first sensing capacitances; when the preset number of the current capacitance differences are all less than the first difference threshold, determining the folding angle based on the current capacitance values of the multiple groups of the first sensing capacitances corresponding to the preset number of the current capacitance differences; when the number of the current capacitance differences less than the first difference threshold does not exceed the preset number, determining the folding angle based on the magnetic flux.
12. The method according to claim 11, wherein, determining the folding angle based on the current capacitance values of the multiple groups of the first sensing capacitances corresponding to the preset number of the current capacitance differences includes: performing an averaging process on the current capacitance values of the multiple groups of the first sensing capacitances corresponding to the preset number of the current capacitance differences to obtain a current average capacitance value; determining the folding angle based on the current average capacitance value.
13. The method according to claim 12, wherein, determining the folding angle based on the current average capacitance value includes: obtaining the current temperature of the electronic device; determining the folding angle based on the current average capacitance value and the current temperature.
14. The method according to claim 11, wherein, determining the folding angle based on the magnetic flux includes: obtaining a magnetic flux difference based on the difference between the current magnetic flux and the historical magnetic flux; when the magnetic flux difference is less than the second difference threshold, determining the folding angle based on the historical magnetic flux; when the magnetic flux difference is greater than the second difference threshold, determining the folding angle based on the current magnetic flux.
15. The method according to claim 14, wherein, determining the folding angle based on the current magnetic flux includes: obtaining multiple historical average capacitance values; wherein each historical average capacitance value is determined by the historical capacitance values of multiple groups of the first sensing capacitances corresponding to the preset number of historical capacitance differences; Determine the folding angle based on the plurality of historical average capacitances and the current magnetic flux.
16. The method according to claim 15, wherein, the determining the folding angle based on the plurality of historical average capacitances and the current magnetic flux includes: determining a first angle based on the plurality of historical average capacitances; determining a second angle based on the current magnetic flux; determining the folding angle based on the first angle and the second angle.
17. The method according to claim 16, wherein, the determining the folding angle based on the first angle and the second angle includes: obtaining the folding angle based on the average value of the first angle and the second angle; or, performing a weighting process on the first angle and the second angle to obtain the folding angle.
18. An electronic device, wherein, comprising: an angle detection module configured to obtain the capacitance value of a first induction capacitance formed in the electronic device within a first time period of a preset time period; and determine the folding angle between a first housing and a second housing of the electronic device based on the capacitance value of the first induction capacitance; the first induction capacitance is formed by a first electrode of a first electrode group located on the first housing and the first electrode of the first electrode group located on the second housing; a touch detection module configured to obtain the capacitance value of a second induction capacitance formed in the electronic device within a second time period, and determine touch data of a touch object acting on the electronic device based on the capacitance value of the second induction capacitance; the second induction capacitance is formed by the first electrode of the first electrode group and a second electrode of a second electrode group uniformly distributed on the first housing and the second housing; wherein, one of the first time periods and a waiting time period constitute one of the preset time periods that repeatedly appears in a time series; the second time period is distributed within the waiting time period of the preset time period.
19. A non-transitory computer-readable storage medium, wherein, when the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the detection method according to any one of claims 8 to 17.
Citation Information
Cited By
Bending detection device and method, head-mounted device and computer program product
CN120820057A