CN111290690A - Terminal control method and device, mobile terminal and storage medium - Google Patents

Terminal control method and device, mobile terminal and storage medium Download PDF

Info

Publication number
CN111290690A
CN111290690A CN202010043312.6A CN202010043312A CN111290690A CN 111290690 A CN111290690 A CN 111290690A CN 202010043312 A CN202010043312 A CN 202010043312A CN 111290690 A CN111290690 A CN 111290690A
Authority
CN
China
Prior art keywords
mobile terminal
capacitance data
preset
pocket
touch screen
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.)
Granted
Application number
CN202010043312.6A
Other languages
Chinese (zh)
Other versions
CN111290690B (en
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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co 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 Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN202010043312.6A priority Critical patent/CN111290690B/en
Publication of CN111290690A publication Critical patent/CN111290690A/en
Application granted granted Critical
Publication of CN111290690B publication Critical patent/CN111290690B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the application discloses a terminal control method and device, a mobile terminal and a storage medium, and relates to the technical field of terminals. The method comprises the following steps: when the mobile terminal is in a black screen standby state, acquiring capacitance data of a touch screen of the mobile terminal; judging whether the mobile terminal is in a pocket mode or not according to the capacitance data, wherein the pocket mode is a mode in which the probability that the mobile terminal is in a pocket or a bag is greater than a preset probability; and when the mobile terminal is in the pocket mode, the mobile terminal is prohibited from being switched from the black screen standby state to the bright screen state. According to the method and the device, when the mobile terminal is in the black screen standby state, whether the mobile terminal is in a pocket or a bag is judged through the capacitance data of the touch screen, if the mobile terminal is judged to be in the pocket or the bag with a high probability according to the capacitance data, the mobile terminal can be forbidden to be switched from the black screen standby state to the bright screen state, so that the situation that the mobile terminal mistakenly touches the bright screen in the pocket is avoided, and the power consumption of the mobile terminal is saved.

Description

Terminal control method and device, mobile terminal and storage medium
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a terminal control method and apparatus, a mobile terminal, and a storage medium.
Background
At present, mobile terminals such as smart phones and tablet computers are generally designed to have a touch screen structure to provide a touch input mode, so that the operation of a user is more convenient.
When a user puts the mobile terminal in a pocket or a bag, the mobile terminal is in contact with the pocket or the bag, which may cause the conditions of the mobile terminal such as the bright screen, the application program in the mobile terminal to start running, and the like, however, the user does not have the requirement of using the mobile terminal, and the mobile terminal is falsely triggered.
Disclosure of Invention
The application provides a terminal control method, a terminal control device, a mobile terminal and a storage medium.
In a first aspect, an embodiment of the present application provides a terminal control method, where the method includes: when the mobile terminal is in a black screen standby state, acquiring capacitance data of a touch screen of the mobile terminal; judging whether the mobile terminal is in a pocket mode or not according to the capacitance data, wherein the pocket mode is a mode in which the probability that the mobile terminal is in a pocket or a bag is greater than a preset probability; and when the mobile terminal is in the pocket mode, prohibiting the mobile terminal from being switched from the black screen standby state to the bright screen state.
In a second aspect, an embodiment of the present application provides a terminal control apparatus, where the apparatus includes: the device comprises an acquisition module, a judgment module and an execution module. The acquisition module is used for acquiring capacitance data of a touch screen of the mobile terminal when the mobile terminal is in a black screen standby state; the judging module is used for judging whether the mobile terminal is in a pocket mode according to the capacitance data, wherein the pocket mode is a mode in which the probability that the mobile terminal is in a pocket or a bag is greater than a preset probability; the execution module is used for forbidding the mobile terminal to be switched from a black screen standby state to a bright screen state when the mobile terminal is in the pocket mode.
In a third aspect, an embodiment of the present application provides a mobile terminal, including: one or more processors; a memory; one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more application programs being configured to perform the terminal control method provided by the first aspect above.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a program code is stored in the computer-readable storage medium, and the program code may be called by a processor to execute the terminal control method provided in the first aspect.
According to the terminal control method, the terminal control device, the mobile terminal and the storage medium, when the mobile terminal is in a black screen standby state, whether the mobile terminal is in a pocket mode is judged according to capacitance data of a touch screen of the mobile terminal, wherein the pocket mode is a mode in which the probability that the mobile terminal is in a pocket or a bag is larger than a preset probability. When it is determined that the mobile terminal is in the pocket mode, the mobile terminal may be prohibited from switching from the black standby state to the bright state. Therefore, the condition that the screen is touched by mistake in the pocket of the mobile terminal can be avoided, and the power consumption of the mobile terminal is saved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 shows a flowchart of a terminal control method according to an embodiment of the present application.
Fig. 2 shows a schematic diagram of the working principle of a touch screen suitable for the present application.
Fig. 3 shows a flowchart of a terminal control method according to another embodiment of the present application.
Fig. 4 shows a flowchart of step S220 in a terminal control method according to another embodiment of the present application.
Fig. 5 shows another flowchart of a terminal control method according to another embodiment of the present application.
FIG. 6 shows a schematic diagram of capacitance data for a touch screen suitable for use in the present application.
FIG. 7 shows a schematic of capacitance data for another touch screen suitable for use in the present application.
Fig. 8 shows a flowchart of step S221 in a terminal control method according to another embodiment of the present application.
Fig. 9 shows another flowchart of step S221 in a terminal control method according to another embodiment of the present application.
Fig. 10 shows another flowchart of step S221 in a terminal control method according to another embodiment of the present application.
Fig. 11 shows a flow chart of a terminal control method suitable for the present application.
Fig. 12 shows another flow chart of a terminal control method suitable for use in the present application.
Fig. 13 shows a block diagram of a terminal control device according to an embodiment of the present application.
Fig. 14 is a block diagram of a mobile terminal for executing a terminal control method according to an embodiment of the present application.
Fig. 15 is a storage unit for storing or carrying a program code implementing a terminal control method according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
First, several terms related to the embodiments of the present application are explained:
the off screen display (AOD) mode is a display state in which specific contents are displayed in a partial area of a screen without lighting the entire screen, wherein the specific contents may include time display, incoming call information, push message, and the like. Therefore, the user can check the relevant information without frequently lighting the screen of the mobile terminal.
A capacitive touch screen is a four-layer composite glass screen which works by using current induction of a human body, the inner surface and the interlayer of the glass screen are respectively coated with a layer of ITO (nano indium tin metal oxide), the outermost layer is a thin silica glass protective layer, the interlayer ITO coating layer is used as a working surface, four electrodes are led out from four corners, and the inner ITO layer is used as a shielding layer to ensure a good working environment. When a finger touches the metal layer, a coupling capacitance is formed between the user and the touch screen surface due to the electric field of the human body, and for high frequency currents, the capacitance is a direct conductor, so that the finger draws a small current from the contact point. The current flows from the electrodes on the four corners of the touch screen respectively, the current flowing through the four electrodes is in proportion to the distance from the finger to the four corners, and the position of the touch point can be obtained through accurate calculation of the proportion of the four currents.
At present, when a mobile terminal such as a smart phone or a tablet computer is in a pocket or a bag, the system is often awakened due to the fact that a message pushed by a background is received, and therefore the power consumption of the mobile terminal is increased due to the fact that the mobile terminal is touched by mistake. For example, the screen is triggered by mistake after the short message is received, so that the operation terminal is touched by mistake, and the call is dialed by mistake if the short message is received.
In some application scenarios, when the mobile terminal is set with the AOD mode, it is usually determined whether the AOD mode is triggered by detecting whether the mobile terminal has a tendency of raising hands through an acceleration sensor, but there is a large probability of false triggering. For example, a mobile terminal in a pocket or a bag may erroneously start the AOD mode along with the movement of a human body, thereby causing a waste of power.
Although whether the screen of the mobile terminal is a blocked scene can be identified through the proximity sensor, the problem of false triggering is solved. However, the installation of the proximity sensor may cause the mobile terminal to have a bang screen or a hole screen. With the popularization of the full-screen, a terminal manufacturer can save the area of the front digging hole occupied by the proximity sensor by not installing the proximity sensor in order to improve the screen occupation ratio and save the cost. Therefore, the problem that the screen is touched by mistake by the mobile terminal cannot be effectively solved.
After long-term research, the inventor provides a terminal control method, a device, a mobile terminal and a storage medium, which are provided by the embodiments of the present application, and can determine whether the mobile terminal is in a pocket or a bag according to capacitance data of a touch screen when the mobile terminal is in a black screen standby state, so as to determine whether to prohibit the mobile terminal from being bright. The installation cost of the proximity sensor and the screen area occupied by the digging hole are saved, and the screen is prevented from being touched by mistake.
The following describes a terminal control method according to an embodiment of the present application in detail.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a terminal control method according to an embodiment of the present application. In a specific embodiment, the terminal control method may be applied to the terminal control apparatus 400 shown in fig. 13 and the mobile terminal 100 (fig. 14) configured with the terminal control apparatus 400. The specific process of this embodiment will be described below by taking a Mobile terminal as an example, where the Mobile terminal applied in this embodiment may be various Mobile terminals with touch screens, such as a smart phone, a tablet computer, a media player, a Mobile Internet Device (MID), an intelligent wearable Device (e.g., a smart watch, a smart bracelet), and the like, and is not limited herein.
As will be described in detail with respect to the flow shown in fig. 1, the terminal control method may specifically include the following steps:
step S110: and when the mobile terminal is in a black screen standby state, acquiring capacitance data of a touch screen of the mobile terminal.
In the embodiment of the present application, the black screen standby state of the mobile terminal may refer to an operating state in which the mobile terminal is in a standby state but the display screen is turned off. For example, when the user does not need to use the mobile terminal, the display screen of the mobile terminal is usually turned off, for example, a power key is pressed, so as to reduce the power consumption of the mobile terminal and increase the endurance. In addition, when the user places the mobile terminal in the bright screen state aside and does not perform any operation, the display screen can be automatically turned off after a period of time. In addition to the above two cases, there may be other cases that the display screen needs to be turned off, and after the display screen is turned off, the mobile terminal will be in a black screen standby state, and at this time, the system of the mobile terminal is generally in a dormant state.
In the embodiment of the application, when the mobile terminal is in a black screen standby state, the touch screen can detect the current capacitance data in real time, so that the function of preventing the mobile terminal from being touched by mistake is realized according to the capacitance data. The touch screen may be a sensing device covering a display screen of the mobile terminal to receive an external touch signal.
In some embodiments, the touch screen may be divided into a different number of transmit channels and a different number of receive channels, such as 16 transmit channels and 34 receive channels. As shown in fig. 2, each of the transmit channels and the receive channels is formed by crossing different sense electrodes (transmit TX electrodes and receive RX electrodes). When the touch screen is powered on, the touch screen sensor can acquire capacitance data on the transmit channel and the receive channel.
In some embodiments, the capacitance data collected by the touch screen sensor may be self-capacitance data or mutual capacitance data, which is not limited herein. The self-capacitance data are capacitance data of the TX electrode to the ground, the capacitance data of the RX electrode to the ground, and the mutual capacitance data are capacitance data between the RX electrode and the TX electrode. For example, when the capacitance data collected by the touch screen sensor is mutual capacitance data, the touch screen sensor collects the capacitance data of the first transmit channel, which may be to collect capacitance data of an intersection of each RX electrode and a TX electrode on the first transmit channel.
In some embodiments, when the mobile terminal is in a black screen standby state, the touch screen sensor collects capacitance data, which may be capacitance data of all channels of the touch screen, so that accuracy of the data is ensured. In other embodiments, the touch screen may also collect capacitance data of a part of channels, so that the computation amount is reduced and the time consumption is reduced. Wherein, the partial channel can be a preset channel needing to be detected. For example, the transmission channels of the mobile terminal include a first transmission channel to a twelfth transmission channel, the reception channels of the mobile terminal include a first reception channel to a twelfth reception channel, and the channels to be detected may be set as the first transmission channel to the fifth transmission channel and the sixth reception channel to the ninth reception channel, etc.
In some embodiments, the touch screen may be comprised of a touch screen sensor, a touch screen processor, a touch screen memory, and the like. As one approach, the capacitance data collected by the touch screen sensor may be stored in a memory of the touch screen. Alternatively, the touch screen may notify the mobile terminal through the INT interrupt to read the capacitance data, wherein an interface for reading the data may be an I2C or an SPI interface. After the mobile terminal reads the capacitance data, the capacitance data may be stored in a memory of the mobile terminal.
In addition, the detection time of the capacitance data is not limited in the embodiment of the application, and the touch screen can detect the capacitance data immediately after the mobile terminal is switched to the black screen standby state, or can detect the capacitance data after a certain time period after the mobile terminal is switched to the black screen standby state.
Step S120: and judging whether the mobile terminal is in a pocket mode or not according to the capacitance data, wherein the pocket mode is a mode in which the probability that the mobile terminal is in a pocket or a bag is greater than a preset probability.
When the mobile terminal is in a pocket or a bag, the mobile terminal can be close to materials such as a human body or clothes, and capacitance data detected by the touch screen is different from capacitance data in a normal condition (a condition that the mobile terminal is not in the pocket or the bag). Therefore, in the embodiment of the present application, whether the mobile terminal is in a pocket or a bag of the mobile terminal can be determined according to the capacitance data.
In some embodiments, when the mobile terminal is in the black screen standby state, the touch screen may determine whether the mobile terminal is in the pocket mode according to the detected capacitance data. The pocket mode may refer to a mode in which the probability that the mobile terminal is in a pocket or a bag is greater than a preset probability. The preset probability can be set according to actual requirements, and the embodiment of the application does not limit the preset probability. For example, it may be set to 85%.
In other embodiments, when the mobile terminal is in a black screen standby state, the touch screen may also report the detected capacitance data to the mobile terminal, and after the mobile terminal acquires the capacitance data, the mobile terminal may determine whether the mobile terminal is in the pocket mode according to the capacitance data.
In some embodiments, when it is determined that the mobile terminal is in the pocket mode according to the capacitance data, it may be considered that the probability that the mobile terminal is in a clothing pocket or a bag is high, and at this time, the possibility that the user uses the mobile terminal is low, and the mobile terminal may be kept in a black screen standby state to save power consumption. When the mobile terminal is judged not to be in the pocket mode according to the capacitance data, the probability that the mobile terminal is in a clothing pocket or a bag is considered to be low, and the possibility that a user uses the mobile terminal is high. At this time, the mobile terminal can be triggered to light according to the original trigger mechanism. For example, a user's finger clicks on the touch screen, triggering the mobile terminal to light up.
Step S130: and when the mobile terminal is in the pocket mode, the mobile terminal is prohibited from being switched from the black screen standby state to the bright screen state.
In order to avoid the situation, when the mobile terminal is in a black screen standby state, the embodiment of the application judges whether the mobile terminal is in a pocket mode according to the capacitance data by detecting the capacitance data of the touch screen, so as to judge whether the screen is necessary to be lightened. When the mobile terminal is determined to be in the pocket mode, it can be considered that the possibility that the user uses the mobile terminal is low at this time, and the mobile terminal does not need to be on the screen at this time. Accordingly, the mobile terminal may be prohibited from switching from the black standby state to the bright state. Thereby avoiding the false triggering condition of the mobile terminal. The bright screen state may be an AOD mode, or may be a display state of lighting the whole screen, and is not limited herein.
When the mobile terminal is not in the pocket mode, the possibility that the user uses the mobile terminal is considered to be high, and the mobile terminal can be triggered to be switched from the black screen standby state to the bright screen state according to the original trigger mechanism. For example, when a message pushed by the background is received or a short message is received, the mobile terminal can be awakened to trigger the screen to be on according to the original trigger mechanism because the mobile terminal is not in the pocket mode.
In some embodiments, the touch screen may determine whether the mobile terminal is in the pocket mode according to the acquired capacitance data, and may notify the determination result to the mobile terminal through the interrupt function. As a mode, the mobile terminal may obtain a flag bit that is reported by the touch screen and is in the pocket mode, so as to determine whether to allow the screen to be lit according to the marker. It can be understood that when the mobile terminal acquires the flag bit in the pocket mode, it may be determined that the bright screen is not currently allowed, that is, the mobile terminal may be prohibited from being switched from the black screen standby state to the bright screen state. When the mobile terminal acquires the flag bit which is not in the pocket mode, the current permission of screen lightening can be determined, namely, the original trigger mechanism is used for triggering the mobile terminal to switch from the black screen standby state to the bright screen state.
In other embodiments, the mobile terminal may also determine whether the mobile terminal is in the pocket mode according to the capacitance data reported by the touch screen, so that the mobile terminal may directly obtain the determination result to determine whether to allow the screen to be lit according to the determination result.
According to the terminal control method provided by the embodiment of the application, when the mobile terminal is in a black screen standby state, whether the mobile terminal is in a pocket mode is judged according to capacitance data of a touch screen of the mobile terminal, wherein the pocket mode is a mode in which the probability that the mobile terminal is in a pocket or a bag is larger than a preset probability. When it is determined that the mobile terminal is in the pocket mode, the mobile terminal may be prohibited from switching from the black standby state to the bright state. Therefore, the condition that the screen is touched by mistake in the pocket of the mobile terminal can be avoided, and the power consumption of the mobile terminal is saved. Meanwhile, a hole does not need to be dug on the screen to install the proximity sensor, and therefore the installation cost of the proximity sensor and the screen area occupied by the dug hole are saved.
Referring to fig. 3, fig. 3 is a schematic flowchart illustrating a terminal control method according to another embodiment of the present application. As will be described in detail with respect to the flow shown in fig. 3, the terminal control method may specifically include the following steps:
step S210: and when the mobile terminal is in a black screen standby state, acquiring capacitance data of a touch screen of the mobile terminal.
In some embodiments, whether the mobile terminal is in a black screen standby state or not may be determined first, if the mobile terminal is in the black screen standby state, the false touch prevention detection function of the present application may be turned on, that is, whether the mobile terminal is in a pocket mode or not may be determined according to capacitance data of the touch screen, and if the mobile terminal is in the pocket mode, the mobile terminal is prohibited from being switched from the black screen standby state to a bright screen state. If the mobile terminal is not in the black screen standby state, the false touch prevention detection function of the mobile terminal can not be started.
In some embodiments, to further save power consumption, the frequency of the touch screen for detecting the capacitance data in the black screen standby state may be less than the detection frequency in the normal bright screen state. The capacitance data detected by the touch screen may be timing detection or random time detection, which is not limited herein.
As one mode, when the touch screen detects capacitance data at regular time, the frequency of the touch screen detecting the capacitance data at regular time in the black screen standby state may be lower than the detection frequency in the normal bright screen. Specifically, step S210 may include: and acquiring the capacitance data of the touch screen of the mobile terminal every other preset time, wherein the preset time is longer than the appointed time, and the appointed time is used for acquiring the capacitance data of the touch screen every other appointed time when the mobile terminal is in a bright screen state. The preset duration and the specified duration can be stored in advance and can be set according to actual requirements, and the preset duration and the specified duration are not limited in the embodiment of the application. For example, the preset time period may be 1S, and the specified time period may be 0.2S.
Step S220: and judging whether the mobile terminal is in a pocket mode or not according to the capacitance data, wherein the pocket mode is a mode in which the probability that the mobile terminal is in a pocket or a bag is greater than a preset probability.
In some embodiments, whether the mobile terminal is in the pocket mode may be determined according to a preset relationship between the capacitance data and the current capacitance. Specifically, referring to fig. 4, step S220 may include:
step S221: and judging whether the capacitance data is matched with the preset capacitance data.
Step S222: and when the capacitance data is matched with the preset capacitance data, judging that the mobile terminal is in a pocket mode.
The preset capacitance data may be state data for representing capacitance data of the touch screen in the pocket mode. The preset capacitance data may be preset, and different channels may correspond to the same preset capacitance data, or different channels may correspond to different preset capacitance data. The preset capacitance data may be a determined capacitance value, a capacitance value range, or a capacitance value distribution rule. The specific preset capacitance data is not limited herein.
In some embodiments, whether the mobile terminal is in the pocket mode may be determined by determining whether the capacitance data matches the preset capacitance data. When the capacitance data is matched with the preset capacitance data, the mobile terminal can be judged to be in the pocket mode. When the capacitance data is not matched with the preset capacitance data, it can be determined that the mobile terminal is not in the pocket mode.
As one way, the preset capacitance data may be determined according to capacitance data detected when the mobile terminal is in the pocket mode. Specifically, referring to fig. 5, before step S210, the terminal detecting method of the present application may further include:
step S200: and when the mobile terminal is in the pocket mode, acquiring reference capacitance data of a touch screen of the mobile terminal.
In some embodiments, the reference capacitance data of the touch screen may be capacitance data detected by the touch screen while the mobile terminal is in a pocket or a bag, since the mobile terminal is in the pocket mode when the mobile terminal is placed in the pocket or the bag. As one way, the mobile terminal may be placed in different pockets or bags to detect different capacitance data, and then analyze and count the capacitance data to obtain final capacitance data as reference capacitance data. For example, referring to fig. 6 and 7, when the touch screen includes 8 RX electrodes and 16 TX electrodes, fig. 6 shows reference capacitance data detected by the touch screen in a normal non-pocket situation without touch, and fig. 7 shows reference capacitance data detected when the mobile terminal is in a pocket and the touch screen is close to a human body in a black screen standby state.
Step S201: and determining preset capacitance data corresponding to the pocket mode based on the reference capacitance data.
Step S202: and storing preset capacitance data.
In some embodiments, after the reference capacitance data is obtained, the preset capacitance data corresponding to the pocket mode may be determined based on the reference capacitance data, and then the preset capacitance data may be stored. The storage may be in a memory of the touch screen, or may be in a memory of the mobile terminal, which is not limited herein.
In some embodiments, if the preset capacitance data is determined according to the reference capacitance data of the preset channel of the touch screen, the capacitance data of the preset channel may be only detected when the mobile terminal is in a black screen standby state subsequently, and the computation amount may also be reduced while the data reasonably corresponds to each other.
In some embodiments, the reference capacitance data may be directly used as the preset capacitance data to perform the subsequent pocket mode determination. As one mode, the real-time capacitance data detected in the black screen standby state may be correspondingly matched with the preset capacitance data, and when the data matching degree reaches a matching threshold, the real-time capacitance data may be considered to be matched with the preset capacitance data, so that it may be determined that the mobile terminal is currently in the pocket mode. The matching threshold may be set according to actual requirements, which is not limited in the embodiments of the present application. For example, it may be set to 90%.
In other embodiments, the regularity of the capacitance data of the touch screen when the mobile terminal is in the pocket mode may be analyzed according to the reference capacitance data, and then the subsequent pocket mode may be determined according to the regularity. As one mode, a threshold range of the reference capacitance data may be determined based on the reference capacitance data, and the threshold range may be used as the preset capacitance data corresponding to the pocket mode. The threshold range is a numerical value interval of the reference capacitance data, can be determined according to a maximum value and a minimum value in the acquired reference capacitance data, and can embody an approximate range presented by the capacitance data of the touch screen when the mobile terminal is in the pocket mode. For example, referring to FIG. 7, the threshold range of the reference capacitance data shown in FIG. 7 may be 700-870.
In some embodiments, when the reference capacitance data of the touch screen is detected for multiple times, a threshold range of the reference capacitance data detected each time may be obtained, an average threshold range is determined according to the obtained threshold range each time, and the average threshold range is used as the corresponding preset capacitance data. In this way, by calculating the average threshold range, the determination accuracy of the pocket mode can be improved. As an embodiment, the average threshold range may be determined by averaging the minimum values corresponding to each threshold range to obtain the minimum value corresponding to the average threshold range, and averaging the maximum values corresponding to each threshold range to obtain the maximum value corresponding to the average threshold range.
When the preset capacitance data is within the threshold range or the average threshold range, referring to fig. 8, as an embodiment, the step S221 may include:
step S2211 a: an average of the capacitance data is obtained.
Step S2212 a: and judging whether the average value meets the threshold range.
Step S2213 a: and when the average value meets the threshold range, judging that the capacitance data is matched with the preset capacitance data.
In some embodiments, the touch screen may collect real-time capacitance data when the mobile terminal is in a black screen standby state to calculate an average value of the capacitance data from the capacitance data. Then, whether the current capacitance data is matched with the preset capacitance data can be judged by judging whether the average value falls into the threshold range or the average threshold range, so that whether the mobile terminal is in the pocket mode currently can be determined. Specifically, when the average value falls within the threshold range or the average threshold range, the capacitance data may be considered to be matched with preset capacitance data, so that it may be determined that the mobile terminal is currently in the pocket mode; when the average value does not fall within the threshold range or the average threshold range, it may be considered that the capacitance data does not match the preset capacitance data, and thus it may be determined that the mobile terminal is not currently in the pocket mode. For example, the average threshold range is 750-850, and when the average value of the capacitance data is 800, it can be determined that the average threshold range is satisfied, and it can be determined that the mobile terminal is currently in the pocket mode.
In some embodiments, the touch screen may also report the collected real-time capacitance data to the mobile terminal, the mobile terminal calculates an average value of the capacitance data, and the mobile terminal determines whether the average value meets the threshold range or the average threshold range, so as to obtain a determination result of whether the mobile terminal is currently in the pocket mode, and thus the mobile terminal may determine whether to allow the screen to be turned on.
Therefore, in the black screen standby state, whether the current capacitance data accords with the regularity of the capacitance data in the pocket mode or not is determined by comparing the average value of the detected capacitance data with the average threshold range corresponding to the pre-stored pocket mode. If the regularity is met, the probability that the mobile terminal is in a pocket or a bag is high, the possibility that the user uses the mobile terminal is low, and therefore the influence on the user when the mobile terminal is kept in a black screen standby state is low. Therefore, the mobile terminal can be prohibited from being turned on, so that power consumption can be saved.
In some embodiments, the average value of the reference capacitance data may be used as the preset capacitance data corresponding to the pocket mode, so that in the black screen standby state, whether the mobile terminal is in the pocket mode may be determined by comparing the detected average value of the capacitance data with a pre-stored average value of the reference capacitance data.
As another embodiment, referring to fig. 9, when the preset capacitance data is within the threshold range or the average threshold range, step S221 may also include:
step S2211 b: and acquiring target capacitance data meeting a threshold range in the capacitance data.
Step S2212 b: the proportion of the target capacitance data is determined.
Step S2213 b: and judging whether the proportion is larger than a preset proportion.
Step S2214 b: and when the proportion is larger than the preset proportion, judging that the capacitance data is matched with the preset capacitance data.
In some embodiments, when the mobile terminal is in the black screen standby state, the touch screen may collect real-time capacitance data of all or part of the transmitting channels and the receiving channels to determine whether the capacitance data falls within the threshold range or the average threshold range. And then the touch screen can acquire the target capacitance data falling in the threshold range or the average threshold range and determine the proportion of the target capacitance data in the currently acquired real-time capacitance data. And then judging whether the currently acquired real-time capacitance data is matched with the preset capacitance data by judging whether the ratio is larger than the preset ratio or not, so that whether the mobile terminal is in a pocket mode or not can be determined. Specifically, when the ratio is greater than the preset ratio, the capacitance data may be considered to be matched with the preset capacitance data, so that it may be determined that the mobile terminal is currently in the pocket mode; when the average value is not greater than the preset ratio, the capacitance data may be considered to be not matched with the preset capacitance data, and thus it may be determined that the mobile terminal is not currently in the pocket mode. The preset proportion can be set according to actual requirements, and the embodiment of the application does not limit the preset proportion. For example, it may be set to 90%.
In some embodiments, the touch screen may also report the collected real-time capacitance data to the mobile terminal, and the mobile terminal obtains target capacitance data satisfying the threshold range or the average threshold range from among the capacitance data, and determines a ratio of the target capacitance data. And then the mobile terminal judges whether the proportion is larger than a preset proportion or not to obtain a judgment result whether the mobile terminal is in the pocket mode or not, so that the mobile terminal can determine whether the screen is allowed to be lightened or not.
In this way, in the black screen standby state, the proportion of the target capacitance data meeting the threshold range or the average threshold range is determined by comparing the detected real-time capacitance data with the threshold range or the average threshold range corresponding to the pre-stored pocket mode. If the ratio is larger than the preset ratio, the current capacitance data can be considered to conform to the regularity presented by the capacitance data in the pocket mode. That is, the probability that the mobile terminal is in a pocket or a bag is high, and the possibility that the user uses the mobile terminal is low, so that the influence on the user is low when the mobile terminal is kept in a black screen standby state. Therefore, the mobile terminal can be prohibited from being turned on, so that power consumption can be saved.
As another way, a first fluctuation trend of the reference capacitance data between channels of the touch screen may be determined based on the reference capacitance data, and the first fluctuation trend may be used as the preset capacitance data corresponding to the pocket mode. The first fluctuation trend can be presented by using a capacitance change curve so as to embody a numerical fluctuation rule of reference capacitance data corresponding to a receiving channel and/or a sending channel of the touch screen. The capacitance change curve may be a smooth curve, or a zigzag connection line formed by connecting a plurality of line segments sequentially end to end, which is not limited herein. In some embodiments, in order to improve the accuracy of the curve, the reference capacitance data of the touch screen may be detected multiple times, so as to comprehensively draw a capacitance variation curve according to the reference capacitance data detected multiple times.
As an embodiment, referring to fig. 10, when the preset capacitance data is within the threshold range, the step S221 may include:
step S2211 c: and acquiring a second fluctuation trend of the capacitance data among the channels of the touch screen.
Step S2212 c: and judging whether the second fluctuation trend is matched with the first fluctuation trend.
Step S2213 c: and when the second fluctuation trend is matched with the first fluctuation trend, judging that the capacitance data is matched with the preset capacitance data.
In some embodiments, when the mobile terminal is in a black screen standby state, the touch screen may collect real-time capacitance data of all or part of the transmitting channels and the receiving channels to obtain a second fluctuation trend of the capacitance data between all or part of the transmitting channels and the receiving channels. Then, the touch screen can judge whether the currently acquired real-time capacitance data is matched with the preset capacitance data by judging whether the second fluctuation trend is matched with the first fluctuation trend, so that whether the mobile terminal is in a pocket mode currently can be determined. Specifically, when the second fluctuation trend is matched with the first fluctuation trend, the capacitance data can be considered to be matched with the preset capacitance data, so that the mobile terminal can be determined to be in the pocket mode currently; when the second fluctuation trend does not match the first fluctuation trend, the capacitance data may be considered as not matching the preset capacitance data, and thus it may be determined that the mobile terminal is not currently in the pocket mode. The second fluctuation trend can also be presented by using a variation curve of the capacitance data, so that whether the second fluctuation trend is matched with the first fluctuation trend can be determined by comparing the similarity of the two curves, and whether the mobile terminal is in the pocket mode can be judged.
In some embodiments, the touch screen may also report the collected real-time capacitance data to the mobile terminal, and the mobile terminal obtains a second fluctuation trend of the capacitance data between channels of the touch screen and determines whether the second fluctuation trend matches the first fluctuation trend, so as to determine whether the mobile terminal is currently in the pocket mode according to a matching result, and thus, the mobile terminal may determine whether to allow the screen to be lit.
Therefore, in the black screen standby state, whether the current capacitance data accords with the regularity presented by the capacitance data in the pocket mode or not is determined by comparing the fluctuation trend of the detected real-time capacitance data with the fluctuation trend of the capacitance data in the pocket mode which is stored in advance. If the mobile terminal is in the pocket or the bag, the probability that the mobile terminal is in the pocket or the bag is high, the possibility that the user uses the mobile terminal is low, and therefore the influence on the user is low when the mobile terminal is kept in the black screen standby state. Therefore, the mobile terminal can be prohibited from being turned on, so that power consumption can be saved.
Step S230: and when the mobile terminal is in the pocket mode, the mobile terminal is prohibited from being switched from the black screen standby state to the bright screen state.
In the embodiment of the present application, step S230 may refer to the contents of the foregoing embodiments, and is not described herein again.
In a specific embodiment, please refer to fig. 11, and fig. 11 shows an overall flowchart of the terminal control method provided in the present application. The method specifically comprises the following steps:
step S310: and acquiring capacitance data of a preset channel of the touch screen in the pocket mode, and storing the capacitance data in the mobile terminal or the touch screen firmware.
The touch screen firmware can be understood as a storage space of the touch screen. The preset channel may be a channel preset to be detected. The channel may be a part of the channel of the touch screen or may be the whole channel of the touch screen.
Step S320: the mobile terminal judges whether the mobile terminal is in a black screen standby state or not.
Step S330: and if so, starting a black screen false touch prevention detection function of the touch screen.
The function of detecting the black screen false touch is to determine whether the mobile terminal is in the pocket mode or not through capacitance data of the touch screen, and when the mobile terminal is in the pocket mode, the mobile terminal is not allowed to be on, so that the black screen false touch of the mobile terminal is prevented. For a detailed description, reference may be made to the foregoing embodiments.
Step S340: if not, the black screen false touch prevention detection function of the touch screen is not started, and the process is ended.
Step S350: when the black screen false touch prevention detection function of the touch screen is started, the touch screen detects the current capacitance data of the preset channel at regular time.
Step S360: the touch screen judges whether the current capacitance data average value falls within the average change threshold of the stored pocket mode capacitance data.
Step S370: if yes, judging that the current mobile terminal is in a pocket mode
Step S380: if not, judging that the current mobile terminal is not in the pocket mode, and ending the process.
Step S390: and when the current mobile terminal is judged to be in the pocket mode, the touch screen informs the mobile terminal through the interrupt function.
The flag bit in the pocket mode may be reported to the mobile terminal. For example, the value of the flag bit in the pocket mode may be 1, and the value of the flag bit in the pocket mode may be 0.
Step S400: the mobile terminal acquires a flag bit in a pocket mode reported by the touch screen.
Step S410: and the mobile terminal judges not to start the AOD mode according to the zone bit, or judges not to allow the screen to be lightened according to the zone bit. Namely, the mobile terminal is prohibited from being switched from the black screen standby state to the bright screen state.
In another specific embodiment, the above determining process of the pocket mode may also be performed by a central processing unit of the mobile terminal. Specifically, please refer to fig. 12, and fig. 12 is a schematic overall flowchart illustrating a terminal control method provided in the present application. Can include the following steps:
step S500: and acquiring capacitance data of a preset channel of the touch screen in the pocket mode, and storing the capacitance data in the mobile terminal or the touch screen firmware.
The touch screen firmware can be understood as a storage space of the touch screen. The preset channel may be a channel preset to be detected. The channel may be a part of the channel of the touch screen or may be the whole channel of the touch screen.
Step S510: the mobile terminal judges whether the mobile terminal is in a black screen standby state or not.
Step S520: and if so, starting a black screen false touch prevention detection function of the touch screen.
The function of detecting the black screen false touch is to determine whether the mobile terminal is in the pocket mode or not through capacitance data of the touch screen, and when the mobile terminal is in the pocket mode, the mobile terminal is not allowed to be on, so that the black screen false touch of the mobile terminal is prevented. For a detailed description, reference may be made to the foregoing embodiments.
Step S530: if not, the black screen false touch prevention detection function of the touch screen is not started, and the process is ended.
Step S540: when the black screen false touch prevention detection function of the touch screen is started, the touch screen detects the current capacitance data of the preset channel at regular time.
Step S550: and the touch screen reports the detected capacitance data to the mobile terminal.
Step S560: and the mobile terminal judges whether the current capacitance data average value falls within the average change threshold of the stored pocket mode capacitance data.
Step S570: if yes, judging that the current mobile terminal is in a pocket mode
Step S580: if not, judging that the current mobile terminal is not in the pocket mode, and ending the process.
Step S590: and when the current mobile terminal is judged to be in the pocket mode, not starting the AOD mode or not allowing the screen to be lightened. Namely, the mobile terminal is prohibited from being switched from the black screen standby state to the bright screen state.
According to the terminal control method provided by the embodiment of the application, when the mobile terminal is in a black screen standby state, whether the mobile terminal is in a pocket mode is judged by acquiring the capacitance data of the touch screen of the mobile terminal and according to whether the capacitance data is matched with the preset capacitance data, wherein the pocket mode is a mode in which the probability that the mobile terminal is in a pocket or a bag is larger than the preset probability. When the capacitance data is matched with the preset capacitance data, the mobile terminal can be judged to be in the pocket mode, and therefore the mobile terminal can be forbidden to be switched from the black screen standby state to the bright screen state. Therefore, the condition that the screen is touched by mistake in the pocket of the mobile terminal can be avoided, and the power consumption of the mobile terminal is saved. Meanwhile, a hole does not need to be dug on the screen to install the proximity sensor, and therefore the installation cost of the proximity sensor and the screen area occupied by the dug hole are saved.
Referring to fig. 13, a block diagram of a terminal control device 400 according to an embodiment of the present disclosure is shown. The terminal control device 400 includes: an acquisition module 410, a determination module 420, and an execution module 430. The obtaining module 410 is configured to obtain capacitance data of a touch screen of the mobile terminal when the mobile terminal is in a black screen standby state; the determining module 420 is configured to determine whether the mobile terminal is in a pocket mode according to the capacitance data, where the pocket mode is a mode in which a probability that the mobile terminal is in a pocket or a bag is greater than a preset probability; the executing module 430 is configured to prohibit the mobile terminal from being switched from a black screen standby state to a bright screen state when the mobile terminal is in the pocket mode.
In some embodiments, the determining module 420 may include: the data matching unit is used for judging whether the capacitance data is matched with preset capacitance data or not; the mode determination unit is used for determining that the mobile terminal is in the pocket mode when the capacitance data is matched with the preset capacitance data.
In some embodiments, the terminal control device 400 may further include: the reference data acquisition module is used for acquiring reference capacitance data of a touch screen of the mobile terminal when the mobile terminal is in the pocket mode; a preset capacitance determining module for determining preset capacitance data corresponding to the pocket mode based on the reference capacitance data; and the preset capacitance storage module is used for storing the preset capacitance data.
Further, in some embodiments, the preset capacitance determining module may be specifically configured to: and determining a threshold range of the reference capacitance data based on the reference capacitance data as preset capacitance data corresponding to the pocket mode.
In this embodiment, as an implementation manner, the data matching unit may be specifically configured to: acquiring an average value of the capacitance data; judging whether the average value meets the threshold range; and when the average value meets the threshold range, judging that the capacitance data is matched with the preset capacitance data.
In this embodiment, as another implementation manner, the data matching unit may be specifically configured to: acquiring target capacitance data which meets the threshold range in the capacitance data; determining the proportion of the target capacitance data; judging whether the proportion is larger than a preset proportion or not; and when the proportion is larger than a preset proportion, judging that the capacitance data is matched with preset capacitance data.
In other embodiments, the preset capacitance determining module may be further specifically configured to: and determining a first fluctuation trend of the reference capacitance data among channels of the touch screen based on the reference capacitance data, wherein the first fluctuation trend is used as preset capacitance data corresponding to the pocket mode.
In this embodiment, as an implementation manner, the data matching unit may be specifically configured to: acquiring a second fluctuation trend of the capacitance data among channels of the touch screen; judging whether the second fluctuation trend is matched with the first fluctuation trend; and when the second fluctuation trend is matched with the first fluctuation trend, judging that the capacitance data is matched with preset capacitance data.
In some embodiments, the obtaining module 410 may be specifically configured to: and acquiring the capacitance data of the touch screen of the mobile terminal at intervals of preset time, wherein the preset time is longer than a specified time, and the specified time is used for acquiring the capacitance data of the touch screen at intervals of the specified time when the mobile terminal is in a screen-on state.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other type of coupling.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
According to the scheme, when the mobile terminal is in a black screen standby state, whether the mobile terminal is in a pocket mode or not is judged according to capacitance data of a touch screen of the mobile terminal, wherein the pocket mode is a mode in which the probability that the mobile terminal is in a pocket or a bag is larger than a preset probability. When it is determined that the mobile terminal is in the pocket mode, the mobile terminal may be prohibited from switching from the black standby state to the bright state. Therefore, the condition that the screen is touched by mistake in the pocket of the mobile terminal can be avoided, and the power consumption of the mobile terminal is saved.
Referring to fig. 14, a block diagram of a mobile terminal according to an embodiment of the present application is shown. The mobile terminal 100 may be a smart phone, a tablet computer, or other mobile terminal capable of running an application. The mobile terminal 100 in the present application may include one or more of the following components: the electronic device comprises a processor 110, a memory 120, a touch screen 130, a display screen 140, and one or more application programs, wherein the memory may include a system memory for storing various files of system data and system calls and the like of the electronic device, and a touch screen memory for storing a touch screen operating system and touch screen related usage files. The one or more applications may be stored in system memory or touch screen memory and configured to be executed by one or more processors, the one or more applications configured to perform the methods as described in the aforementioned method embodiments.
Processor 110 may include one or more processing cores. The processor 110 interfaces with various components throughout the mobile terminal 100 using various interfaces and lines, and performs various functions of the mobile terminal 100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 120 and invoking data stored in the memory 120. Alternatively, the processor 110 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 110 may integrate one or a combination of a Central Processing Unit (CPU) 111, a Graphics Processing Unit (GPU), a touch screen processor 112, a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 110, but may be implemented by a communication chip.
When the instructions stored in the cpu 111 are executed, the method applied to the cpu 111 is executed in the cpu 111. The instructions stored in the touch screen processor 112, when executed, perform methods applied to the touch screen processor 112 at the touch screen processor 112. For example, the central processing unit may be configured to receive capacitance data of the touch screen or a flag bit corresponding to the pocket mode, which is reported by the touch screen processor; the touch screen processor may be configured to perform the determination of the pocket mode.
The Memory 120 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 120 may be used to store instructions, programs, code sets, or instruction sets. The memory 120 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The storage data area may also store data created by the terminal 100 in use, such as a phonebook, audio-video data, chat log data, and the like.
The touch screen 130 may collect touch operations of a user (e.g., operations of a user on or near the touch screen 130 using a finger, a stylus, or any other suitable object or accessory) thereon or nearby, and drive the corresponding connection device according to a preset program. Optionally, the touch screen 130 may include a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. Alternatively, the touch detection device may be a capacitive touch sensor for detecting capacitance data on the touch screen 130. Touch screen 130 may include M + N (M columns and N rows) capacitive touch sensors. The M + N interleaved sensors form M x N capacitive sensing points, and when a conductive object (e.g., a finger) approaches the touch screen, the capacitance data changes accordingly.
The display screen 140 may be used to display information entered by a user, information provided to a user, and various graphical user interfaces of the electronic device 100, which may be composed of graphics, text, icons, numbers, video, and any combination thereof. In some embodiments, the touch screen 130 and the display screen 140 may be two independent components to implement the input and input functions of the mobile terminal, in which case the touch screen 130 may cover the display screen 140, and when the touch screen 130 detects a touch operation on or near the touch screen 130, the touch operation may be transmitted to the central processing unit 111 to determine the type of the touch event, and then the central processing unit 111 performs processing according to the type of the touch event, for example, controls the operation mode of the display screen 140 to be switched to the AOD mode. In other embodiments, the touch screen 130 and the display screen 140 may be integrated to implement the input and output functions of the mobile terminal.
Referring to fig. 15, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable medium 800 has stored therein a program code that can be called by a processor to execute the method described in the above-described method embodiments.
The computer-readable storage medium 800 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 800 includes a non-volatile computer-readable storage medium. The computer readable storage medium 800 has storage space for program code 810 to perform any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 810 may be compressed, for example, in a suitable form.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (12)

1. A terminal control method, characterized in that the method comprises:
when the mobile terminal is in a black screen standby state, acquiring capacitance data of a touch screen of the mobile terminal;
judging whether the mobile terminal is in a pocket mode or not according to the capacitance data, wherein the pocket mode is a mode in which the probability that the mobile terminal is in a pocket or a bag is greater than a preset probability;
and when the mobile terminal is in the pocket mode, prohibiting the mobile terminal from being switched from the black screen standby state to the bright screen state.
2. The method of claim 1, wherein the determining whether the mobile terminal is in the pocket mode according to the capacitance data comprises:
judging whether the capacitance data is matched with preset capacitance data or not;
and when the capacitance data is matched with the preset capacitance data, judging that the mobile terminal is in the pocket mode.
3. The method according to claim 2, wherein before the acquiring the capacitance data of the touch screen of the mobile terminal when the mobile terminal is in a black screen standby state, the method further comprises:
when the mobile terminal is in the pocket mode, acquiring reference capacitance data of a touch screen of the mobile terminal;
determining preset capacitance data corresponding to the pocket mode based on the reference capacitance data;
and storing the preset capacitance data.
4. The method of claim 3, wherein determining preset capacitance data corresponding to the pocket mode based on the reference capacitance data comprises:
and determining a threshold range of the reference capacitance data based on the reference capacitance data as preset capacitance data corresponding to the pocket mode.
5. The method of claim 4, wherein the determining whether the capacitance data matches preset capacitance data comprises:
acquiring an average value of the capacitance data;
judging whether the average value meets the threshold range;
and when the average value meets the threshold range, judging that the capacitance data is matched with the preset capacitance data.
6. The method of claim 4, wherein the determining whether the capacitance data matches preset capacitance data comprises:
acquiring target capacitance data which meets the threshold range in the capacitance data;
determining the proportion of the target capacitance data;
judging whether the proportion is larger than a preset proportion or not;
and when the proportion is larger than a preset proportion, judging that the capacitance data is matched with preset capacitance data.
7. The method of claim 3, wherein determining preset capacitance data corresponding to the pocket mode based on the reference capacitance data comprises:
and determining a first fluctuation trend of the reference capacitance data among channels of the touch screen based on the reference capacitance data, wherein the first fluctuation trend is used as preset capacitance data corresponding to the pocket mode.
8. The method of claim 7, wherein the determining whether the capacitance data matches preset capacitance data comprises:
acquiring a second fluctuation trend of the capacitance data among channels of the touch screen;
judging whether the second fluctuation trend is matched with the first fluctuation trend;
and when the second fluctuation trend is matched with the first fluctuation trend, judging that the capacitance data is matched with preset capacitance data.
9. The method according to any one of claims 1 to 8, wherein the acquiring capacitance data of the preset channel of the touch screen of the mobile terminal comprises:
and acquiring the capacitance data of the touch screen of the mobile terminal at intervals of preset time, wherein the preset time is longer than a specified time, and the specified time is used for acquiring the capacitance data of the touch screen at intervals of the specified time when the mobile terminal is in a screen-on state.
10. A terminal control apparatus, characterized in that the apparatus comprises:
the mobile terminal comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring capacitance data of a touch screen of the mobile terminal when the mobile terminal is in a black screen standby state;
the judging module is used for judging whether the mobile terminal is in a pocket mode or not according to the capacitance data, wherein the pocket mode is a mode that the probability that the mobile terminal is in a pocket or a bag is larger than a preset probability;
and the execution module is used for forbidding the mobile terminal to be switched from a black screen standby state to a bright screen state when the mobile terminal is in the pocket mode.
11. A mobile terminal, comprising:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to perform the method of any of claims 1-9.
12. A computer-readable storage medium, having stored thereon program code that can be invoked by a processor to perform the method according to any one of claims 1 to 9.
CN202010043312.6A 2020-01-15 2020-01-15 Terminal control method and device, mobile terminal and storage medium Active CN111290690B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010043312.6A CN111290690B (en) 2020-01-15 2020-01-15 Terminal control method and device, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010043312.6A CN111290690B (en) 2020-01-15 2020-01-15 Terminal control method and device, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN111290690A true CN111290690A (en) 2020-06-16
CN111290690B CN111290690B (en) 2021-12-14

Family

ID=71023394

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010043312.6A Active CN111290690B (en) 2020-01-15 2020-01-15 Terminal control method and device, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN111290690B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114375027A (en) * 2021-08-12 2022-04-19 荣耀终端有限公司 Method and device for reducing power consumption
CN115016629A (en) * 2021-11-19 2022-09-06 荣耀终端有限公司 Method and device for preventing false touch
WO2022222662A1 (en) * 2021-04-23 2022-10-27 Oppo广东移动通信有限公司 Stylus, stylus system, and control method for stylus

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202285118U (en) * 2011-06-15 2012-06-27 比亚迪股份有限公司 Positioning device for self-capacitance touch screen and touch control system
CN103095915A (en) * 2013-01-07 2013-05-08 惠州Tcl移动通信有限公司 Method of preventing faulty operation based on touch screen mobile phone and mobile phone
CN103677471A (en) * 2013-11-27 2014-03-26 上海天奕达电子科技有限公司 Misoperation processing method and system for touch screen terminals
CN103970381A (en) * 2013-02-04 2014-08-06 联想(北京)有限公司 Capacitive-type touch screen and information processing method used for same
CN104007878A (en) * 2014-05-16 2014-08-27 广东欧珀移动通信有限公司 Method and device for preventing error operation on touch screen terminal
CN105824479A (en) * 2015-08-28 2016-08-03 维沃移动通信有限公司 Terminal touch button implementation method and terminal
CN106101453A (en) * 2016-08-19 2016-11-09 青岛海信移动通信技术股份有限公司 A kind of method controlling screen and terminal
CN106325623A (en) * 2015-06-26 2017-01-11 小米科技有限责任公司 Method and apparatus for monitoring touch on touch screen and terminal device
CN107562366A (en) * 2017-09-28 2018-01-09 珠海普林芯驰科技有限公司 Gesture identification method, computer installation and computer-readable recording medium
CN108173987A (en) * 2017-12-25 2018-06-15 广东欧珀移动通信有限公司 A kind of button management method, button managing device and mobile terminal
CN109407871A (en) * 2017-08-16 2019-03-01 西安中兴新软件有限责任公司 It is a kind of to identify the method and device of Riddled Condition, electronic equipment
CN109655921A (en) * 2018-11-30 2019-04-19 歌尔股份有限公司 A kind of electronic equipment and its enter water detection method

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202285118U (en) * 2011-06-15 2012-06-27 比亚迪股份有限公司 Positioning device for self-capacitance touch screen and touch control system
CN103095915A (en) * 2013-01-07 2013-05-08 惠州Tcl移动通信有限公司 Method of preventing faulty operation based on touch screen mobile phone and mobile phone
CN103970381A (en) * 2013-02-04 2014-08-06 联想(北京)有限公司 Capacitive-type touch screen and information processing method used for same
CN103677471A (en) * 2013-11-27 2014-03-26 上海天奕达电子科技有限公司 Misoperation processing method and system for touch screen terminals
CN104007878A (en) * 2014-05-16 2014-08-27 广东欧珀移动通信有限公司 Method and device for preventing error operation on touch screen terminal
CN106325623A (en) * 2015-06-26 2017-01-11 小米科技有限责任公司 Method and apparatus for monitoring touch on touch screen and terminal device
CN105824479A (en) * 2015-08-28 2016-08-03 维沃移动通信有限公司 Terminal touch button implementation method and terminal
CN106101453A (en) * 2016-08-19 2016-11-09 青岛海信移动通信技术股份有限公司 A kind of method controlling screen and terminal
CN109407871A (en) * 2017-08-16 2019-03-01 西安中兴新软件有限责任公司 It is a kind of to identify the method and device of Riddled Condition, electronic equipment
CN107562366A (en) * 2017-09-28 2018-01-09 珠海普林芯驰科技有限公司 Gesture identification method, computer installation and computer-readable recording medium
CN108173987A (en) * 2017-12-25 2018-06-15 广东欧珀移动通信有限公司 A kind of button management method, button managing device and mobile terminal
CN109655921A (en) * 2018-11-30 2019-04-19 歌尔股份有限公司 A kind of electronic equipment and its enter water detection method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022222662A1 (en) * 2021-04-23 2022-10-27 Oppo广东移动通信有限公司 Stylus, stylus system, and control method for stylus
CN114375027A (en) * 2021-08-12 2022-04-19 荣耀终端有限公司 Method and device for reducing power consumption
CN115016629A (en) * 2021-11-19 2022-09-06 荣耀终端有限公司 Method and device for preventing false touch

Also Published As

Publication number Publication date
CN111290690B (en) 2021-12-14

Similar Documents

Publication Publication Date Title
CN111290690B (en) Terminal control method and device, mobile terminal and storage medium
EP3336678B1 (en) Method and electronic device for preventing touch button from being false triggered
CN106775084B (en) A kind of false-touch prevention method, device and mobile terminal of touch screen
US9671893B2 (en) Information processing device having touch screen with varying sensitivity regions
CN105573538B (en) Sliding broken line compensation method and electronic equipment
US10466849B2 (en) Method and terminal for preventing unintentional triggering of a touch key and storage medium
CN105183284A (en) Short message viewing method and user terminal
WO2017197636A1 (en) Method for identifying palm rejection operation and electronic device
CN108366169B (en) Notification message processing method and mobile terminal
CN111290794B (en) Screen awakening method and device, storage medium and mobile terminal
CN107357458B (en) Touch key response method and device, storage medium and mobile terminal
CN107390923B (en) Screen false touch prevention method and device, storage medium and terminal
CN116257836B (en) Fingerprint unlocking method and terminal
JP2017510879A (en) Method and terminal device for processing a terminal device
EP2966842A1 (en) Method and system for turning off alarm of mobile terminal
CN108415646B (en) Touch function setting method and device
CN111078108A (en) Screen display method and device, storage medium and mobile terminal
CN110647277A (en) Control method and terminal equipment
CN107179849B (en) Terminal, input control method thereof, and computer-readable storage medium
WO2020078344A1 (en) Method for identifying special-shaped touch, terminal and storage medium
CN111163347B (en) Bullet screen information processing method and electronic equipment
CN110908559A (en) Display method and device of shortcut application panel, electronic equipment and storage medium
CN107741826B (en) Browsing history information calling method and device and mobile terminal
CN111651082B (en) Touch screen unlocking method and device, electronic equipment and storage medium
CN103677408A (en) Mistaken touch preventing method and mobile terminal

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
GR01 Patent grant
GR01 Patent grant