Lid open / close detection method
By detecting the mutual capacitance between the laptop's touchpad and touchscreen, the high cost of magnetic induction is solved, achieving low-cost and high-efficiency lid status detection.
Patent Information
- Application Number
- PCT/CN2025/092717
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-06-14
- Filing Date
- 2025-04-30
- Publication Date
- 2025-12-18
AI Technical Summary
In existing technologies, using magnetic induction to detect the opening and closing status of a laptop lid requires the addition of magnets and Hall effect sensors, which is costly.
By detecting the strength of the mutual capacitance signal between the touchpad and touchscreen of an electronic device, the opening and closing status of the cover can be detected, saving costs while improving detection efficiency.
Without the need for additional components, the mutual capacitance detection method accurately determines the condition of the cover, reducing costs and improving detection efficiency.
Smart Images

Figure CN2025092717_18122025_PF_FP_ABST
Abstract
Description
Lid opening and closing detection method
[0001] This application claims priority from the Chinese patent application No. 202410774416.2 filed on June 14, 2024, and entitled "Lid opening and closing detection method", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD
[0002] The present application relates to the field of information technology, and in particular, to a lid opening and closing detection method. BACKGROUND
[0003] In the process of using electronic devices such as notebook computers, the opening and closing state of the electronic device cover can be detected to save power consumption and prolong the service life of the electronic device. Taking a notebook computer as an example, when the notebook computer is in a closed state, it usually means that the user does not use the notebook computer temporarily. In this case, the notebook computer can enter a sleep or standby mode, such as turning off the power of the display screen, hard disk, and other devices, to save energy consumption. By detecting the opening and closing state of the notebook computer cover, the host of the notebook computer can determine when to enter a low-power mode, thereby effectively reducing unnecessary energy consumption and ensuring that the battery of the notebook computer can provide sufficient power when needed, avoiding premature battery depletion due to long-term use.
[0004] In related technologies, the opening and closing state of the notebook computer cover is usually detected by a magnetic induction method. In the detection process, a magnet and a Hall element need to be added to the notebook computer. When the notebook computer is in a closed state, the Hall element and the magnet produce a magnetic induction effect, and the notebook computer can determine the opening and closing state of the notebook computer by detecting the strength of the electric signal generated by the Hall element. However, this detection method requires the addition of a magnet and a Hall element, which is costly. SUMMARY
[0005] In view of this, the present application provides a lid opening and closing detection method to solve the problem of high cost of the lid opening and closing detection scheme in related technologies.
[0006] A first aspect of the embodiments of the present application provides a lid opening and closing detection method applied to an electronic device, the electronic device comprising a touchpad and a touch screen, the lid opening and closing detection method comprising: in each detection period, sending a driving signal to a first touch electrode of the touchpad or a second touch electrode of the touch screen, and detecting the capacitance of mutual capacitance generated between the first touch electrode and the second touch electrode; determining a folding angle range of the electronic device based on the capacitance of the mutual capacitance and a first mapping relationship, the first mapping relationship representing a corresponding relationship between the capacitance and the folding angle range; and determining an opening and closing state of the electronic device according to the folding angle range of the electronic device.
[0007] In some embodiments, the determining the cover state of the electronic device according to the folding angle range of the electronic device comprises: if the folding angle range of the electronic device is within a preset range, determining that the electronic device is in a closed cover state; and if the folding angle range of the electronic device is not within the preset range, determining that the electronic device is in an open cover state.
[0008] In some embodiments, after the folding angle range of the electronic device is determined, the method further comprises: determining a control strategy of the electronic device according to the folding angle range of the electronic device and a preset mapping relationship, the preset mapping relationship representing a corresponding relationship between the folding angle range and the control strategy; and controlling the operation of the electronic device according to the determined control strategy.
[0009] In some embodiments, the controlling the operation of the electronic device according to the determined control strategy comprises: if the folding angle range of the electronic device is an angle greater than or equal to zero degrees and less than or equal to a first angle threshold, controlling the electronic device to enter a low-power consumption mode and setting a wake-up duration of the electronic device as a first duration; if the folding angle range of the electronic device is an angle greater than the first angle threshold and less than or equal to a second angle threshold, controlling the electronic device to enter the low-power consumption mode and setting the wake-up duration of the electronic device as a second duration, the first duration being greater than the second duration; and if the folding angle range of the electronic device is an angle greater than the second angle threshold, controlling the electronic device to exit the low-power consumption mode.
[0010] In some embodiments, the method further comprises: if it is determined that the mutual capacitance is greater than a preset capacitance threshold, determining that the electronic device is in a closed cover state; and if it is determined that the mutual capacitance is less than or equal to the preset capacitance threshold, determining that the electronic device is in an open cover state.
[0011] In some embodiments, the method further comprises: detecting a signal-to-noise ratio of the signal of the mutual capacitance; and if the signal-to-noise ratio is greater than a preset signal-to-noise ratio threshold, determining that the electronic device is in a closed cover state.
[0012] In some embodiments, the method further comprises: detecting a capacitance change of the mutual capacitance; if the capacitance change shows a decreasing trend, determining that the electronic device is in an open cover process; and if the capacitance change shows an increasing trend, determining that the electronic device is in a closed cover process.
[0013] In some embodiments, the electronic device includes a first touch control chip and a second touch control chip, the first touch control chip is connected to the first touch electrodes of the touchpad, the second touch control chip is connected to the second touch electrodes of the touch screen, the first touch control chip and the second touch control chip establish a communication connection through a bidirectional active pen protocol, and the method further includes: detecting a signal strength of an active pen connection signal between the first touch control chip and the second touch control chip; determining a folding angle range of the electronic device based on the signal strength of the active pen connection signal and a second mapping relationship, the second mapping relationship representing a corresponding relationship between the signal strength and the folding angle range; and determining a cover opening and closing state of the electronic device according to the folding angle range of the electronic device.
[0014] In some embodiments, the first touch control chip and the second touch control chip establish a frame-synchronous communication connection, and the method further includes: the first touch control chip and the second touch control chip set a first time window and a second time window, the first touch control chip and the second touch control chip perform the above-mentioned cover opening and closing detection method in a running time of the first time window, the first touch control chip and the second touch control chip perform touch detection and / or active pen detection in a running time of the second time window, and a duration of the first time window is less than a duration of the second time window.
[0015] In some embodiments, the first touch control chip and the second touch control chip establish communication through a preset communication mechanism, and the method further includes: the second touch control chip determines a selectable signal frequency of the drive signal through noise detection, and sends the selectable signal frequency to the first touch control chip through the preset communication mechanism; and the first touch control chip determines a target signal frequency of the drive signal according to the selectable signal frequency.
[0016] A second aspect of the embodiments of the present application provides an electronic device including a memory, a processor, and computer readable instructions stored in the memory and executable on the processor, and the processor implements the above-mentioned cover opening and closing detection method when executing the computer readable instructions.
[0017] A third aspect of the embodiments of the present application provides a computer readable storage medium, the computer readable storage medium stores computer readable instructions, and the computer readable instructions are executed by a processor to implement the above-mentioned cover opening and closing detection method.
[0018] In the open and close cover detection method provided by the embodiment of the application, the open and close cover state of the electronic device is periodically detected. In each detection period, the electronic device sends a driving signal to the first touch electrode of the touchpad and the second touch electrode of the touch screen, and under the action of the driving signal, mutual capacitance is generated between the first touch electrode and the second touch electrode. Since the capacitance of the mutual capacitance will gradually increase as the folding angle of the electronic device gradually decreases, and the capacitance of the mutual capacitance will gradually decrease as the folding angle of the electronic device gradually increases, the electronic device can verify and test the first mapping relationship between the folding angle range of the electronic device and the capacitance in advance. After the mutual capacitance is generated between the first touch electrode and the second touch electrode, the electronic device detects the capacitance of the mutual capacitance, and based on the capacitance of the mutual capacitance and the first mapping relationship, the folding angle range of the electronic device can be determined. According to the folding angle range of the electronic device, the open and close cover state of the electronic device is determined. By detecting the capacitance of the mutual capacitance between the touchpad and the touch screen of the electronic device, the open and close cover detection of the electronic device is realized, which can effectively improve the efficiency of the open and close detection while saving cost. BRIEF DESCRIPTION OF DRAWINGS
[0019] In order to more clearly illustrate the technical solutions of the embodiments of the application, the following will briefly introduce the drawings needed to be used in the description of the embodiments of the application. Obviously, the drawings in the following description are only some embodiments of the application, and other drawings can also be obtained by those skilled in the art without creative labor.
[0020] FIG. 1 is an application scenario diagram of the related art provided by the embodiment of the application.
[0021] FIG. 2 is an application scenario example diagram of the open and close cover detection method provided by the embodiment of the application.
[0022] FIG. 3 is another application scenario diagram of the open and close cover detection method provided by the embodiment of the application.
[0023] FIG. 4 is an application scenario diagram of the open and close cover detection method provided by another embodiment of the application.
[0024] FIG. 5 is an implementation flowchart of the open and close cover detection method provided by the embodiment of the application.
[0025] FIG. 6 is a structure example diagram of the self-capacitance touch electrode provided by the embodiment of the application.
[0026] FIG. 7 is a structure example diagram of the mutual-capacitance touch electrode provided by the embodiment of the application.
[0027] FIG. 8 is an application scenario diagram of the open and close cover detection method provided by still another embodiment of the application.
[0028] FIG. 9 is an example diagram of spread spectrum coding according to an embodiment of the present application.
[0029] FIG. 10 is an example diagram of an implementation architecture of capacitive touch detection according to an embodiment of the present application.
[0030] FIG. 11 is an example diagram of timing of frame synchronization of a touchpad and a touch screen according to an embodiment of the present application.
[0031] FIG. 12 is an implementation flowchart of a cover opening / closing detection method according to another embodiment of the present application.
[0032] FIG. 13 is a structural schematic diagram of a cover opening / closing detection apparatus according to an embodiment of the present application.
[0033] FIG. 14 is a structural schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0034] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the drawings are used to distinguish similar objects, and are not intended to describe a specific order or sequence.
[0035] In addition, it should be noted that the methods disclosed in the embodiments of the present application or shown in the flowcharts include one or more steps for implementing the methods, and the execution order of the steps can be interchanged with each other without departing from the scope of the claims, and some steps can also be deleted.
[0036] Some embodiments will be described below with reference to the accompanying drawings. The following embodiments and features in the embodiments can be combined with each other without conflict, if not in conflict.
[0037] Cover opening / closing detection of an electronic device helps to improve the reliability and stability of the electronic device. For example, in the case of determining that the cover of the electronic device is in a closed state, if the system continues to run and consumes a large amount of power, it may cause the device to overheat or other hardware problems. In this case, if the low-power state is entered in time, the workload and temperature of the hardware can be reduced, and potential risks and failures can be reduced.
[0038] In the related art, the opening and closing cover state of a notebook computer is usually detected by using a magnetic induction method. As shown in FIG. 1, the notebook computer 100 includes a display module 101, a mainboard 102, a keyboard 103, a touchpad 104, a touch screen 105, a Hall element 106, and a magnet 107. The positions of the Hall element 106 and the magnet 107 can be exchanged, for example, the Hall element 106 can be installed on the display module 101 and the magnet can be installed on the mainboard 102. In the process of detecting the opening and closing cover state of the notebook computer 100 by using the magnetic induction method, as the display module 101 and the mainboard 102 are gradually closed, a magnetic induction effect is generated between the Hall element 106 and the magnet 107, so that the Hall element 106 generates an electric signal. The notebook computer 100 can determine the opening and closing cover state of the notebook computer 100 by detecting the strength of the electric signal. This detection method needs to increase the magnet 107 and the Hall element 106, and the cost is high.
[0039] To solve the above problems, an opening and closing cover detection method is provided in the embodiments of the present application. The opening and closing state of the cover of an electronic device is detected by detecting the signal strength of the mutual capacitance between the touchpad and the touch screen of the electronic device, thereby saving cost and improving detection efficiency.
[0040] In some embodiments, the electronic device includes but is not limited to a notebook computer, a tablet computer, a mobile phone, and the like. The electronic device is taken as a notebook computer in the embodiments of the present application.
[0041] Referring to FIG. 2, an application scenario example of the opening and closing cover detection method provided in the embodiments of the present application is shown. As shown in FIG. 2, the electronic device 200 can include a display module 201, a mainboard 202, a keyboard 203, a touchpad 204, a touch screen 205, and the like. Usually, when the electronic device 200 is in a closed cover state, the display module 201 is close to the mainboard 202, and the touchpad 204 is close to the touch screen 205. In some scenarios, the user can temporarily leave the electronic device 200 or want to block the touch screen 205, and the display module 201 and the mainboard 202 are not completely closed. In this case, in order to save energy and prolong the battery life, the electronic device 200 can be controlled to enter a low-power mode.
[0042] For example, as shown in FIG. 3, (a) of FIG. 3 represents that the electronic device 200 is in an open cover state, at this time, the folding angle between the display module 201 and the mainboard 202 is large. (b) of FIG. 3 represents that the display module 201 and the mainboard 202 are not completely closed, (c) of FIG. 3 represents that the display module 201 and the mainboard 202 are completely closed, (b) of FIG. 3 and (c) of FIG. 3 both represent that the electronic device 200 is in a closed cover state, and the folding angle between the display module 201 and the mainboard 202 is small. In summary, in the process of realizing the open and closed cover state detection of the electronic device 200, the electronic device 200 can pre-establish the mapping relationship between the folding angle range between the display module 201 and the mainboard 202 and the open and closed cover state of the electronic device 200, so that the open and closed cover state of the electronic device 200 can be determined by detecting the folding angle range between the display module 201 and the mainboard 202.
[0043] In the embodiment, in the process of detecting the folding angle range between the display module 201 and the mainboard 202, in each detection period, the electronic device 200 can send a driving signal to the first touch electrode of the touchpad 204 or the second touch electrode of the touch screen 205, so that mutual capacitance is generated between the first touch electrode and the second touch electrode of the touch screen 205. The electronic device 200 determines the folding angle range of the electronic device 200 by detecting the capacitance of the mutual capacitance, based on the capacitance of the mutual capacitance and the corresponding relationship between the capacitance and the folding angle range.
[0044] The embodiment of the present application generates mutual capacitance between the first touch electrode of the touchpad and the second touch electrode of the touch screen 205 by sending a driving signal to the first touch electrode of the touchpad or the second touch electrode of the touch screen 205. The folding angle range of the electronic device is determined by detecting the capacitance of the mutual capacitance, and the open and closed cover state of the electronic device is determined according to the folding angle range of the electronic device, without the need to install other components in the electronic device 200, which can effectively save costs.
[0045] The scenarios shown in FIGS. 2 and 3 are only illustrative examples, and the open and closed cover detection method provided by the present application can also be applied in other scenarios. For example, in some scenarios, the electronic device 200 can include multiple touch screens; in some scenarios, the electronic device 200 can include the display module 201, the mainboard 202, and the touch screen 205, but does not include the keyboard 203 and the touchpad 204; in summary, the specific application scenarios of the open and closed cover detection method in the embodiments of the present application are not limited.
[0046] Please refer to FIG. 4, which is a diagram of an application scenario of the cover opening / closing detection method provided by another embodiment of the present application. As shown in FIG. 4, the electronic device 200 further includes a first touch chip 206 and a second touch chip 207. The touchpad 204 of the electronic device 200 includes a first touch electrode 2041, and the touch screen 205 includes a second touch electrode 2051. Under the action of a driving signal, mutual capacitance (Cm) is generated between the first touch electrode 2041 and the second touch electrode 2051. The first touch chip 206 and the second touch chip 207 can be communicatively connected. The first touch chip 206 is arranged at the control touchpad 204, for example, the electronic device 200 can apply a driving signal to the first touch electrode 2041 of the touchpad 204 through the first touch chip 206, and the like. The second touch chip 207 is arranged at the touch screen 205. For example, the electronic device 200 can perform touch detection on the electrode signal of the second touch electrode 2051 through the second touch chip 207, and the like.
[0047] In some embodiments, the first touch chip 206 and the second touch chip 207 can establish communication based on a serial, synchronous, half-duplex (Inter-Integrated Circuit, I2C) communication protocol. The embodiments of the present application do not limit the manner of communicatively connecting the first touch chip 206 and the second touch chip 207.
[0048] The scenario shown in FIG. 4 is only an illustrative example, and the cover opening / closing detection method provided by the present application can also be applied in other scenarios. For example, in some scenarios, the electronic device 200 includes a host, and the host is communicatively connected with the first touch chip and the second touch chip, respectively.
[0049] Please refer to FIG. 5, which is a flowchart of the implementation of the cover opening / closing detection method provided by the embodiments of the present application. The method is applied to the electronic device 200 in any one of the diagrams shown in FIGS. 2 to 3, and the method includes the following steps.
[0050] S11: In each detection period, a driving signal is sent to the first touch electrode of the touchpad or the second touch electrode of the touch screen, and the capacitance of the mutual capacitance generated between the first touch electrode and the second touch electrode is detected.
[0051] In some embodiments, the driving signal is an alternating modulation signal, for example, a square wave, a sine wave, or other types of voltage waveforms, and the like. The first touch electrode and the second touch electrode include but are not limited to self-capacitance touch electrodes and mutual-capacitance touch electrodes.
[0052] As an example, as shown in FIG. 6, the electrodes in the self-capacitance touch electrodes can be arranged in a matrix, such as the N rows and M columns of electrodes shown in FIG. 6, S M,Nrepresents the electrode of the Mth column and the Nth row. If the first touch electrode is a self-capacitive touch electrode, each electrode is connected with the first touch chip, and the electronic device can detect the signal of each electrode through the first touch chip.
[0053] As an example, as shown in FIG. 7, the mutual-capacitive touch electrode includes M columns of TX electrodes and N rows of RX electrodes. The TX M represents the Mth column of TX electrodes, and the RX N represents the Nth row of RX electrodes. The TX electrodes and the RX electrodes are orthogonally distributed to form M*N nodes. The TX electrodes and the RX electrodes form a coupling capacitor at each node, which is referred to as a mutual-capacitance. If the first touch electrode is a mutual-capacitive touch electrode, the electronic device can detect the touch of the corresponding touchpad of the first touch electrode, active pen detection, and the like by detecting the change of the mutual-capacitance of each node.
[0054] In some embodiments, the first touch electrode can include all the touch electrodes of the touchpad. The second touch electrode can include all the touch electrodes of the touch screen. The electronic device can send the driving signal with the same phase and the same amplitude to all the touch electrodes of the touchpad. A plurality of mutual-capacitances can be formed between the first touch electrode and the second touch electrode.
[0055] In some embodiments, under the action of the driving signal, the first touch electrode of the touchpad inevitably suffers from power interference, noise interference, and the like while the mutual-capacitance is generated between the first touch electrode and the second touch electrode of the touch screen, thereby affecting the detection of the capacitance of the mutual-capacitance by the electronic device, further affecting the accuracy of the open-close cover detection, causing the electronic device to make a wrong judgment, and affecting the stability of the electronic device.
[0056] To reduce the power interference, noise interference, and the like generated by the mutual-capacitance between the first touch electrode and the second touch electrode, in some embodiments of the present application, the electronic device can add a preset communication mechanism between the first touch chip and the second touch chip. The second touch chip can determine the selectable signal frequency of the driving signal by detecting the noise of the electrode signal of the second touch electrode, and send the selectable signal frequency to the first touch chip through the preset communication mechanism. The first touch chip determines the target signal frequency of the driving signal according to the selectable signal frequency.
[0057] In some embodiments, the preset communication mechanism includes but is not limited to serial, synchronous, half-duplex (Inter-Integrated Circuit, I2C) communication. The driving signal includes a single-tone signal. The selectable signal frequency of the driving signal includes a low-noise frequency.
[0058] The second touch chip detects noise of the electrode signal of the second touch electrode to determine the selectable signal frequency of the driving signal, and sends the selectable signal frequency to the first touch chip through the preset communication mechanism. The first touch chip determines the target signal frequency of the driving signal according to the selectable signal frequency, which can enhance the anti-interference ability of the driving signal and reduce electromagnetic interference, noise interference and the like generated by mutual capacitance between the first touch electrode and the second touch electrode.
[0059] As an example, referring to FIG. 8, an application scenario of the cover opening and closing detection method provided by another embodiment of the present application is shown. As shown in FIG. 8, the preset communication mechanism is an I2C communication mechanism. The first touch chip 206 and the second touch chip 207 add I2C input / output interfaces. The preset communication mechanism includes a data signal and a clock signal. In the process of communication between the first touch chip 206 and the second touch chip 207 based on the I2C communication mechanism, the second touch chip 207 determines the selectable signal frequency of the driving signal, can write data related to the selectable signal frequency into a data line, and transmits the data on the edge of the clock signal through the control of the clock line, to realize synchronous data transmission by using the clock signal.
[0060] In some other embodiments of the present application, in order to enhance the anti-interference ability of the driving mode, the first touch chip can send the driving signal to the first touch electrode in a spread spectrum code carrier driving mode. For example, the first touch chip can send the driving signal to the first touch electrode in a direct sequence spread spectrum (DSSS) coding mode. The DSSS coding mode can be as shown in FIG. 9. The DSSS includes 7 characters, and each character is composed of 28 0 or 1 pseudo-random sequences. In the illustrated DSSS, 100 represents a preamble, data1, data2 and data3 are used to transmit information, for example, the unique identifier (ID) of the device, the cyclic redundancy check (CRC) information and the like.
[0061] The embodiments of the present application do not limit the way of enhancing the anti-interference ability of the driving mode and reducing electromagnetic interference, noise interference and the like generated by mutual capacitance between the first touch electrode and the second touch electrode.
[0062] In some embodiments, the electronic device can detect the capacitance of the mutual capacitance through a test circuit, a test device or the like.
[0063] In some embodiments, during the folding process of the electronic device, the folding angle of the electronic device gradually decreases, the touchpad gradually approaches the touch screen, and the mutual capacitance between the first touch electrode and the second touch electrode gradually increases. It can be seen that there is a correlation between the folding angle of the electronic device, the mutual capacitance between the first touch electrode and the second touch electrode, and the folding state of the electronic device. Therefore, the electronic device can determine the corresponding relationship between the capacitance, the folding angle range of the electronic device, and the folding state through a large number of tests. Thus, the electronic device can determine the folding state of the electronic device according to the determined corresponding relationship by detecting the mutual capacitance between the first touch electrode and the second touch electrode.
[0064] S12: Determine the folding angle range of the electronic device based on the mutual capacitance and the first mapping relationship.
[0065] In some embodiments, the first mapping relationship represents the corresponding relationship between the capacitance and the folding angle range. The folding angle range can be set by testing or according to an empirical value. For example, the folding angle range can include a folding angle greater than or equal to zero degrees and less than or equal to 10 degrees, a folding angle greater than 10 degrees and less than or equal to 30 degrees, and a folding angle greater than 30 degrees. The specific setting of the folding angle range is not limited in the embodiments of the present application.
[0066] During the folding process of the electronic device, as the folding angle of the electronic device gradually decreases, the touchpad gradually approaches the touch screen, and the mutual capacitance between the first touch electrode and the second touch electrode gradually increases. As the folding angle of the electronic device gradually increases, the touchpad gradually moves away from the touch screen, and the mutual capacitance between the first touch electrode and the second touch electrode gradually decreases. Therefore, the electronic device can determine that there is a correlation between the mutual capacitance between the first touch electrode and the second touch electrode and the folding angle of the electronic device.
[0067] In some embodiments, if the corresponding relationship between each folding angle and the mutual capacitance is established, the electronic device needs to manage a large amount of data, causing resource waste. And the error rate of establishing a one-to-one correspondence between the folding angle and the mutual capacitance is also relatively high. Considering the above problems, the electronic device can establish a corresponding relationship between the capacitance and the folding angle range, and use the corresponding relationship between the capacitance and the folding angle range as the first mapping relationship, in order to save memory and improve the accuracy of the mapping relationship.
[0068] After the electronic device determines the first mapping relationship and the mutual capacitance between the first touch electrode and the second touch electrode, the electronic device can determine the folding angle range of the electronic device based on the mutual capacitance and the first mapping relationship.
[0069] S13: determining the open-close cover state of the electronic device according to the folding angle range of the electronic device.
[0070] In some embodiments, according to FIG. 3, when the folding angle of the electronic device is in a smaller folding angle range, for example, the folding angle of the electronic device is greater than or equal to 0 degrees and less than or equal to 30 degrees, it can be determined that the electronic device is in a closed state, and the electronic device enters a low-power mode to prolong the service life of the electronic device and improve the stability of the electronic device. When the folding angle of the electronic device is in a larger folding angle range, for example, the folding angle of the electronic device is greater than 30 degrees, it can be determined that the electronic device is in an open state, and the electronic device is used normally. Therefore, it can be determined that the folding angle range of the electronic device has a correlation with the open-close cover state of the electronic device. The electronic device can determine the corresponding relationship between the folding angle range of the electronic device and the open-close cover state of the electronic device through testing or according to empirical values. Thus, after determining the folding angle range of the electronic device, the electronic device can determine the open-close cover state of the electronic device according to the folding angle range of the electronic device.
[0071] In some embodiments of the present application, the open-close cover state of the electronic device is determined according to the folding angle range of the electronic device, including: if the folding angle range of the electronic device is within a preset range, it is determined that the electronic device is in a closed state; and if the folding angle range of the electronic device is not within the preset range, it is determined that the electronic device is in an open state.
[0072] In some embodiments, the preset range can be set by a large number of tests or according to empirical values, and the specific setting of the preset range is not limited in the embodiments of the present application. For example, the preset range can be set to a folding angle greater than or equal to 0 degrees and less than or equal to 30 degrees.
[0073] In some embodiments, when the folding angle range of the electronic device is within the preset range, it is determined that the electronic device is in a closed state. At this time, the electronic device can enter a low-power mode to save energy and prolong the service life of the electronic device and improve the stability of the electronic device. If the folding angle range of the electronic device is not within the preset range, it can be determined that the electronic device is in an open state, and the electronic device can remain in a normal working state, for example, the electronic device remains bright, and the hardware devices work normally, so as not to affect the normal work of the user.
[0074] In some embodiments of the present application, if it is determined that the capacitance of the mutual capacitance is greater than a preset capacitance threshold, it is determined that the electronic device is in a closed state; and if it is determined that the capacitance of the mutual capacitance is less than or equal to the preset capacitance threshold, it is determined that the electronic device is in an open state.
[0075] In some embodiments, the preset capacitance threshold value can be set by a large number of tests or according to empirical values. Embodiments of the present application do not limit the preset capacitance threshold value.
[0076] In some embodiments, since the capacitance of mutual capacitance has a corresponding relationship with the folding angle range of the electronic device, the folding angle range of the electronic device has a corresponding relationship with the cover opening / closing state of the electronic device, and thus the capacitance of mutual capacitance has a corresponding relationship with the cover opening / closing state of the electronic device. The electronic device can determine the cover opening / closing state of the electronic device based on the capacitance of mutual capacitance between the first touch electrode and the second touch electrode.
[0077] In some embodiments, in the process of determining the cover opening / closing state of the electronic device based on the capacitance of mutual capacitance between the first touch electrode and the second touch electrode, the electronic device can set a preset capacitance threshold value. If it is determined that the capacitance of mutual capacitance is greater than the preset capacitance threshold value, it is determined that the electronic device is in the closed cover state. If it is determined that the capacitance of mutual capacitance is less than or equal to the preset capacitance threshold value, it is determined that the electronic device is in the open cover state.
[0078] In some embodiments of the present application, the electronic device can determine the cover opening / closing state of the electronic device by detecting the signal-to-noise ratio of the signal of mutual capacitance between the first touch electrode and the second touch electrode. Specifically, the electronic device can detect the signal-to-noise ratio of the signal of mutual capacitance; if the signal-to-noise ratio is greater than a preset signal-to-noise ratio threshold value, it is determined that the electronic device is in the closed cover state.
[0079] In some embodiments, the preset signal-to-noise ratio threshold value can be set by a large number of tests or according to empirical values. Embodiments of the present application do not limit the preset signal-to-noise ratio threshold value. For example, the preset signal-to-noise ratio threshold value can be set to 10:1.
[0080] In some embodiments, the capacitance of mutual capacitance and the signal-to-noise ratio of the signal of mutual capacitance are generally positively correlated. The greater the capacitance of mutual capacitance, the greater the signal-to-noise ratio of the signal of mutual capacitance. Based on the corresponding relationship between the capacitance of mutual capacitance and the cover opening / closing state of the electronic device, the signal-to-noise ratio of the signal of mutual capacitance also has a corresponding relationship with the cover opening / closing state of the electronic device. The electronic device can determine the cover opening / closing state of the electronic device based on the signal-to-noise ratio of the signal of mutual capacitance between the first touch electrode and the second touch electrode.
[0081] In some embodiments, in the process of determining the cover opening / closing state of the electronic device based on the signal-to-noise ratio of the signal of mutual capacitance between the first touch electrode and the second touch electrode, the electronic device can set a preset signal-to-noise ratio threshold value. If the signal-to-noise ratio of the signal of mutual capacitance is greater than the preset signal-to-noise ratio threshold value, it is determined that the electronic device is in the closed cover state.
[0082] In some embodiments of the present application, the electronic device can determine the unfolding or folding process of the electronic device by detecting the capacitance change of the mutual capacitance between the first touch chip and the second touch chip. If the capacitance change shows a decreasing trend, it is determined that the electronic device is in the unfolding process; if the capacitance change shows an increasing trend, it is determined that the electronic device is in the folding process.
[0083] In some embodiments, during the unfolding process of the electronic device, the folding angle of the electronic device gradually increases, the touchpad and the touch screen gradually move away, and the capacitance of the mutual capacitance generated between the first touch electrode and the second touch electrode gradually decreases. During the folding process of the electronic device, the folding angle of the electronic device gradually decreases, the touchpad and the touch screen gradually move close, and the capacitance of the mutual capacitance generated between the first touch electrode and the second touch electrode gradually increases. Therefore, by detecting the capacitance change of the mutual capacitance between the first touch chip and the second touch chip, the unfolding or folding process of the electronic device can be determined. If the capacitance change shows a decreasing trend, it can be determined that the electronic device is in the unfolding process; if the capacitance change shows an increasing trend, it can be determined that the electronic device is in the folding process.
[0084] In some other embodiments, since the capacitance of the mutual capacitance and the signal-to-noise ratio of the signal of the mutual capacitance are generally positively correlated, the greater the capacitance of the mutual capacitance, the greater the signal-to-noise ratio of the signal of the mutual capacitance, therefore, the electronic device can also determine the unfolding or folding process of the electronic device by detecting the signal-to-noise ratio change of the signal of the mutual capacitance. For example, if the signal-to-noise ratio change of the signal of the mutual capacitance shows an increasing trend, it can be determined that the electronic device is in the folding process. The present application does not limit the way of determining the unfolding or folding process of the electronic device.
[0085] In some embodiments of the present application, the first touch chip and the second touch chip can establish a communication connection through a bidirectional active pen protocol. The electronic device can determine the unfolding or folding state of the electronic device by detecting the signal strength of the active pen connection signal between the first touch chip and the second touch chip, including: detecting the signal strength of the active pen connection signal between the first touch chip and the second touch chip; determining the folding angle range of the electronic device based on the signal strength of the active pen connection signal and the second mapping relationship, the second mapping relationship representing the correspondence between the signal strength and the folding angle range; determining the unfolding or folding state of the electronic device according to the folding angle range of the electronic device.
[0086] Please refer to Fig. 10, which is an example diagram of an implementation architecture of the capacitive touch detection provided in the embodiments of the present application. As shown in Fig. 10, the implementation architecture of the capacitive touch detection mainly includes a capacitive touch electrode 301, a touch chip 302, and a host 303. During the touch detection process, a coupling capacitance is generated between a touch conductor such as a finger 304 or a stylus 305 and the touch electrode 301. The touch chip 302 can apply an alternating current (AC) modulation signal (for example, a square wave, a sine wave, or other types of voltage waveforms) to the capacitive touch electrode 301, so that the coupling capacitance between the touch conductor and the touch electrode 301 generates a charging and discharging behavior. The touch chip 302 detects the current signal generated by the coupling capacitance through an analog front-end circuit to realize the touch detection of the touch conductor (for example, the finger 304, the active stylus, or the passive stylus).
[0087] Based on the implementation principle of the capacitive touch detection described above, the electronic device can enable the first touch chip and the second touch chip to establish a communication connection through a bidirectional active stylus protocol. The bidirectional active stylus protocol includes but is not limited to the USI active stylus protocol. Based on the bidirectional active stylus protocol, the electronic device regards the touchpad as an active stylus, regards the touch screen as a transmission end of an uplink signal, and realizes frame synchronization of the uplink signal of the touchpad and the touch screen. The electronic device can set a detection window in a fixed time window to detect the uplink signal of the touch screen. Based on the signal strength of the uplink signal and a second mapping relationship, the folding angle range of the electronic device is determined, wherein the second mapping relationship represents the corresponding relationship between the signal strength and the folding angle range. According to the folding angle range of the electronic device, the open and close cover state of the electronic device can be determined.
[0088] In some embodiments of the present application, the first touch chip and the second touch chip can establish a frame-synchronized communication connection. The first touch chip and the second touch chip set a first time window and a second time window. During the running time of the first time window, the open and close cover detection method provided in the embodiments of the present application is executed, and during the running time of the second time window, the touch detection and / or the active stylus detection is executed. The duration of the first time window is less than the duration of the second time window.
[0089] In some embodiments, the detection related to the touchpad and touch screen of the electronic device includes, but is not limited to, touch detection, active pen detection, cover opening and closing detection, etc. Among them, the cover opening and closing detection of the electronic device is achieved by detecting the capacitance of mutual capacitance between the touchpad and the touch screen. It is only one detection task between the touchpad and the touch screen. The main detection task of the touchpad and the touch screen is the touch detection and active pen detection of itself, which needs to consume a lot of detection time. In order to reduce the detection time of the cover opening and closing detection of the touchpad and the touch screen, the electronic device can make the first touch chip corresponding to the touchpad and the second touch chip corresponding to the touch screen establish a frame synchronous communication connection. The first touch chip and the second touch chip set a first time window and a second time window. In the running time of the first time window, the cover opening and closing detection method provided in the present application is executed, and in the running time of the second time window, the touch detection and / or active pen detection is executed. The duration of the first time window is less than the duration of the second time window.
[0090] As an example, please refer to FIG. 11, in the implementation of the cover opening and closing detection process, the timing diagram of the frame synchronization of the touchpad and the touch screen is shown. As shown in FIG. 11, the first touch chip corresponding to the touchpad sets a relatively short driving time window (Uplink Driving) for the cover opening and closing detection of the electronic device, and the remaining time period is used for touch detection and / or active pen detection. Correspondingly, the second touch chip corresponding to the touch screen also sets a detection time window (Uplink Sensing) in the same time as the driving time window, and the remaining time period is used for touch detection and / or active pen detection (Touch Sensing). The duration of the first touch chip and the second touch chip for touch detection and / or active pen detection is greater than the duration of the cover opening and closing detection. For example, the cover opening and closing detection is detected at a low frame rate of 10-30Hz, while the touch detection and / or active pen detection can be detected at a frame rate of 240Hz-360Hz.
[0091] Please refer to FIG. 12, which is the implementation flowchart of the cover opening and closing detection method provided in another embodiment of the present application. As shown in FIG. 12, the cover opening and closing detection method provided in the present embodiment includes steps S21 to S24, and the specific steps are as follows.
[0092] S21: In each detection period, a driving signal is sent to the first touch electrode of the touchpad or the second touch electrode of the touch screen, and the capacitance of the mutual capacitance generated between the first touch electrode and the second touch electrode is detected;
[0093] S22: Based on the capacitance of the mutual capacitance and the first mapping relationship, the folding angle range of the electronic device is determined.
[0094] In some embodiments, the specific implementation of steps S21-S22 can refer to the implementation of steps S11-S12 in FIG. 5, which will not be repeated here.
[0095] S23: Determine the control strategy of the electronic device according to the folding angle range of the electronic device and the preset mapping relationship.
[0096] In some embodiments, the preset mapping relationship represents the corresponding relationship between the folding angle range and the control strategy.
[0097] In some embodiments, the running state of the electronic device is different at different folding angles. For example, when the folding angle range of the electronic device is within the preset range, it can be determined that the electronic device is in a closed state, in which case, in order to save energy consumption, the electronic device can enter a low-power mode. For another example, when the folding angle range of the electronic device is not within the preset range, it can be determined that the electronic device is in an open state, in which case, in order to ensure normal work of the user, the touch screen, hardware device, etc. of the electronic device are in a normal working state. Therefore, the electronic device can set different control strategies according to different folding angle ranges. After determining the folding angle range of the electronic device, the control strategy of the electronic device can be determined according to the folding angle range of the electronic device and the preset mapping relationship.
[0098] In other embodiments, since the capacitance of the mutual capacitance between the first touch chip and the second touch chip has a corresponding relationship with the folding angle range of the electronic device, and the folding angle range has a corresponding relationship with the control strategy, the capacitance of the mutual capacitance between the first touch chip and the second touch chip also has a corresponding relationship with the control strategy of the electronic device. Therefore, the electronic device can determine the control strategy of the electronic device according to the capacitance of the mutual capacitance between the first touch chip and the second touch chip. The present application does not limit the way of determining the control strategy of the electronic device.
[0099] S24: Control the running of the electronic device according to the determined control strategy.
[0100] In some embodiments, after determining the control strategy of the electronic device, the electronic device can control the running of the electronic device according to the control strategy.
[0101] In some embodiments of the present application, the operation of the electronic device is controlled according to the determined control strategy, including: if the folding angle range of the electronic device is that the folding angle is greater than or equal to zero degrees and less than or equal to a first angle threshold, the electronic device is controlled to enter a low-power consumption mode, and the wake-up duration of the electronic device is set to a first duration; if the folding angle range of the electronic device is that the folding angle is greater than the first angle threshold and less than a second angle threshold, the electronic device is controlled to enter the low-power consumption mode, and the wake-up duration of the electronic device is set to a second duration, the first duration being greater than the second duration; and if the folding angle range of the electronic device is that the folding angle is greater than or equal to the second angle threshold, the electronic device is controlled to exit the low-power consumption mode.
[0102] In some embodiments, the first angle threshold and the second angle threshold are set by a large number of tests or according to empirical values. For example, the first angle threshold can be set to 10 degrees, and the second angle threshold can be set to 30 degrees. The embodiments of the present application do not limit the first angle threshold and the second angle threshold. The first duration and the second duration can be set according to the device type, configuration, system state, etc. For example, when the electronic device is a notebook computer, the first duration can be set to 7 seconds, and the second duration can be set to 1 second. The embodiments of the present application do not limit the first duration and the second duration.
[0103] In some embodiments, if the electronic device enters a complete sleep or shutdown state when the folding angle of the electronic device is in a preset range, it may affect the user's experience and work efficiency. For example, in some scenarios, the user may only temporarily leave the electronic device, or only wants to slightly shield the touch screen of the electronic device, and only partially folds the electronic device. In this case, if the electronic device is still controlled to enter a complete sleep or shutdown state, it will affect the user's experience and work efficiency.
[0104] To solve the above problems, the electronic device can perform hierarchical power consumption control according to the folding angle range. For example, when the folding angle range of the electronic device is that the folding angle is greater than or equal to zero degrees and less than or equal to a first angle threshold, it usually means that the user temporarily does not use the electronic device, and in order to save energy, the electronic device can be controlled to enter a complete sleep or shutdown state, and the wake-up duration of the electronic device is set to a first duration. When the folding angle range of the electronic device is that the folding angle is greater than the first angle threshold and less than a second angle threshold, it may mean that the user temporarily leaves the electronic device, or needs to slightly shield the touch screen of the electronic device. In this case, in order to save energy and not affect the user's experience, the electronic device can control the touch screen to turn off, maintain the hardware device to continue running, and set the wake-up duration of the electronic device to a second duration, the first duration being greater than the second duration. Thus, the user can quickly wake up the electronic device, save energy, and improve the user's experience.
[0105] In some embodiments, the electronic device can record the time length during which the folding angle range of the electronic device is greater than the first angle threshold and less than the second angle threshold. When the time length is greater than a preset time length, the electronic device can enter a complete sleep or shutdown state, avoiding energy waste caused by long-term non-use of the electronic device. The preset time length can be set by the user, for example, the preset time length can be set to 30 seconds, 1 minute, etc. The present application does not limit the specific setting of the preset time length.
[0106] In some embodiments, if the folding angle range of the electronic device is greater than or equal to the second angle threshold, it can be determined that the electronic device is in an open cover state. In this case, if the electronic device is in a low-power mode before the current time, the electronic device can exit the low-power mode and control the hardware device to operate normally.
[0107] In other embodiments, according to the determined control strategy, controlling the operation of the electronic device can also include: detecting the capacitance of the mutual capacitance between the first touch chip and the second touch chip; if the capacitance of the mutual capacitance is greater than zero and less than or equal to a first capacitance threshold, controlling the electronic device to operate normally; if the capacitance of the mutual capacitance is greater than the first capacitance threshold and less than a second capacitance threshold, controlling the electronic device to enter a low-power mode, and setting the wake-up time length of the electronic device to a third time length; if the capacitance of the mutual capacitance is greater than or equal to the second capacitance threshold, controlling the electronic device to enter a low-power mode, and setting the wake-up time length of the electronic device to a fourth time length, the fourth time length being greater than the third time length.
[0108] In some embodiments, the first capacitance threshold and the second capacitance threshold are set by a large number of tests or according to empirical values. The present application does not limit the first capacitance threshold and the second capacitance threshold. The fourth time length and the third time length can be set according to the device type, configuration, system state, etc. For example, when the electronic device is a notebook computer, the fourth time length can be set to 7 seconds, and the third time length can be set to 1 second. The present application does not limit the fourth time length and the third time length.
[0109] In the open and close cover detection method provided by the embodiment, the open and close cover state of the electronic device is periodically detected. In each detection period, the electronic device sends a driving signal to the first touch electrode of the touchpad and the second touch electrode of the touch screen, and under the action of the driving signal, mutual capacitance is generated between the first touch electrode and the second touch electrode. Since the capacitance of the mutual capacitance gradually increases as the folding angle of the electronic device gradually decreases, and the capacitance of the mutual capacitance gradually decreases as the folding angle of the electronic device gradually increases, the electronic device can verify and test the first mapping relationship between the folding angle range of the electronic device and the capacitance in advance. After the mutual capacitance is generated between the first touch electrode and the second touch electrode, the electronic device detects the capacitance of the mutual capacitance, and based on the capacitance of the mutual capacitance and the first mapping relationship, the folding angle range of the electronic device can be determined. The open and close cover state of the electronic device is determined according to the folding angle range of the electronic device. By using this method, the open and close cover detection of the electronic device is realized based on the touchpad and the touch screen of the electronic device itself, which saves cost and effectively improves the efficiency of open and close detection.
[0110] It should be understood that the size of the serial number of each step in the above embodiment does not mean the order of execution, and the execution order of each process should be determined according to its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.
[0111] In an embodiment of the present application, an open and close cover detection device 10 is provided, which is applied to an electronic device, and the electronic device includes a touchpad and a touch screen. The open and close cover detection device 10 can realize the functions corresponding to the open and close cover detection method in the above embodiment. As shown in FIG. 13, the open and close cover detection device 10 includes a driving module 11, a first determination module 12 and a second determination module 13. The functions of each functional module are described in detail as follows: the driving module 11 is configured to send a driving signal to the first touch electrode of the touchpad or the second touch electrode of the touch screen in each detection period, and detect the capacitance of the mutual capacitance generated between the first touch electrode and the second touch electrode; the first determination module 12 is configured to determine the folding angle range of the electronic device based on the capacitance of the mutual capacitance and the first mapping relationship, and the first mapping relationship represents the corresponding relationship between the capacitance and the folding angle range; and the second determination module 13 is configured to determine the open and close cover state of the electronic device according to the folding angle range of the electronic device.
[0112] For specific limitations of the open and close cover detection device 10, please refer to the limitations of the open and close cover detection method described above, which will not be repeated here. Each module in the above open and close cover detection device 10 can be realized by software, hardware and their combinations in whole or in part. Each module described above can be embedded in or independent of the processor in the electronic device in hardware form, or can be stored in the memory in the electronic device in the form of software, so as to be called and executed by the processor to perform the operations corresponding to each module.
[0113] Referring to FIG. 14, a structural schematic diagram of an electronic device provided by an embodiment of the present application is shown. The electronic device 200 includes, but is not limited to, a notebook computer. The network in which the electronic device 200 is located includes, but is not limited to, the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (VPN), and the like.
[0114] As shown in FIG. 14, the electronic device 200 includes a communication module 21, a memory 22, a processor 23, an input / output (I / O) interface 24, and a bus 25. The processor 23 is coupled to the communication module 21, the memory 22, and the I / O interface 24 through the bus 25, respectively.
[0115] The communication module 21 can be a wireless communication module or a mobile communication module. The wireless communication module can provide a wireless communication solution applied to the electronic device 200, including a wireless local area network (WLAN) (for example, a wireless fidelity (Wi-Fi) network), Bluetooth (BT), a global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), and the like. The mobile communication module can provide a wireless communication solution applied to the electronic device 200, including 2G / 3G / 4G / 5G, and the like.
[0116] The memory 22 can include one or more random access memories (RAMs) and one or more non-volatile memories (NVMs). The random access memory can be directly readable and writable by the processor 23, and can be used to store executable programs (e.g., machine instructions) of an operating system or other programs that are currently running, and can also be used to store data of users and applications, etc. The random access memory can include static random access memories (SRAMs), dynamic random access memories (DRAMs), synchronous dynamic random access memories (SDRAMs), double data rate synchronous dynamic random access memories (DDR SDRAMs) (e.g., the fifth generation of DDR SDRAMs, commonly referred to as DDR5 SDRAMs), etc.
[0117] The non-volatile memory can also store executable programs and store data of users and applications, etc., and can be loaded in advance into the random access memory for direct reading and writing by the processor 23. The non-volatile memory can include magnetic disk storage devices, flash memories.
[0118] The memory 22 is configured to store one or more computer programs. The one or more computer programs are configured to be executed by the processor 23. The one or more computer programs include a plurality of instructions that, when executed by the processor 23, implement the cover opening and closing detection method executed on the electronic device 200.
[0119] In other embodiments, the electronic device 200 further includes an external memory interface for connecting an external memory to achieve the expansion of the storage capacity of the electronic device 200.
[0120] The processor 23 can include one or more processing units, for example: the processor 23 can include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units can be independent devices, or can be integrated in one or more processors.
[0121] The processor 23 provides computing and control capabilities, for example, the processor 23 is used to execute the computer program stored in the memory 22 to realize the cover opening and closing detection method described above.
[0122] The I / O interface 24 is used to provide a channel for user input or output, for example, the I / O interface 24 can be used to connect various input and output devices, such as a mouse, a keyboard, a touch device, a display screen, etc., so that the user can enter information, or make the information visualized.
[0123] The bus 25 is used to provide a communication channel between the communication module 21, the memory 22, the processor 23, and the I / O interface 24 in the electronic device 200.
[0124] It can be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device 200. In other embodiments of the present application, the electronic device 200 can include more or fewer components than the illustration, or combine certain components, or split certain components, or different component arrangements. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.
[0125] The embodiments of the present application also provide a computer readable storage medium, the computer readable storage medium stores a computer program, the computer program includes program instructions, and the method realized when the program instructions are executed can refer to the cover opening and closing detection method in each embodiment of the present application.
[0126] The computer readable storage medium can be an internal storage of the electronic device, such as a hard disk or a memory of the electronic device. The computer readable storage medium can also be an external storage of the electronic device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc.
[0127] Further, the computer readable storage medium can mainly include a program storage area and a data storage area. The program storage area can store an operating system, at least one application required by a function, etc. The data storage area can store data created according to use of the electronic device, etc.
[0128] Finally, it should be noted that the above embodiments are only used to illustrate but not limit the technical solutions of the present application. Although the present application has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present application can be modified or replaced equivalently without departing from the spirit and scope of the technical solutions of the present application.
Claims
1. A method for detecting opening and closing of a cover, applied to an electronic device, wherein, The electronic device includes a touchpad and a touch screen, and the open-close cover detection method includes: In each detection cycle, a driving signal is sent to a first touch electrode of the touchpad or a second touch electrode of the touch screen, and a capacitance generated by mutual capacitance between the first touch electrode and the second touch electrode is detected; Based on the capacitance of the mutual capacitance and a first mapping relationship, a folding angle range of the electronic device is determined, and the first mapping relationship represents a corresponding relationship between the capacitance and the folding angle range; The open-close cover state of the electronic device is determined according to the folding angle range of the electronic device.
2. The lid opening / closing detection method according to claim 1, wherein The determination of the open-close cover state of the electronic device according to the folding angle range of the electronic device includes: If the folding angle range of the electronic device is within a preset range, it is determined that the electronic device is in a closed cover state; If the folding angle range of the electronic device is not within the preset range, it is determined that the electronic device is in an open cover state.
3. The lid opening / closing detection method according to claim 1, wherein After the folding angle range of the electronic device is determined, the method further includes: According to the folding angle range of the electronic device and a preset mapping relationship, a control strategy of the electronic device is determined, and the preset mapping relationship represents a corresponding relationship between the folding angle range and the control strategy; The operation of the electronic device is controlled according to the determined control strategy.
4. The lid opening / closing detection method according to claim 3, wherein The control of the operation of the electronic device according to the determined control strategy includes: If the folding angle range of the electronic device is a folding angle greater than or equal to zero degrees and less than or equal to a first angle threshold, the electronic device is controlled to enter a low-power consumption mode, and a wake-up duration of the electronic device is set to a first duration; If the folding angle range of the electronic device is a folding angle greater than the first angle threshold and less than or equal to a second angle threshold, the electronic device is controlled to enter the low-power consumption mode, and the wake-up duration of the electronic device is set to a second duration, and the first duration is greater than the second duration; If the folding angle range of the electronic device is a folding angle greater than the second angle threshold, the electronic device is controlled to exit the low-power consumption mode.
5. The open / close lid detection method according to claim 1, wherein The method further includes: If it is determined that the capacitance of the mutual capacitance is greater than a preset capacitance threshold, it is determined that the electronic device is in a closed cover state; If it is determined that the capacitance of the mutual capacitance is less than or equal to the preset capacitance threshold, it is determined that the electronic device is in an open cover state.
6. The lid opening / closing detection method according to claim 1, wherein The method further includes: The signal-to-noise ratio of the signal of the mutual capacitance is detected; If the signal-to-noise ratio is greater than a preset signal-to-noise ratio threshold, it is determined that the electronic device is in a closed cover state.
7. The open-and-close lid detection method according to claim 1, wherein The method further includes: The capacitance change of the mutual capacitance is detected; If the capacitance change shows a decreasing trend, it is determined that the electronic device is in an open cover process; If the capacitance change shows an increasing trend, it is determined that the electronic device is in a closed cover process.
8. The lid opening / closing detection method according to claim 1, wherein The electronic device includes a first touch chip and a second touch chip, the first touch chip is connected to a first touch electrode of the touchpad, the second touch chip is connected to a second touch electrode of the touch screen, the first touch chip and the second touch chip establish a communication connection through a bidirectional active pen protocol, and the method further includes: detecting a signal strength of a stylus connection signal between the first touch chip and the second touch chip; determining a folding angle range of the electronic device based on the signal strength of the stylus connection signal and a second mapping relationship, the second mapping relationship representing a corresponding relationship between the signal strength and the folding angle range; determining a cover opening / closing state of the electronic device according to the folding angle range of the electronic device.
9. The open / close lid detection method according to claim 8, wherein The first touch chip and the second touch chip establish a frame synchronous communication connection, and the method further comprises: The first touch chip and the second touch chip set a first time window and a second time window, in a running time of the first time window, the first touch chip and the second touch chip perform the cover opening / closing detection method as claimed in any one of claims 1 to 8, in a running time of the second time window, the first touch chip and the second touch chip perform touch detection and / or stylus detection, and a duration of the first time window is less than a duration of the second time window.
10. The open / close lid detection method according to claim 8, wherein The first touch chip and the second touch chip establish communication through a preset communication mechanism, and the method further comprises: The second touch chip determines a selectable signal frequency of the driving signal by noise detection, and sends the selectable signal frequency to the first touch chip through the preset communication mechanism; The first touch chip determines a target signal frequency of the driving signal according to the selectable signal frequency.
Citation Information
Patent Citations
Device opening and closing cover detection method, touch controller, touchpad and electronic device
CN111052034A
Folding angle detection method and electronic equipment
CN116055597A
Cover opening and closing detection method
CN118708025A
Opening state detection of a foldable device using self-capacitance
US20180088633A1
Method for controlling on / off of screen, apparatus for controlling on / off of screen and electronic device
WO2020107401A1
Cited By
Control method and control equipment for ceiling screen
CN122308653A