CN115525173A - Driving method, chip and storage medium for mode switching of terminal equipment - Google Patents

Driving method, chip and storage medium for mode switching of terminal equipment Download PDF

Info

Publication number
CN115525173A
CN115525173A CN202211198063.3A CN202211198063A CN115525173A CN 115525173 A CN115525173 A CN 115525173A CN 202211198063 A CN202211198063 A CN 202211198063A CN 115525173 A CN115525173 A CN 115525173A
Authority
CN
China
Prior art keywords
touch screen
instruction
mode
terminal device
active mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211198063.3A
Other languages
Chinese (zh)
Inventor
古启才
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202211198063.3A priority Critical patent/CN115525173A/en
Publication of CN115525173A publication Critical patent/CN115525173A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/04166Details of scanning methods, e.g. sampling time, grouping of sub areas or time sharing with display driving
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/0418Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment
    • G06F3/04182Filtering of noise external to the device and not generated by digitiser components
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/044Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The application relates to a driving method, a chip and a storage medium for switching modes of terminal equipment, wherein the terminal equipment comprises a touch screen, and the method comprises the following steps: receiving a first instruction, wherein the first instruction is used for representing whether the touch screen is driven to enter an activation mode in a charging state or not; and responding to the first instruction, and driving a hardware system of the touch screen to execute mode switching operation corresponding to the first instruction. By the adoption of the method and the device, the probability of false alarm of the touch screen in the charging mode is reduced.

Description

Driving method, chip and storage medium for mode switching of terminal equipment
Technical Field
The present application relates to the field of chips, and in particular, to a method for driving mode switching of a terminal device, a chip, and a storage medium.
Background
For a touch screen of a terminal device, the touch screen with flexible capacitance has poor anti-interference performance, so that interference noise is large in a charging mode, the problem of misinformation is easy to occur in the charging mode, and the probability of misinformation needs to be reduced.
Disclosure of Invention
The application provides a driving method for switching terminal equipment modes, a driving device for switching terminal equipment modes, a chip, terminal equipment and a storage medium.
According to an aspect of the present application, there is provided a driving method for mode switching of a terminal device, the terminal device including a touch screen, the method including:
receiving a first instruction, wherein the first instruction is used for representing whether the touch screen is driven to enter an Active mode in a charging state;
and responding to the first instruction, and driving a hardware system of the touch screen to execute mode switching operation corresponding to the first instruction.
According to another aspect of the present application, there is provided a driving apparatus for mode switching of a terminal device, including:
the driving unit is used for receiving a first instruction, wherein the first instruction is used for representing whether to enter an Active mode in a charging state or not, and responding to the first instruction to drive a hardware system of the touch screen;
and the processing unit is used for executing the mode switching operation corresponding to the first instruction.
According to another aspect of the present application, there is provided a chip comprising: a processor for calling and running the computer program from the memory, so that the device installed with the chip executes the method according to any one of the above embodiments.
According to another aspect of the present application, there is provided a terminal device including: the touch screen and the driving device for switching the modes of the terminal equipment.
According to another aspect of the present application, there is provided a computer-readable storage medium for storing a computer program which, when executed by an apparatus, causes the apparatus to perform the method of any one of the above embodiments.
By the method and the device, the first instruction can be received, and is used for representing whether the touch screen is driven to enter the activation mode in the charging state or not, so that the first instruction is responded, a hardware system of the touch screen can be driven to execute mode switching operation corresponding to the first instruction, and the probability of false alarm of the touch screen in the charging mode is reduced.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present application, nor do they limit the scope of the present application. Other features of the present application will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be considered limiting of the present application. Wherein:
FIG. 1 is a schematic diagram of a mutual capacitance structure in the related art;
FIG. 2 is a schematic diagram of a self-capacitor in the related art;
FIG. 3 is a schematic view showing a structure in which a self-capacitance is wired in a triangular shape in the related art;
fig. 4 is a flowchart illustrating a driving method for mode switching of a terminal device according to an embodiment of the application;
fig. 5 is a flowchart illustrating a control method of a driving method of mode switching of another terminal device according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a touch screen switching between different operating modes according to an embodiment of the present application;
FIG. 7 is a diagram illustrating mode switching after responding to an instruction in an exemplary application according to an embodiment of the application;
fig. 8 is a schematic structural diagram of a component of a driving apparatus for mode switching of a terminal device according to an embodiment of the present application;
fig. 9 is a schematic diagram of a composition structure of a terminal device according to an embodiment of the present application;
FIG. 10 is a schematic diagram of a chip structure according to an embodiment of the present application;
fig. 11 is a block diagram of a communication system for implementing an embodiment of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. The term "at least one" herein means any one of a plurality or any combination of at least two of a plurality, for example, including at least one of a, B, C, and may mean including any one or more elements selected from the group consisting of a, B, and C. The terms "first" and "second" used herein refer to and distinguish one from another in the similar art, without necessarily implying a sequence or order, or implying only two, such as first and second, to indicate that there are two types/two, first and second, and first and second may also be one or more.
For convenience of understanding of technical solutions of the embodiments of the present application, the following description is provided for related technologies of the embodiments of the present application, and the following related technologies may be arbitrarily combined with the technical solutions of the embodiments of the present application as alternatives, which all belong to the protection scope of the embodiments of the present application.
The touch screen is used as an important human-computer interaction channel and is used as an important device in a mobile phone and handheld equipment, the basic principle of the touch screen is capacitance sensing, when a finger or an object of a human body contacts a sensing material on the surface of the touch screen, capacitance change can be caused, and therefore the number of the fingers or the objects pressed on the surface of the touch screen at present can be obtained.
The working principle of the touch screen is as follows: and triggering a scanning signal with a certain frequency at fixed time, detecting whether an object comprises a finger and is pressed on the surface of a touch screen of the terminal equipment, calculating a coordinate according to the capacitance signal and reporting.
Taking a capacitive touch screen as an example, the principle of identifying an object by the capacitive touch screen is as follows: judging whether an object reports the state of the object after touching the touch screen by utilizing a capacitance induction principle of the touch screen, wherein the touch mainly refers to the state that a finger touches the object and the like; the states are mainly classified into a state of pressing, lifting, and moving after pressing.
By utilizing the capacitance sensing principle of the touch screen, the touch screen can identify the coordinates of the object by calculating the capacitance difference between the touch screen and the non-touch screen contacted with the current object, finding out the peak value difference value of the area by calculating the area of the capacitance difference, and judging whether the area is within a certain preset reporting threshold value, so that the reporting coordinates are sent from the terminal equipment.
The capacitive touch screen mainly comprises a transmitting channel and a receiving channel, wherein the acquired capacitance data of the transmitting channel and the receiving channel to the ground is self-capacitance data (the judgment of other auxiliary functions except state judgment, such as a proximity induction function, waterproof judgment and the like, is realized through the self-capacitance data), and the acquired data of the transmitting channel and the receiving channel is mutual capacitance data (the states of pressing, lifting, moving after pressing and the like of a finger are judged through the mutual capacitance data).
The classification of the capacitive screen sensing type is described in detail as follows:
1. mutual capacitance
One axis is driven by a set of Alternating Current (AC) signals, and the response across the touch screen is sensed by electrodes on the other axis, called cross-over sensing, because the electric field is transferred in a cross-over fashion from one electrode group (e.g., rows) to another electrode group (e.g., columns) through the dielectric layer of the upper panel, as shown in fig. 1, with the sending and receiving ends of the mutual capacitance being different and crossing vertically.
It should be noted that ITO (ITO is a transparent conductive material) can be used to make the horizontal electrodes and the vertical electrodes, which is different from the capacitor in that the crossing place of the two sets of electrodes will form a capacitor, i.e. the two sets of electrodes respectively constitute two poles of the capacitor. When a finger touches the capacitive screen, the coupling between the two electrodes near the touch point is affected, thereby changing the capacitance between the two electrodes. When the mutual capacitance is detected, the transverse electrodes sequentially send out excitation signals, and the longitudinal electrodes simultaneously receive signals, so that the capacitance value of the intersection point of the transverse electrodes and the longitudinal electrodes, namely the capacitance value of the two-dimensional plane of the whole touch screen can be obtained.
As for the structural wiring of mutual capacitance, a double-layer stacking scheme, a single-layer bridging scheme, a single-layer multi-point scheme or an ultrathin double-layer scheme can be adopted, wherein in the double-layer stacking scheme, the distance between a transmitting end (TX) and a receiving end (RX) can be set to be more than 150 micrometers, the suspension effect is good, and the influence of dripping water is small; in the single-layer bridging scheme or the single-layer multipoint scheme, the distance between TX and RX is small, the suspension effect is poor, and the influence of dripping is large; in the scheme of the ultrathin double layer, the distance between TX and RX can be set to be about 50um, the suspension effect is poor, and the water dripping influence is large.
2. Self-capacitance
Both the horizontal and vertical electrodes are driven by a single-ended sensing method, i.e. the driving circuits of one row and one column are the same, called single-ended sensing, as shown in fig. 2, the sending and receiving ends of the self-capacitance are the same.
It should be noted that the horizontal and vertical electrode arrays are made of ITO on the glass surface, and form capacitors with the ground respectively. When a finger touches the capacitive screen, the capacitance of the finger is superposed on the capacitance of the screen body, so that the capacitance of the screen body is increased.
For the structural wiring of the self-capacitance, a scheme of independently sampling in the horizontal axis (X) direction and the vertical axis (Y) direction, a scheme of a triangle, and a scheme of an include can be adopted, wherein the scheme of independently sampling in the X direction and the Y (vertical axis) direction needs the number of channels to be X + Y, and only single-point gesture adding can be supported; with the triangular scheme, a single layer of wiring with the number of channels Y × 2 (or X × 2) is required, which is low cost, and some schemes can support multi-point division, as shown in fig. 3. The scheme of using the cell mostly adopts a checkered pattern, needs the number of channels to be X X Y, can support multiple fingers, and supports better light transmittance, thinner and narrow frame design.
Compared with mutual capacitance, the self-capacitance characteristic adopts full channels to send signals simultaneously mostly, and the single channel is sampled in sequence, and because the influence of no ground wire in the center of the screen body, the effect is better in waterproof and anti-common mode interference (like terminal equipment), and the mutual capacitance characteristic needs X + Y channels to obtain X Y data, can support multi-point operation, and is waterproof and anti-common mode interference ratio from the electric capacity.
Based on the principle and various structures of above-mentioned touch-sensitive screen, can realize diversified screen, and along with the popularization of folding screen, because partial capacitance flexible screen shows that the interference is great, the flexible screen structure of electric capacity itself leads to anti-interference relatively poor, and the interference noise is great under the mode of charging, the mistake appears a little the condition easily, and the probability of wrong report is very high.
According to an embodiment of the present application, a driving method for switching a mode of a terminal device is provided, and fig. 4 is a flowchart illustrating the driving method for switching the mode of the terminal device according to the embodiment of the present application, where the method may be applied to a touch screen of the terminal device, for example, the touch screen may be disposed on an electronic device (such as a terminal or a tablet) or other processing devices in a single-machine, multi-machine or cluster system, and may implement processing logic of the touch screen driving method. The terminal may be a User Equipment (UE), a mobile device, a Personal Digital Assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, or the like. In some possible implementations, the method may also be implemented by a processor calling computer readable instructions stored in a memory. As shown in fig. 4, the flow of the driving method for switching the terminal device mode includes:
s401, receiving a first instruction, wherein the first instruction is used for representing whether the touch screen is driven to enter an Active mode in a charging state.
In some examples, the first instruction may be obtained according to state information, where the state information is that the terminal device is in a charging state, and the first instruction is to drive the touch screen to enter an Active mode; the state information is that the first instruction is to drive the touch screen to close an Active mode under the condition that the terminal device is in a non-charging state.
In some examples, after the touch screen is driven to enter the Active mode in the charging state, the Active mode may be maintained in the charging state, instead of being switched to another mode, such as an Idle (Idle) mode or a Sleep (Sleep) mode, unlike the related art in which the Active mode is switched to another mode for a duration lasting several seconds or several minutes after being entered, so as to avoid that the mode switching in the charging mode affects the response accuracy of the touch operation, thereby reducing the probability of false alarm of the touch screen.
S402, responding to the first instruction, and driving a hardware system of the touch screen to execute mode switching operation corresponding to the first instruction.
In some examples, when the first instruction is to drive the touch screen to enter the Active mode, after driving a hardware system of the touch screen, the hardware system of the touch screen may force the touch screen to enter the Active mode; the first instruction is to drive the touch screen to close the entered Active mode, and after the hardware system of the touch screen is driven, the hardware system of the touch screen can force the touch screen to close the Active mode.
By adopting the method and the device, a first instruction (the first instruction is used for representing whether the touch screen is driven to enter the activation mode in the charging state) can be received, so that the hardware system of the touch screen can be driven to execute the mode switching operation corresponding to the first instruction in response to the first instruction, and the probability of false alarm of the touch screen in the charging mode is reduced.
It should be noted that, when the touch screen is used in the charging state, false alarm is likely to occur, the touch screen system may be operated in the present application to drive the touch screen and finally implement mode switching (corresponding mode switching operation executed corresponding to different first instructions), and mainly aims at switching control of a dynamic Active mode of the touch screen. The normal mode may be a switch between the Active mode and the Idle mode or the Sleep mode according to whether a finger touches or not. In other words, the touch screen is driven by a specific first instruction, and then mode switching can be realized, so that the false alarm probability is reduced.
In one possible implementation manner, in response to the first instruction, a hardware system that drives the touch screen executes a mode switching operation corresponding to the first instruction, including: the first instruction is to drive the touch screen to enter the Active mode, and immediately switch from the current mode to the Active mode.
In one possible implementation manner, in response to the first instruction, a hardware system that drives the touch screen executes a mode switching operation corresponding to the first instruction, including: when the first instruction is used for driving the touch screen to enter the Active mode, recording a data mark to be switched to the Active mode (namely, recording that the first instruction is received through the data mark, and immediately executing a mode switching operation corresponding to the first instruction after a preset condition is met), and switching from the current mode (the sleep mode or the Idle mode) to the Active mode according to the data mark to be switched to the Active mode when the preset condition is met (such as a screen-off event aiming at the touch screen in the sleep mode or a screen-on event aiming at the touch screen in the Idle mode for a period of time).
In one possible implementation manner, in response to the first instruction, a hardware system that drives the touch screen performs a mode switching operation corresponding to the first instruction, including: and under the condition that the first instruction is used for driving the touch screen to close the Active mode, indicating the touch screen to enter a normal mode (the normal mode comprises the step of determining whether to continuously switch among the Active mode, the Idle mode and the Sleep mode according to whether touch operation exists on the touch screen by fingers).
Some examples of the operation modes of the touch screen include the Active mode, the Idle mode, and the Sleep mode. Wherein, the Active mode of the touch screen is as follows: the touch screen triggers a self-capacitance/mutual capacitance scanning signal, and simultaneously collects self-capacitance/mutual capacitance data to calculate coordinates. In response to the touch event, the duty cycle is greater than the Idle mode; the Idle mode of the touch screen is as follows: and triggering a self-contained scanning signal by the touch screen, and simultaneously acquiring self-contained data to calculate the self-contained data. No response to the touch event at this time; the sleep mode of the touch screen is as follows: the touch screen is in a sleep mode when scanning is stopped, the TP IC does not trigger the coding waveform, the sleep low-power-consumption state is entered, and at the moment, the touch event is not responded.
As shown in fig. 5, the switching logic among the Active mode, the Idle mode and the Sleep mode of the touch screen includes the following contents:
1) Active mode to Idle mode switching: and when the surface of the touch screen is not touched, switching to an Idle mode under the condition that the preset time and the preset threshold are reached.
2) Idle mode to Active mode switching: and when the surface of the touch screen is touched, switching to an Active mode under the condition that a preset threshold value is reached.
After the TP IC is reset, the mode of Active is directly entered.
3) Idle mode to Sleep mode switching: and when the touch screen is turned off, sending a Sleep name and switching to a Sleep mode.
4) Switching from Active mode to sleep mode: and when the touch screen is turned off, sending a Sleep name and switching to a Sleep mode.
5) Sleep mode to Active mode switching: after the TP IC is reset, the mode of Active is directly entered.
According to an embodiment of the present application, a driving method for switching a mode of a terminal device is provided, and fig. 6 is a flowchart illustrating the driving method for switching the mode of the terminal device according to the embodiment of the present application, where the method may be applied to a terminal device, for example, the touch screen may be disposed on an electronic device (such as a terminal or a tablet) or other processing devices in a single-machine, multi-machine or cluster system, and may implement a processing logic of a control method for driving the touch screen. The terminal may be a User Equipment (UE), a mobile device, a Personal Digital Assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, or the like. In some possible implementations, the method may also be implemented by a processor calling computer readable instructions stored in a memory. As shown in fig. 6, the flow of the driving method for switching the terminal device mode includes:
s601, monitoring the state of the terminal equipment in an interruption mode to obtain state information.
S602, obtaining a first instruction according to the state information, wherein the first instruction is used for representing whether the touch screen is driven to enter an Active mode in a charging state.
S603, responding to the first instruction, and driving a hardware system of the touch screen to execute mode switching operation corresponding to the first instruction.
In some examples, when the state information indicates that the terminal device is in a charging state, the first instruction is to drive the touch screen to enter an Active mode; the state information is that the first instruction is to drive the touch screen to close an Active mode under the condition that the terminal device is in a non-charging state.
In some examples, in the case that the first instruction is to drive the touch screen into the Active mode, after the touch screen is driven into the Active mode in the charging state, the Active mode may be maintained in the charging state, instead of being switched to another mode, such as an Idle (Idle) mode or a Sleep (Sleep) mode, which is different from that in the related art, the Active mode is switched to another mode for a duration of several seconds or several minutes after the touch screen enters the Active mode, so that the influence of the mode switching in the charging mode on the response accuracy of the touch operation is avoided, and the probability of false alarm of the touch screen is reduced.
In some examples, when the first instruction is to drive the touch screen to enter the Active mode, a data flag to be switched to the Active mode is recorded (that is, the data flag records that the first instruction has been received, and a mode switching operation corresponding to the first instruction is executed immediately after a preset condition is met), and when the preset condition is met (for example, a screen-off event for the touch screen in a sleep mode or a screen-on event for the touch screen in an Idle mode without contact for a period of time), the current mode (the sleep mode or the Idle mode) may be switched to the Active mode according to the data flag to be switched to the Active mode.
In some examples, in addition to the above-mentioned forcing the touch screen to enter the Active mode in the charging mode, the touch screen may be forced to close the Active mode in the non-charging mode to recover to the normal mode, that is, to switch the mode among the Active mode, the sleep mode and the Idle mode.
By adopting the method and the device, the state of the terminal equipment can be monitored in an interruption mode to obtain the state information, the first instruction is responded after the first instruction is obtained according to the state information, the hardware system of the touch screen is driven to execute the mode switching operation corresponding to the first instruction, and the probability of false alarm of the touch screen in the charging mode is reduced.
It should be noted that the terminal device includes a touch screen, and in the process of performing instruction interaction between the terminal device and the touch screen, the terminal device sends a first instruction to the touch screen, or specifically, a system service related to battery management is run in the terminal device to send the first instruction to the touch screen system, so as to implement instruction interaction.
The touch screen is used in a charging state, false alarm is easy to occur, the touch screen system can be operated after responding to a first instruction in the application to drive the touch screen and finally realize mode switching (corresponding mode switching operation executed by corresponding different first instructions), the switching control of a dynamic Active mode of the touch screen is mainly aimed at, specifically, after the touch screen drive receives the corresponding first instruction, the instruction is given to a hardware system of the touch screen to execute a forced entering Active mode (or keep the forced entering Active mode) or a normal mode. The normal mode may be a switching mode in which the active mode, the Idle mode, and the Sleep mode are maintained according to whether a finger touches or not. In other words, the touch screen is driven by a specific first instruction, and then mode switching can be realized, so that the false alarm probability is reduced.
In a possible implementation manner, monitoring the state of the terminal device in an interrupted manner to obtain state information includes: determining the state information as that the terminal equipment is in a charging state under the condition that a charging port of the terminal equipment detects an interrupt event inserted into the terminal equipment; and under the condition that the charging port of the terminal device detects an interrupt event of pulling out the terminal device, determining that the state information is that the terminal device is in a non-charging state. Wherein, the port of this terminal equipment includes: any one of a USB port or a Type C port.
In an application example shown in fig. 7, performing mode switching includes the following steps:
s701, running system services related to battery management in the terminal equipment, and monitoring the state of the terminal equipment in an interrupt mode.
S702, judging the state of the terminal equipment according to the current detected state to obtain state information.
In some examples, whether the terminal device is in a charging state (corresponding to two different state information) can be monitored, and in the process of judging the state of the terminal device, if the terminal device is in the charging state, the touch screen hardware system can be subsequently set to enter an Active mode all the time, so that the anti-interference performance is improved, the speed of recognizing noise is improved, the probability of a touch screen randomly reporting point is reduced, and the user experience is improved; if the terminal equipment is in a non-charging state, a touch screen hardware system can be subsequently set to keep switching among an active mode, an Idle mode and a Sleep mode according to whether the finger touches or not.
In some examples, the state of the terminal device is monitored by an interrupt manner, for example, regarding the charging state of the terminal device, a charger is inserted into a charging port of the terminal device, an interrupt event inserted into the terminal device is detected through a USB port or a Type C port, and the voltage and the current of the terminal device are obtained, so that it is determined that the terminal device is in the charging state; regarding the non-charging state of the terminal device, the charger is pulled out from the charging port of the terminal device, and the USB port or the Type C port detects an interrupt event of pulling out the terminal device, so that the terminal device is determined to be in the non-charging state.
S703, the related system service of battery management obtains a first instruction according to the state information to send the first instruction to the touch screen, so as to inform the touch screen to drive a hardware system of the touch screen. If the state information is that the terminal equipment is in the charging state, setting a first instruction as an instruction for driving the touch screen to enter an Active mode, and sending the first instruction to the touch screen.
In some examples, the state of the current terminal device may be further recorded, that is, a data flag to be switched to the Active mode is recorded (that is, a first instruction "an instruction to drive the touch screen to enter the Active mode" or "an instruction to force the touch screen to enter the Active mode" is recorded through the data flag, and a mode switching operation corresponding to the first instruction is executed immediately after a preset condition is met), and when the preset condition is met (for example, a screen-off event for the touch screen in a sleep mode or a screen-on event for a period of time without contact and entering the touch screen in an Idle mode), the current terminal device may be switched to the Active mode according to the data flag to be switched to the Active mode. In other words, in the case of inserting the terminal device, in addition to immediately switching to the Active mode in response to the first instruction, optionally, after the touch screen is turned off or turned on, switching to the Active mode from the current mode (sleep mode or Idle mode) in response to the first instruction, and keeping the Active mode all the time.
Because the frequency interval of Idle mode scanning is larger than that of Acvtive scanning, the first instruction is responded, so that the Idle mode is always entered or kept not to exit, and the time influence of switching the Idle mode to the Active mode is reduced, for example, in experimental data, the Idle mode scanning is 80Hz, and the Acvtive mode scanning is 120Hz, so that the noise identification speed is increased, the anti-interference performance is improved, and the false alarm probability is reduced.
And S704, obtaining a first instruction according to the state information by the relevant system service of the battery management so as to send the first instruction to the touch screen, thereby informing the touch screen of driving a hardware system of the touch screen. If the state information is that the terminal equipment is in a non-charging state, setting a first instruction as an instruction for driving the touch screen to close an Active mode, and sending the first instruction to the touch screen.
S705, the touch screen receives the corresponding first instruction, and issues an open instruction or a close instruction to the touch screen hardware system (specifically, if the touch screen driving system receives the first instruction, the open instruction or the close instruction is sent to the touch screen hardware system).
In some examples, the touch screen driving system receives a corresponding first instruction, and accordingly, sets an opening instruction or a closing instruction to the touch screen hardware system. The android system is divided into different software levels; the related system service of battery management can be responsible for monitoring whether the terminal equipment is in a non-charging state or not so as to judge whether a function of forcibly entering in a charging mode and keeping an Active mode all the time needs to be started or not, and the touch screen driving system is responsible for receiving the first instruction issued by the upper system service and carrying out data communication with a hardware device touch device, namely a touch screen hardware system.
And S706, after the touch screen hardware system receives the opening instruction or the closing instruction, setting a register of the touch screen hardware system through an interface.
In some examples, the touch screen hardware system receives an open command or a close command, and the register of the touch screen hardware system is set through the interface (which may be set through an I2C interface, an SPI interface, or an I3C interface). The register may be a memory of a touch screen hardware system, a CPU and a memory of the touch screen hardware system may also be provided in the touch screen hardware system, and data operation such as register may also be performed.
S707, the touch screen hardware system switches the touch screen to a forced Active mode according to the opening instruction; or the touch screen hardware system switches the touch screen to a normal mode switching state according to the closing instruction.
By adopting the application example, after the terminal equipment is inserted, the probability of misinformation is improved because the noise interference caused by the terminal equipment can cause the capacitive data of the touch screen to cause probabilistic misinformation due to the noise interference.
It should be noted that the above examples may combine various possibilities in the embodiments of the present application, and details are not described here.
An embodiment of the present application further provides a driving apparatus for switching a terminal device mode, and fig. 8 is a schematic block diagram of the driving apparatus 800 for switching a terminal device mode according to an embodiment of the present application. The driving apparatus 800 for switching the terminal device mode may include: the driving unit 801 is configured to receive a first instruction, where the first instruction is used to indicate whether to enter an Active mode in a charging state, and respond to the first instruction to drive a hardware system of the touch screen; the processing unit 802 is configured to perform a mode switching operation corresponding to the first instruction.
It should be noted that the driving unit 801 is responsible for receiving a first instruction issued by an upper system service (e.g., a system service related to battery management), and performs data communication with the processing unit 802 to drive a hardware system of the touch screen to perform a mode switching operation corresponding to the first instruction.
In a possible implementation manner, the driving unit is configured to obtain the first instruction according to state information; the state information is that the terminal equipment is in a charging state, and the first instruction is to drive the touch screen to enter an Active mode; the state information is that the first instruction is to drive the touch screen to close an Active mode under the condition that the terminal device is in a non-charging state.
In a possible implementation manner, the driving unit 801 is configured to, in a case that the first instruction is to drive the touch screen to enter the Active mode, immediately switch the driving processing unit 802 from the current mode to the Active mode.
In a possible implementation manner, the driving unit 801 is configured to record a data flag to be switched to the Active mode when the first instruction is to drive the touch screen to enter the Active mode (that is, record that a "instruction to drive the touch screen to enter the Active mode" or "instruction to force to enter the Active mode" has been received by the data flag, and immediately execute a mode switching operation corresponding to the first instruction after a preset condition is met), and when the preset condition is met (for example, a screen-off event for the touch screen in the sleep mode, or a screen-on event for the touch screen in the Idle mode after a period of non-contact time and entering the Idle mode), the driving processing unit 802 switches from the current mode (the sleep mode or the Idle mode) to the Active mode according to the data flag to be switched to the Active mode.
In a possible implementation manner, the driving unit 801 is configured to instruct the touch screen to enter the normal mode if the first instruction is to drive the touch screen to close the Active mode. Wherein the normal mode includes: and determining whether to continuously switch among an Active mode, an Idle mode and a Sleep mode according to whether the touch operation exists on the touch screen by the finger.
In one possible implementation manner, the method further includes: and the monitoring unit is used for monitoring the state of the terminal equipment in an interruption mode to obtain the state information.
In a possible implementation manner, the monitoring unit is configured to determine that the state information is that the terminal device is in a charging state when a charging port of the terminal device detects an interrupt event that the terminal device is plugged in; and under the condition that the charging port of the terminal equipment detects an interrupt event of pulling out the terminal equipment, determining that the state information is that the terminal equipment is in a non-charging state.
In one possible implementation, the charging port includes: any one of a USB port or a Type C port.
An embodiment of the present application further provides a terminal device, and fig. 9 is a schematic block diagram of a terminal device 900 according to an embodiment of the present application. The terminal device 900 may include: a touch screen 901 for performing data acquisition and data reporting in response to a touch operation; the terminal device mode switching driving device 902 is configured to receive a first instruction, where the first instruction is used to indicate whether to drive the touch screen to enter an Active mode in a charging state, and in response to the first instruction, a hardware system of the touch screen is driven to perform a mode switching operation corresponding to the first instruction.
In the embodiment of the present application, the above units may implement the functions of each unit in the form of software, or hardware, or a combination of software and hardware. In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a module or a unit is only one type of logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another apparatus, or some features may be omitted, or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed to a plurality of different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. For example, at least one of the listening unit 901, the determining unit 902, and the sending unit 903 of the terminal device may be implemented by a battery manager of the terminal device.
Fig. 10 is a schematic structural diagram of a chip 1000 according to an embodiment of the present application. The chip 1000 includes a processor 1010, and the processor 1010 can call and run a computer program from a memory to implement the method in the embodiment of the present application.
In one embodiment, the chip 1000 may further include a memory 1020. From the memory 1020, the processor 1010 may call and execute a computer program to implement the method performed by the terminal device or the network device in the embodiment of the present application.
The memory 1020 may be a separate device from the processor 1010 or may be integrated into the processor 1010.
In one embodiment, the chip 1000 may also include an input interface 1030. The processor 1010 may control the input interface 1030 to communicate with other devices or chips, and in particular, may obtain information or data sent by the other devices or chips.
In one embodiment, the chip 1000 may further include an output interface 1040. The processor 1010 may control the output interface 1040 to communicate with other devices or chips, and may particularly output information or data to the other devices or chips.
In an implementation manner, the chip may be applied to the terminal device in this embodiment, and the chip may implement a corresponding process implemented by the terminal device in each method in this embodiment, which is not described herein again for brevity.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip or a system-on-chip, etc.
The processors referred to above may be general purpose processors, digital Signal Processors (DSPs), field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), or other programmable logic devices, transistor logic devices, discrete hardware components, etc. The general-purpose processor mentioned above may be a microprocessor, or any conventional processor, etc.
The above-mentioned memories may be volatile or nonvolatile memories or may include both volatile and nonvolatile memories. The non-volatile memory may be a read-only memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an electrically Erasable EPROM (EEPROM), or a flash memory. The volatile memory may be a Random Access Memory (RAM).
It should be understood that the above memories are exemplary but not limiting illustrations, for example, the memories in the embodiments of the present application may also be Static Random Access Memory (SRAM), dynamic random access memory (dynamic RAM, DRAM), synchronous Dynamic Random Access Memory (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (enhanced SDRAM, ESDRAM), synchronous Link DRAM (SLDRAM), direct Rambus RAM (DR RAM), and the like. That is, the memory in the embodiments of the present application is intended to comprise, without being limited to, these and any other suitable types of memory.
Fig. 11 is a schematic block diagram of a communication system 1100 according to an embodiment of the present application. The communication system 1100 includes a terminal device 1110 and a network device 1120.
The terminal device 1110 may be configured to implement the corresponding functions implemented by the terminal device in the foregoing methods, and the network device 1120 may be configured to implement the corresponding functions implemented by the network device in the foregoing methods. For brevity, further description is omitted herein.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions according to the embodiments of the present application are wholly or partially generated when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions can be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), among others.
It should be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The above description is only for the specific embodiments of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think of the changes or substitutions within the technical scope of the present application, and shall cover the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (12)

1. A driving method for switching modes of a terminal device, wherein the terminal device comprises a touch screen, the method comprising:
receiving a first instruction, wherein the first instruction is used for representing whether the touch screen is driven to enter an Active mode in a charging state or not;
and responding to the first instruction, and driving a hardware system of the touch screen to execute mode switching operation corresponding to the first instruction.
2. The method of claim 1, wherein the first instruction is derived from state information; wherein, the first and the second end of the pipe are connected with each other,
the first instruction is to drive the touch screen to enter an Active mode under the condition that the state information is that the terminal equipment is in a charging state;
and under the condition that the state information is that the terminal equipment is in a non-charging state, the first instruction is to drive the touch screen to close an Active mode.
3. The method of claim 2, wherein in response to the first instruction, a hardware system driving a touch screen performs a mode switching operation corresponding to the first instruction, and the method comprises:
the first instruction is that under the condition that the touch screen is driven to enter the Active mode, a data mark to be switched to the Active mode is recorded;
and when a preset condition is met, switching from the current mode to the Active mode according to the data mark to be switched to the Active mode.
4. The method according to claim 3, wherein the preset conditions include: a screen-off event of the touch screen or a screen-on event of the touch screen.
5. The method of claim 2, wherein in response to the first instruction, a hardware system driving a touch screen performs a mode switching operation corresponding to the first instruction, comprising:
the first instruction indicates that the touch screen enters a normal mode under the condition that the touch screen is driven to close an Active mode;
wherein the normal mode includes: and determining whether to continuously switch among an Active mode, an Idle mode and a Sleep mode according to whether the touch operation exists on the touch screen by the finger.
6. The method according to any one of claims 2-5, further comprising:
and monitoring the state of the terminal equipment in an interruption mode to obtain the state information.
7. The method of claim 6, wherein the monitoring the status of the terminal device in an interrupted manner to obtain the status information comprises:
under the condition that a charging port of the terminal device detects an interrupt event inserted into the terminal device, determining that the state information is that the terminal device is in a charging state;
and under the condition that the charging port of the terminal equipment detects an interrupt event of pulling out the terminal equipment, determining that the state information is that the terminal equipment is in a non-charging state.
8. The method of claim 7, wherein the charging port comprises: any one of a USB port or a Type C port.
9. A driving device for switching modes of a terminal device, wherein the terminal device comprises a touch screen, the device comprises:
the driving unit is used for receiving a first instruction, wherein the first instruction is used for representing whether the touch screen is driven to enter an Active mode in a charging state or not, and responding to the first instruction to drive a hardware system of the touch screen;
and the processing unit is used for executing the mode switching operation corresponding to the first instruction.
10. A chip, comprising: a processor for calling and running a computer program from a memory so that a device on which the chip is installed performs the method of any one of claims 1 to 8.
11. A terminal device, comprising: touch screen and a driving device for switching modes of a terminal device according to any one of claims 9 to 16.
12. A computer-readable storage medium storing a computer program which, when executed by an apparatus, causes the apparatus to perform the method of any one of claims 1 to 8.
CN202211198063.3A 2022-09-29 2022-09-29 Driving method, chip and storage medium for mode switching of terminal equipment Pending CN115525173A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211198063.3A CN115525173A (en) 2022-09-29 2022-09-29 Driving method, chip and storage medium for mode switching of terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211198063.3A CN115525173A (en) 2022-09-29 2022-09-29 Driving method, chip and storage medium for mode switching of terminal equipment

Publications (1)

Publication Number Publication Date
CN115525173A true CN115525173A (en) 2022-12-27

Family

ID=84699937

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211198063.3A Pending CN115525173A (en) 2022-09-29 2022-09-29 Driving method, chip and storage medium for mode switching of terminal equipment

Country Status (1)

Country Link
CN (1) CN115525173A (en)

Similar Documents

Publication Publication Date Title
CN103258171B (en) Prevent the method for mobile terminal touch screen error touch control, device and mobile terminal
US9811204B2 (en) Time multiplexed touch detection and power charging
CN102722297B (en) A kind of touch panel device and the method realized close to induction thereof
US8913017B2 (en) Touch sensing system, electronic touch apparatus, and touch sensing method
CN105912260B (en) The startup method and mobile terminal of a kind of application program
CN105573538B (en) Sliding broken line compensation method and electronic equipment
CN101609385B (en) Method and system for using a plurality of resistive touch screens to realize multi-point input
CN106775087B (en) Touch screen control method and device of mobile terminal and mobile terminal
CN106886766B (en) A kind of fingerprint identification method, fingerprint recognition circuit and mobile terminal
US20150346895A1 (en) Low power scan for device wake up and unlock
KR20080032901A (en) Apparatus and method for multi-touch decision
WO2012075732A1 (en) Input method and device applied to digital terminal
CN106227520A (en) A kind of application interface changing method and device
CN107506092B (en) Input control method and terminal
CN102999291A (en) Method for waking up mobile terminal in standby state
CN104363012A (en) Portable terminal and implementing method for pressing key of side of capacitor type touch screen by touching
US20130222288A1 (en) Mobile terminal and method for operating a mobile terminal based on touch input
US20140232681A1 (en) Touch sensing apparatus and touch sensing method thereof
CN103677615A (en) Method and terminal for calling application program
CN109426380B (en) Touch device, sensing method thereof and touch sensing circuit
CN105243345A (en) Accidental touch preventing method for electronic equipment and electronic equipment
CN104881174A (en) Method and device for dynamically adjusting sensitivity of touch screen
CN107577404B (en) Information processing method and device and electronic equipment
CN102053765B (en) Capacitive touch induction device and detection method thereof
CN115525173A (en) Driving method, chip and storage medium for mode switching of terminal equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination