Control method and electronic equipment
By establishing a physical communication line between the touch control module and the sensor control module in the touch screen device, the obstructed state is directly synchronized, and the problem of false touch events and increased power consumption in the screen-off state is solved, and low-power false touch protection is achieved.
Patent Information
- Application Number
- CN202510122643.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-24
- Publication Date
- 2025-05-06
AI Technical Summary
Existing touch screen devices are prone to accidental touch events when the screen is turned off, resulting in increased power consumption. The reporting of sensor events requires the application processor to wake up and further increase power consumption.
By establishing a physical communication line between the touch control module and the sensor control module, the obstructed state of the touch screen is directly synchronized to avoid reporting events to wake up the application processor, thereby controlling the touch screen to enter different working modes to save power consumption.
It realizes the real-time synchronization of the blocked state of the touch screen without increasing power consumption, reducing false touch events and reducing device power consumption.
Smart Images

Figure CN119937836A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of control technology, and more specifically, to a control method and electronic equipment. Background Art
[0002] Currently, many touch screen devices support the screen-off gesture function, that is, when the screen is off, users can control the device to perform corresponding operations by performing specific gestures on the touch screen. In actual applications, accidental touches of the touch screen often occur in some scenarios. To address this situation, a pocket mode is added to the device, that is, the phone sensor monitors whether the screen is blocked. If it is detected to be blocked, the touch screen module is set to enter pocket mode through the software interface to prevent accidental touches. Since monitoring sensor events and reporting events to the application layer software requires waking up the application processor, power consumption will increase. Summary of the invention
[0003] In view of this, this application provides the following technical solutions:
[0004] A first aspect of the present application provides a control method, which is applied to a touch control module of a touch screen, and the method comprises:
[0005] Obtaining a level state of a first port; the first port of the touch control module is connected to a sensor control module via a first line, and the level state can be controlled by the sensor control module to characterize a blocked state of the touch screen;
[0006] If the level state of the first port is the first state, controlling the touch screen to enter the first working mode;
[0007] If the level state of the first port is the second state, the touch screen is controlled to enter the second working mode; the power consumption of the first working mode is different from the power consumption of the second working mode.
[0008] In a possible implementation, in the first working mode, the touch control module responds to a touch event on the touch screen;
[0009] In the first working mode and the second working mode, the touch control module has different response states to touch events on the touch screen, or different sensitivities for reporting touch events; the power consumption of the first working mode is greater than that of the second working mode.
[0010] In a possible implementation, when the touch control module is in the first working mode or the second working mode, the touch screen is in a screen-off state.
[0011] In a possible implementation, it also includes:
[0012] An indication signal indicating the on / off state of the touch screen is transmitted to the sensor control module through the second port, and the second port of the touch control module is connected to the sensor control module through a second line.
[0013] In a possible implementation, it also includes:
[0014] transmitting an indication signal indicating a physical proximity event detected by the touch screen to the sensor control module through a third port, so that the sensor control module determines whether to trigger calibration of the first sensor based on the physical proximity event and the detection data of the first sensor;
[0015] Wherein, the third port of the touch control module is connected to the sensor control module through a third line.
[0016] A second aspect of the present application provides a control method, which is applied to a sensor control module, and the method includes:
[0017] Acquire the level state of the fourth port; the fourth port of the sensor control module is connected to the touch control module of the touch screen through a fourth line, and the level state of the fourth port can be controlled by the touch control module to represent the on and off state of the touch screen;
[0018] If the level state of the fourth port is the third state, controlling the sensor control module to enter the third working mode;
[0019] If the level state of the fourth port is the fourth state, controlling the sensor control module to enter the fourth working mode;
[0020] The power consumption of the third working mode is different from the power consumption of the fourth working mode.
[0021] In a possible implementation, in the third working mode and the fourth working mode, the working state of the sensor control module for reporting an obstruction event is different, and the obstruction event represents an obstruction state of the touch screen.
[0022] In one possible implementation, the sensor control module includes a first sensor, and the method further includes:
[0023] Acquire the level state of the fifth port; the fifth port of the sensor control module is connected to the touch control module through the fifth line, and the level state of the fifth port can be controlled by the touch control module to represent the blocked state of the touch screen;
[0024] If the shielded state represented by the level state of the fifth port is different from the shielded state detected by the first sensor, the first sensor is calibrated.
[0025] In a possible implementation, if the shielding state represented by the level state of the fifth port is different from the shielding state detected by the first sensor, the shielding event is reported.
[0026] A third aspect of the present application provides an electronic device, comprising a touch control module and a sensor control module, wherein a first port of the touch control module is connected to the sensor control module via a first line, and a fourth port of the sensor control module is connected to the touch control module via a fourth line, wherein:
[0027] The touch control module is used to obtain the level state of the first port, which is controlled by the sensor control module and is used to represent the blocked state of the touch screen; when the level state of the first port is different, the touch control module enters a different working mode. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0029] Figure 1 A flow chart of a control method disclosed in an embodiment of the present application;
[0030] Figure 2 A schematic diagram of the circuit connection between the touch control module and the sensor control module disclosed in the embodiment of the present application;
[0031] Figure 3 A flowchart of another control method disclosed in an embodiment of the present application;
[0032] Figure 4 This is a schematic diagram of the structure of an electronic device disclosed in an embodiment of the present application. DETAILED DESCRIPTION
[0033] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0034] The embodiments of the present application can be applied to electronic devices. The present application does not limit the product form of the electronic device, which can include but is not limited to smart phones, tablet computers, wearable devices, personal computers (PCs), netbooks, etc., and can be selected according to application requirements.
[0035] Figure 1 This is a flow chart of a control method disclosed in an embodiment of the present application. Figure 1 The method shown is applied to the touch control module of the touch screen. Figure 1 As shown, the method includes:
[0036] Step 101: obtaining a level state of a first port; the first port of the touch control module is connected to a sensor control module via a first line, and the level state can be controlled by the sensor control module to characterize the blocked state of the touch screen.
[0037] In the traditional solution, there is no communication channel between the touch control module and the sensor control module of the touch screen. The touch control module needs to obtain information about whether the touch screen on the sensor control module side is blocked through the upper-layer application. For example, the sensor control module reports the blocking status of the touch screen to the upper-layer application, and the upper-layer application notifies the touch control module of the blocking status. The process of information reporting requires waking up the AP (Application Processor), which generates a certain amount of power consumption.
[0038] In the present application, a physical communication line between the touch control module and the sensor control module is established by using custom expansion ports of the touch control module and the sensor control module, such as GPIO (General-purpose input / output). In this way, when the sensor control module determines that the touch screen is in an obstructed state, it directly synchronizes the state to the touch control module through the physical communication line between the two, that is, the first line. The sensor control module no longer needs to report the event that the touch screen is in an obstructed state, nor does it need to wake up the AP, thereby saving working power consumption.
[0039] The first port of the touch control module is connected to the sensor control module through a first line. Therefore, when the sensor control module determines whether the touch screen is blocked based on the detection result of the sensor hub, the sensor control module can control the level state on the first line.
[0040] Step 102: If the level state of the first port is the first state, control the touch screen to enter the first working mode.
[0041] Step 103: If the level state of the first port is the second state, control the touch screen to enter a second working mode; the power consumption of the first working mode is different from the power consumption of the second working mode.
[0042] Since the blocked state of the touch screen only includes two states: blocked and not blocked, different blocked states can be represented by high and low levels in implementation. For example, a low level represents that the touch screen is not blocked, and a high level represents that the touch screen is blocked.
[0043] When the sensor control module determines that the touch screen is not blocked, it controls the output of a level signal of the first state to the port connected to the first line, and the level signal is obtained by the touch control module through the first port. The touch control module determines that the touch screen is not currently blocked based on the mapping relationship between the preset level state and the blocking situation, and can control the touch screen to remain in the first working mode. The first working mode can also be understood as a gesture mode, in which the touch screen responds normally to touch events on the touch screen.
[0044] When the sensor control module determines that the touch screen is blocked, it controls the output of a level signal of the second state to the port connected to the first port. The level signal is obtained by the touch control module through the first port. The touch control module determines that the touch screen is currently blocked based on the mapping relationship between the preset level state and the blocking condition. In this case, the touch event on the touch screen is most likely a false touch event. Therefore, the touch screen can be controlled to enter the second working mode. The second working mode can be understood as the sleep mode, that is, the pocket mode in the traditional solution. In the sleep mode / pocket mode, the touch screen reduces the sensitivity of responding to touch events on the touch screen, or does not respond to touch events on the touch screen, so as to reduce the power consumption of the device.
[0045] In the first working mode, the touch control module responds to touch events on the touch screen; in the second working mode, the touch control module does not respond to touch events, or the sensitivity of responding to touch events is lower than the sensitivity of responding to touch events in the first working mode. In summary, in the first working mode and the second working mode, the touch control module has different response states to touch events on the touch screen, or different sensitivities for reporting touch events; the power consumption of the first working mode is greater than that of the second working mode.
[0046] The control method described in this embodiment is implemented based on a touch control module and a sensor control module having a physical communication line. The sensor control module can synchronize the blocked state of the touch screen to the touch control module through the physical communication line in real time, which serves as a basis for the touch control module to control the working mode of the touch screen. In this implementation, the transmission of the blocked state of the touch screen does not need to wake up the AP to report it to the upper-layer application for forwarding, but is directly synchronized to the touch control module through the physical line by the sensor control module, thereby saving device power consumption.
[0047] When the device is turned on, the touch screen has three working states, namely, the screen is on and responds to touch, the screen is off and responds to touch, and the screen is off and does not respond to touch. Among them, the screen is on and responds to touch corresponds to the situation where the user uses the device normally; the screen is off and responds to touch corresponds to the situation where the user wants to unlock or trigger the screen to be on when the screen is off; the screen is off and does not respond to touch corresponds to the situation where the device is in a pocket or bag and the touch screen is blocked, or, if the device is a mobile phone, when the user holds the phone close to the ear to make a call, the display screen is also in the off and does not respond to touch state.
[0048] The touch screen blocked state of the touch screen synchronized to the touch control module by the sensor control module through the first line is used by the touch control module as a basis for determining whether to switch to the pocket mode, that is, as a basis for switching between the touch screen off and responding to touch state and the touch screen off and not responding to touch state; or, in the scenario where the user answers a call and holds the mobile phone close to the ear, the touch screen blocked state synchronized to the touch control module by the sensor control module is used as a basis for switching between the touch screen on and responding to touch state and the touch screen off and not responding to touch state.
[0049] For example, in one scenario, the user does not use the mobile phone and places the mobile phone on the desktop. The sensor touch module detects that the touch screen is not blocked at this time, and controls the level of the port connected to the first line to be low. At this time, the touch screen is in the first working mode, that is, the mobile phone is in a state of off screen but can respond to touch; then, the user puts the mobile phone into a pocket, and the touch screen is physically blocked. The sensor touch module detects that the touch screen is blocked, and controls the level of the port connected to the first line to be high. At this time, the touch screen is in the second working mode, that is, the mobile phone is off and cannot respond to touch. In this scenario, when the touch control module is in the first working mode or the second working mode, the touch screen is in the off screen state.
[0050] In another implementation, the touch control module is also connected to the sensor control module via a second port via a second line. The control method may also include: transmitting an indication signal indicating the on and off status of the touch screen to the sensor control module via the second port, and the second port of the touch control module is connected to the sensor control module via a second line.
[0051] In the implementation, the sensor control module can control its own working state based on the on / off state of the touch screen. For example, when the user is using the mobile phone normally, the touch screen is in the on state, the user is watching the display screen and may input touch operations on the display screen, and the touch control module also needs to respond to the touch operations on the touch screen in real time. At this time, the sensor on the sensor control module side does not need to detect the physical proximity event or the blocked state of the touch screen, nor does it need to report or synchronize the physical proximity event, that is, the blocked state; but when the touch screen is in the off state, it means that the user is not using the device at this time, and it is necessary to determine whether the touch control module needs to respond to the touch event. Therefore, the sensor control module needs to detect the physical proximity event or the blocked state of the touch screen, and report or synchronize the detected event.
[0052] In the traditional solution, the touch control module needs to report the on / off status of the touch screen to the upper-level application, which then sends it to the sensor control module. In the present embodiment, the on / off status of the touch screen can be directly synchronized to the sensor control module via the physical communication line (second line) between the touch control module and the sensor control module, thereby eliminating the process of the touch control module reporting the status to wake up the AP, and thus can also save device power consumption to a certain extent.
[0053] In another implementation, the touch control module is also connected to the sensor control module through a third port via a third line, and the control method may also include: transmitting an indication signal indicating a physical proximity event detected by the touch screen to the sensor control module through the third port, so that the sensor control module determines whether to trigger the calibration of the first sensor based on the physical proximity event and the detection data of the first sensor; wherein the third port of the touch control module is connected to the sensor control module through a third line.
[0054] The physical proximity event may be detected and determined by a proximity sensor connected to the touch control module, and the proximity sensor may be, for example, an infrared proximity sensor, an ultrasonic proximity sensor, a photoelectric proximity sensor, etc. The first sensor may be a distance sensor on the sensor control module side.
[0055] The distance sensor on the sensor control module side can detect the distance between the touch screen and the physical entity, and the proximity sensor can also detect the physical proximity event of the physical entity approaching the touch screen. In this embodiment, when the touch control module determines that there is a physical proximity event, the event will be synchronized to the sensor control module. After receiving the physical proximity event synchronized by the touch control module, the sensor control module will match it with the data detected by the distance sensor. If the detection result of the distance sensor also indicates that there is a physical entity within a close distance of the touch screen, it is considered that the detection results of the proximity sensor and the distance sensor match; if the detection result of the distance sensor indicates that there is no physical entity within a close distance of the touch screen, it is considered that the detection results of the proximity sensor and the distance sensor do not match. If the matching result is a mismatch, it indicates that there may be a relatively large error in the detection accuracy of the distance sensor, and the calibration of the distance sensor can be triggered so that the distance sensor can obtain accurate detection results in subsequent applications.
[0056] In this embodiment, the physical proximity event detected by the proximity sensor on the touch control module side is used as a reference for whether the detection result of the distance sensor on the sensor control module side is accurate. When the detection results of the proximity sensor and the distance sensor do not match, the sensor control module can automatically control the calibration of the distance sensor to ensure the accuracy of the distance detection result in subsequent applications.
[0057] Figure 2 This is a schematic diagram of the circuit connection between the touch control module and the sensor control module disclosed in the embodiment of the present application, which includes the first circuit, the second circuit and the third circuit in the above-mentioned embodiment. Figure 2 Understand the content introduction of the corresponding parts in the aforementioned embodiments.
[0058] Figure 3 This is a flow chart of another control method disclosed in an embodiment of the present application. Figure 3 The method shown applies to the sensor control module. Figure 3 As shown, the method includes:
[0059] Step 301: Obtain the level state of the fourth port; the fourth port of the sensor control module is connected to the touch control module of the touch screen through a fourth line, and the level state of the fourth port can be controlled by the touch control module to represent the on and off state of the touch screen.
[0060] The level state on the fourth line is used to characterize the on / off state of the touch screen, which can be understood as the second line in the above-mentioned embodiment. The touch control module synchronizes the level signal characterizing the on / off state of the touch screen to the second line (fourth line) through its second port, and the sensor control module obtains the level state of the fourth port.
[0061] Step 302: If the level state of the fourth port is the third state, control the sensor control module to enter the third working mode.
[0062] Step 303: If the level state of the fourth port is the fourth state, control the sensor control module to enter the fourth working mode, and the power consumption of the third working mode is different from the power consumption of the fourth working mode.
[0063] Since the touch screen has only two states, screen on and screen off, high and low levels can be used to represent different screen states. For example, a high level corresponds to a screen on, and a low level corresponds to a screen off. In the third working mode and the fourth working mode, the working state of the sensor control module reporting the blocked event is different, and the blocked event represents the blocked state of the touch screen.
[0064] When the user is using the device, the touch screen is in the on state, and the user may also output touch operations at any time. The touch screen cannot enter the pocket mode, so the sensor on the sensor control module side does not need to detect the blocked state of the touch screen, nor does it need to report or synchronize the time when the touch screen is blocked. When the touch screen is off, the user is not using the device, and it is necessary to determine whether the touch control module needs to respond to touch events. Therefore, the sensor control module needs to detect the blocked state of the touch screen and report or synchronize the detected event.
[0065] In the control method described in this embodiment, the sensor obtains the on / off status of the touch screen. There is no need for the touch control module to report the on / off status to the upper-layer application and wake up the AP to implement it. Instead, the on / off status of the touch screen can be obtained directly through the physical communication line between the touch control module, thereby reducing the number of AP wake-up times and saving device power consumption.
[0066] In one implementation, the sensor control module side includes a first sensor, and the control method may also include: obtaining the level state of the fifth port; the fifth port of the sensor control module is connected to the touch control module through a fifth line, and the level state of the fifth port can be controlled by the touch control module to characterize the blocked state of the touch screen; if the blocked state represented by the level state of the fifth port is different from the blocked state detected by the first sensor, calibrating the first sensor.
[0067] Among them, the level state on the fifth line is used to characterize the blocked state of the touch screen, which can be understood as the third line in the above-mentioned embodiment. The touch control module synchronizes the level signal characterizing the blocked state of the touch screen to the third line (fifth line) through its fifth port, and the sensor control module obtains the level state of the fifth port. The blocked state synchronized by the touch control module to the sensor control module can be a physical proximity event detected by the proximity sensor on the touch control module side.
[0068] The first sensor may be a distance sensor. If the obstructed state represented by the level state of the fifth port is different from the obstructed state detected by the first sensor, indicating that there may be a relatively large error in the detection accuracy of the distance sensor, the sensor control module may trigger calibration of the distance sensor so that the distance sensor can obtain accurate detection results in subsequent applications.
[0069] In one scenario, a user is holding a mobile phone and making a call, that is, using a phone application. In this case, the sensor control module needs to detect whether the touch screen is blocked, that is, determine whether the mobile phone is close to the user's ear; if it is close, the sensor control module synchronizes the blocking status to the touch control module, and the touch control module controls the touch screen to enter pocket mode, that is, the screen is off and does not respond to touch. If the sensor control module determines that the distance sensor detects a physical entity within a short range when the user is talking, the touch screen blocking event can be reported to the call application, and the call application controls the touch control module to enter pocket mode, that is, the screen is off and does not respond to touch.
[0070] In one implementation, if the shielding state represented by the level state of the fifth port is different from the shielding state detected by the first sensor, the shielding event is reported.
[0071] Since the proximity sensor and the distance sensor detect different states of touch screen obstruction, it can be explained that the detection result of one of the two sensors is inaccurate. It also shows that the touch screen may be obstructed in actual situation. Therefore, in order not to affect the upper-level application to obtain the touch screen obstruction event and perform corresponding processing, the touch screen obstruction event needs to be reported.
[0072] For the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0073] The above-mentioned embodiments disclosed in the present application describe the method in detail. The method of the present application can be implemented by using various forms of devices, so the present application also discloses corresponding devices.
[0074] A control device, applied to a touch control module of a touch screen, comprises: a first state acquisition module, used for obtaining the level state of a first port; the first port of the touch control module is connected to a sensor control module via a first line, the level state can be controlled by the sensor control module, and is used to characterize the blocked state of the touch screen; a first mode control module, used for controlling the touch screen to enter a first working mode when the level state of the first port is a first state; and controlling the touch screen to enter a second working mode when the level state of the first port is a second state; the power consumption of the first working mode is different from the power consumption of the second working mode.
[0075] A control device, applied to a sensor control module, comprises: a second state acquisition module, used for acquiring the level state of a fourth port; the fourth port of the sensor control module is connected to a touch control module of a touch screen through a fourth line, the level state of the fourth port can be controlled by the touch control module, and is used to characterize the on and off state of the touch screen; a second mode control module, used for controlling the sensor control module to enter a third working mode when the level state of the fourth port is a third state; and controlling the sensor control module to enter a fourth working mode when the level state of the fourth port is a fourth state; the power consumption of the third working mode is different from the power consumption of the fourth working mode.
[0076] The control device described in the present application is implemented based on a touch control module and a sensor control module with a physical communication line. The sensor control module and the touch control module can synchronize the status information required by each other to each other through the physical communication line in real time. During implementation, there is no need to wake up the AP to report the corresponding information status information to the upper-level application for forwarding, thereby saving device power consumption.
[0077] Furthermore, the present application also discloses an electronic device, Figure 4 This is a schematic diagram of the structure of the electronic device disclosed in the embodiment of the present application, combined with Figure 4As shown, the electronic device 40 includes a touch control module 401 and a sensor control module 402, the first port of the touch control module is connected to the sensor control module through a first line, and the fourth port of the sensor control module is connected to the touch control module through a fourth line, wherein: the touch control module is used to obtain the level state of the first port, the level state of the first port is controlled by the sensor control module, and is used to characterize the blocked state of the touch screen; the level state of the first port is different, and the touch control module enters a different working mode.
[0078] In addition, the sensor control module can be used to obtain the level state of the fourth port, which can be controlled by the touch control module to characterize the on and off state of the touch screen; the sensor control module enters a different working mode when the level state of the fourth port is different.
[0079] The electronic device may further include a processor, such as a CPU (Central Processing Unit), which is connected to the touch control module and the sensor control module respectively, so that when the electronic device implements some other functions, such as adjusting display parameters, making calls, etc., it can receive relevant data or information reported by the touch control module and the sensor control module, so as to cooperate with the logic of related applications to implement corresponding functions.
[0080] In the electronic device disclosed in the present application, there is a physical communication path between the touch control module and the sensor control module, and the status information required by the other party can be synchronized to the other party through the physical communication line. In implementation, there is no need to wake up the AP to report the corresponding information status information to the upper-level application for forwarding, thereby saving device power consumption.
[0081] For the specific implementation of the above-mentioned control device and electronic device and other possible implementations, please refer to the content introduction of the corresponding part in the method embodiment, which will not be repeated here.
[0082] Any one of the control devices described in the above embodiments includes a processor and a memory. The first state acquisition module, the first mode control module, the second state acquisition module, the second mode control module, etc. in the above embodiments are all stored in the memory as program modules, and the processor executes the above program modules stored in the memory to implement corresponding functions.
[0083] The processor includes a kernel, which retrieves the corresponding program module from the memory. One or more kernels can be set, and the processing of the access data can be realized by adjusting the kernel parameters.
[0084] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0085] In an exemplary embodiment, a computer-readable storage medium is also provided, which can be directly loaded into the internal memory of a computer and contains software code. After the computer program is loaded and executed, it can implement the steps shown in any embodiment of the above control method.
[0086] In an exemplary embodiment, a computer program product is also provided, which can be directly loaded into the internal memory of a computer, wherein the computer program contains software codes, and after being loaded and executed by a computer, the computer program can implement the steps shown in any embodiment of the control method described above.
[0087] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0088] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0089] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0090] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A control method, applied to a touch control module of a touch screen, the method comprising: Obtaining the level state of the first port; The first port of the touch control module is connected to the sensor control module through a first line, and the level state can be controlled by the sensor control module to represent the blocked state of the touch screen; If the level state of the first port is the first state, controlling the touch screen to enter the first working mode; If the level state of the first port is the second state, the touch screen is controlled to enter the second working mode; the power consumption of the first working mode is different from the power consumption of the second working mode.
2. The control method according to claim 1, wherein: In the first working mode, the touch control module responds to touch events on the touch screen; In the first working mode and the second working mode, the touch control module has different response states to touch events on the touch screen, or different sensitivities for reporting touch events; the power consumption of the first working mode is greater than that of the second working mode.
3. According to the control method of claim 1, when the touch control module is in the first working mode or the second working mode, the touch screen is in a screen-off state.
4. The control method according to claim 1, further comprising: An indication signal indicating the on / off state of the touch screen is transmitted to the sensor control module through the second port, and the second port of the touch control module is connected to the sensor control module through a second line.
5. The control method according to claim 1, further comprising: transmitting an indication signal indicating a physical proximity event detected by the touch screen to the sensor control module through a third port, so that the sensor control module determines whether to trigger calibration of the first sensor based on the physical proximity event and the detection data of the first sensor; Wherein, the third port of the touch control module is connected to the sensor control module through a third line.
6. A control method, applied to a sensor control module, the method comprising: Get the level status of the fourth port; The fourth port of the sensor control module is connected to the touch control module of the touch screen through a fourth line, and the level state of the fourth port can be controlled by the touch control module to represent the on and off state of the touch screen; If the level state of the fourth port is the third state, controlling the sensor control module to enter the third working mode; If the level state of the fourth port is the fourth state, controlling the sensor control module to enter the fourth working mode; The power consumption of the third working mode is different from the power consumption of the fourth working mode.
7. The control method according to claim 6, wherein: In the third working mode and the fourth working mode, the working state of the sensor control module for reporting the blocked event is different, and the blocked event represents the blocked state of the touch screen.
8. The control method according to claim 6, wherein the sensor control module comprises a first sensor, and the method further comprises: Get the level status of the fifth port; The fifth port of the sensor control module is connected to the touch control module through a fifth line, and the level state of the fifth port can be controlled by the touch control module to represent the blocked state of the touch screen; If the shielded state represented by the level state of the fifth port is different from the shielded state detected by the first sensor, the first sensor is calibrated. 9 . The control method according to claim 8 , if the shielding state represented by the level state of the fifth port is different from the shielding state detected by the first sensor, the shielding event is reported.
10. An electronic device, comprising a touch control module and a sensor control module, wherein a first port of the touch control module is connected to the sensor control module via a first line, and a fourth port of the sensor control module is connected to the touch control module via a fourth line, wherein: The touch control module is used to obtain the level state of the first port, which is controlled by the sensor control module and is used to represent the blocked state of the touch screen; when the level state of the first port is different, the touch control module enters a different working mode.