Control method and device for capacitive touch screen terminal
Technical Field
The embodiment of the invention relates to the technical field of terminal control, in particular to a control method and device for a capacitive touch screen terminal.
Background
A user can contact friends and relatives through a smart terminal (e.g., typically a smart phone or a tablet), and can perform entertainment and shopping through installing application software with various functions, such as game software, shopping software, video software, etc., and thus people's lives cannot be separated from the smart terminal.
Most of the existing intelligent terminals adopt a touch screen technology, and various trigger instructions are generated by clicking or sliding a finger of a user on the touch screen, so as to realize a control function.
However, when the ambient temperature and the ambient electric field change, drift of the touch screen is caused, which causes inaccurate detection of the touch position and even damage to the touch screen, and thus the user cannot use the mobile phone.
Disclosure of Invention
The embodiment of the invention provides a control method and a control device for a capacitive touch screen terminal, which are used for solving the problem that the terminal cannot be used due to the drift of a terminal touch screen or the operation failure of the terminal touch screen.
In a first aspect, an embodiment of the present invention provides a method for controlling a capacitive touch screen terminal, where the method includes:
collecting a capacitance value of a terminal touch screen;
if the capacitance value is not within the preset capacitance value range within the continuous preset time period, switching the terminal to a key control mode;
generating an operation icon on a terminal display interface;
and when the operation of triggering the key is detected, key information corresponding to the operation is acquired, and the action of the operation icon is controlled according to the key information.
Further, the key information comprises key identification and pressing parameters;
the action of controlling the operation icon according to the key information comprises the following steps:
controlling the moving direction of the operation icon according to the key identification;
and controlling the moving distance of the operation icon according to the pressing parameters.
Further, the compression parameter comprises a compression time;
the controlling the moving distance of the operation icon according to the pressing parameter comprises:
when the pressing time is less than the preset time, controlling the operation icon to move by a unit distance in the moving direction corresponding to the key identification;
and when the pressing time is longer than the preset time, controlling the operation icon to move according to the preset speed in the moving direction corresponding to the key identification within the pressing time.
Further, if the capacitance value is not within the preset capacitance value range within the continuous preset time period, switching the terminal to the key control mode includes:
and if the capacitance value is not in the preset capacitance value range and the temperature of the terminal is not in the preset temperature range within the continuous preset time period, switching the terminal to a key control mode.
Further, if the capacitance value is not within the preset capacitance value range within the continuous preset time period, switching the terminal to the key control mode includes:
and if the capacitance value is not in the preset capacitance value range within the continuous preset time period and the magnetic field intensity of the environment where the terminal is located reaches the preset magnetic field intensity, switching the terminal to a key control mode.
In a second aspect, an embodiment of the present invention further provides a control device for a capacitive touch screen terminal, where the control device includes:
the acquisition module is used for acquiring the capacitance value of the terminal touch screen;
the mode switching module is used for switching the terminal to a key control mode if the capacitance value is not in a preset capacitance value range within a continuous preset time period;
the display module is used for generating an operation icon on a terminal display interface;
and the control module is used for acquiring key information corresponding to the operation when the operation of triggering the key is detected, and controlling the action of the operation icon according to the key information.
Further, the key information comprises key identification and pressing parameters;
the action of controlling the operation icon according to the key information comprises the following steps:
controlling the moving direction of the operation icon according to the key identification;
and controlling the moving distance of the operation icon according to the pressing parameters.
Further, the compression parameter comprises a compression time; the controlling the moving distance of the operation icon according to the pressing parameter comprises:
when the pressing time is less than the preset time, controlling the operation icon to move by a unit distance in the moving direction corresponding to the key identification;
and when the pressing time is longer than the preset time, controlling the operation icon to move according to the preset speed in the moving direction corresponding to the key identification within the pressing time.
Further, the mode switching module is specifically configured to:
and if the capacitance value is not in the preset capacitance value range and the temperature of the terminal is not in the preset temperature range within the continuous preset time period, switching the terminal to a key control mode.
Further, the mode switching module is specifically configured to:
and if the capacitance value is not in the preset capacitance value range within the continuous preset time period and the magnetic field intensity of the environment where the terminal is located reaches the preset magnetic field intensity, switching the terminal to a key control mode.
According to the technical scheme of the embodiment of the invention, the capacitance value of the terminal touch screen is acquired; if the capacitance value is not within the preset capacitance value range within the continuous preset time period, switching the terminal to a key control mode; generating an operation icon on a terminal display interface; when the operation of triggering the key is detected, key information corresponding to the operation is obtained, and the action of the operation icon is controlled according to the key information, so that the problem that the terminal cannot be used due to the drift of a terminal touch screen or the operation failure of the terminal touch screen is solved, and the terminal which cannot be timely repaired can be temporarily maintained to be used in an emergency.
Drawings
Fig. 1 is a flowchart of a control method of a capacitive touch screen terminal according to a first embodiment of the present invention;
fig. 2 is a flowchart of a control method of a capacitive touch screen terminal according to a second embodiment of the present invention;
fig. 3 is a flowchart of a control method of a capacitive touch screen terminal according to a third embodiment of the present invention;
fig. 4 is a flowchart of a control method of a capacitive touch screen terminal according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a control device of a capacitive touch screen terminal according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a control method of a capacitive touch screen terminal according to an embodiment of the present invention, where the embodiment is applicable to a situation where effective control of a terminal can still be achieved when a terminal touch screen drifts or the terminal touch screen fails to operate, the method may be implemented by a control device of the capacitive touch screen terminal, the device may be implemented in a software and/or hardware manner, and the device may be integrated in any terminal device with a capacitive touch screen, for example, a typical portable user terminal device, such as a smart phone or a tablet computer. The method specifically comprises the following steps:
and 110, collecting the capacitance value of the terminal touch screen.
When the touch screen works normally, when the fingers of a user do not touch the capacitive touch screen of the terminal, the range of the collected capacitance value of the capacitive touch screen of the terminal is a first preset capacitance value range. Due to the influence of temperature or magnetic field intensity and the like, when the capacitive touch screen works abnormally, when the fingers of a user do not touch the capacitive touch screen of the terminal, the range of the acquired capacitance value of the capacitive touch screen exceeds the first preset capacitance value range.
And 120, if the capacitance value is not within the preset capacitance value range within the continuous preset time period, switching the terminal to a key control mode.
The preset capacitance range may be a first preset capacitance range. If the acquired capacitance value of the terminal touch screen is not within the first preset capacitance value range within the continuous preset time period, which indicates that the capacitive touch screen works abnormally, the terminal is switched to a key control mode, that is, a user can input a trigger instruction to the terminal in a key mode, so as to realize various control functions.
In the prior art, when a finger of a user touches a capacitive touch screen of a terminal, a coupling capacitor is formed between the user and the surface of the touch screen due to an electric field of a human body, so that a capacitance value at a touch point is affected. For example, a self-capacitance touch screen in a projected capacitive touch screen, where the self-capacitance is a ground capacitance of an electrode, and when a finger of a user touches a capacitive touch screen of a terminal, a capacitance formed by the finger and the surface of the touch screen is superimposed on the ground capacitance of the electrode, so that a collected capacitance value of the terminal touch screen is increased; when a finger of a user touches the capacitive touch screen of the terminal, the coupling capacitance between the two electrodes near a touch point is affected, so that the coupling capacitance is reduced, namely, the acquired capacitance value of the terminal touch screen is reduced. During touch detection, the capacitive touch screen can sequentially and respectively detect the transverse electrode arrays and the longitudinal electrode arrays, and the finger touch position is determined according to the change of capacitance values before and after finger touch. When the touch screen works normally, when a finger of a user touches the capacitive touch screen of the terminal, the range of the collected capacitance value of the capacitive touch screen of the terminal is a second preset capacitance value range. Due to the influence of temperature or magnetic field intensity and the like, the variation of the capacitance value is related to the temperature value and the magnetic field front value, when the capacitive touch screen works abnormally, when a finger of a user does not touch the capacitive touch screen of the terminal, the range of the acquired capacitance value of the capacitive touch screen may be a second preset capacitance value range, so that the capacitive touch screen generates a touch instruction, and thus, a condition of a dot disorder is generated.
For the state of the art, whether there is pressure may be detected by a pressure sensor provided in the terminal to determine whether the user touches the capacitive touch screen. If a pressure value is not detected on the touch screen within a continuous first preset time period and the capacitance value is not within a first preset capacitance value range, determining that a user does not touch the capacitive touch screen, and if the situation indicates that the capacitive touch screen is abnormal, such as a random point, and the like, the terminal is switched to a key control mode, wherein the pressure value is detected through a pressure sensor arranged in the terminal; and if the pressure value is detected on the touch screen within the second preset time period continuously and the capacitance value is not within the second preset capacitance value range, determining that the user touches the capacitive touch screen, and if the capacitive touch screen works abnormally, switching the terminal to a key control mode.
And step 130, generating an operation icon on a terminal display interface.
In the key control mode, the terminal display interface generates an operation icon, which may be in the form of an arrow, a mouse, or the like, and is used to determine the position of the current operation.
And 140, when the operation of triggering the key is detected, obtaining key information corresponding to the operation, and controlling the action of the operation icon according to the key information.
When a user presses different keys of the terminal, the terminal can detect the operation of the trigger key, acquire key information corresponding to the operation and control the action of the operation icon according to the key information. And under the key control mode, the terminal can be switched from the key control mode to the touch operation mode when the detected key operation meets the preset key information.
According to the technical scheme of the embodiment, the capacitance value of the terminal touch screen is acquired; if the capacitance value is not within the preset capacitance value range within the continuous preset time period, switching the terminal to a key control mode; generating an operation icon on a terminal display interface; when the operation of triggering the key is detected, key information corresponding to the operation is obtained, and the action of the operation icon is controlled according to the key information, so that the problem that the terminal cannot be used due to the drift of a terminal touch screen or the operation failure of the terminal touch screen is solved, and the terminal which cannot be timely repaired can be temporarily maintained to be used in an emergency.
Example two
Fig. 2 is a flowchart of a control method of a capacitive touch screen terminal according to a second embodiment of the present invention, where the present embodiment is optimized based on the above embodiment, specifically, the key information includes a key identifier and a pressing parameter; the action of controlling the operation icon according to the key information comprises the following steps: controlling the moving direction of the operation icon according to the key identification; and controlling the moving distance of the operation icon according to the pressing parameters. Correspondingly, the method of the embodiment includes:
and step 210, collecting the capacitance value of the terminal touch screen.
Step 220, if the capacitance value is not within the preset capacitance value range within the continuous preset time period, switching the terminal to a key control mode.
And step 230, generating an operation icon on a terminal display interface.
And 240, when the operation of triggering the key is detected, acquiring a key identifier and a pressing parameter corresponding to the operation.
The method includes the steps of obtaining key identification and pressing parameters corresponding to operation, wherein different key identifications correspond to different keys installed on a terminal, and the pressing parameters can be the times and interval time of pressing the keys by a user. For a smartphone, the key identification may include a volume up key, a volume down key, and a power key.
And 250, controlling the moving direction of the operation icon according to the key identification, and controlling the moving distance of the operation icon according to the pressing parameter.
And controlling the moving direction of the operation icon according to the key identifier so as to enable the operation icon to point to other menu items. For example, when the user presses a volume up key, the control operation icon moves upwards; when a user presses a volume down key, the operation icon is controlled to move downwards; when a user presses a volume up key and a power key, the operation icon is controlled to move leftwards; and when the user presses the volume down key and the power key, the control operation icon moves to the right. And controlling the moving distance of the operation icon according to the pressing parameter so that the operation icon can quickly point to the target menu item.
Preferably, the compression parameters include compression time; the controlling the moving distance of the operation icon according to the pressing parameter comprises: when the pressing time is less than the preset time, controlling the operation icon to move by a unit distance in the moving direction corresponding to the key identification; and when the pressing time is longer than the preset time, controlling the operation icon to move according to the preset speed in the moving direction corresponding to the key identification within the pressing time.
Therefore, the preset speed movement can be set according to the browsing speed of the user and the running speed of the terminal, so that the operation icon can quickly point to other menu items and the like which are far away from each other, and the user can conveniently and quickly browse and inquire the required content.
The technical scheme of the embodiment provides a control method of a capacitive touch screen terminal, and the embodiment controls the moving direction of an operation icon according to a key identifier on the basis of the embodiment; according to the pressing parameters, the moving distance of the operation icon is controlled, the functions of the keys are enriched, a user can realize more functions through a small number of keys on the terminal, and the problem that the terminal cannot be used due to terminal touch screen drifting or terminal touch screen operation failure is solved.
EXAMPLE III
Fig. 3 is a flowchart of a control method of a capacitive touch screen terminal according to a third embodiment of the present invention, where the present embodiment is optimized based on the foregoing embodiments, and specifically, if the capacitance value is not within the preset capacitance value range in a continuous preset time period, switching the terminal to a key control mode includes: and if the capacitance value is not in the preset capacitance value range and the temperature of the terminal is not in the preset temperature range within the continuous preset time period, switching the terminal to a key control mode. Correspondingly, the method of the embodiment includes:
and step 310, collecting the capacitance value of the terminal touch screen.
And 320, if the capacitance value is not in a preset capacitance value range and the temperature of the terminal is not in a preset temperature range within a continuous preset time period, switching the terminal to a key control mode.
If the temperature of the capacitive touch screen exceeds the normal working temperature range, the capacitive touch screen is easy to drift, and the touch screen can be directly damaged by continuously using the capacitive touch screen at the moment, so that the capacitive touch screen needs to be switched to a key control mode. The temperature sensor is arranged in the terminal to detect the temperature of the capacitive touch screen, and if the capacitance value is not in the preset capacitance value range and the temperature of the terminal is not in the preset temperature range within a continuous preset time period, the terminal is switched to a key control mode; and if the temperature of the terminal exceeds the highest temperature of the preset temperature range, switching the terminal to a key control mode, and prompting a user to close some unnecessary application programs. Because the operation of the key control mode is simpler than that of the touch operation mode, the terminal generates less heat, and the terminal touch screen can be kept in use while being protected. Under the key control mode, if the temperature of the terminal is detected to be within the preset temperature range every other preset detection time period, the terminal is switched from the key control mode to the touch operation mode, so that when the temperature reaches the preset temperature, the capacitive touch screen can normally work, the working mode is timely switched, and the use by a user is facilitated.
And step 330, generating an operation icon on a terminal display interface.
And 340, when the operation of triggering the key is detected, obtaining key information corresponding to the operation, and controlling the action of the operation icon according to the key information.
The technical scheme of the embodiment provides a control method of a capacitive touch screen terminal, and on the basis of the embodiment, if a capacitance value is not in a preset capacitance value range and the temperature of the terminal is not in a preset temperature range within a continuous preset time period, the terminal is switched to a key control mode, so that the problem that the terminal cannot be used due to terminal touch screen drift or terminal touch screen operation failure is solved.
Example four
Fig. 4 is a flowchart of a control method of a capacitive touch screen terminal according to a fourth embodiment of the present invention, where the embodiment is optimized based on the foregoing embodiment, and specifically, if the capacitance value is not within the preset capacitance value range in the continuous preset time period, switching the terminal to the key control mode includes: and if the capacitance value is not in the preset capacitance value range within the continuous preset time period and the magnetic field intensity of the environment where the terminal is located reaches the preset magnetic field intensity, switching the terminal to a key control mode. Correspondingly, the method of the embodiment includes:
and step 410, collecting the capacitance value of the terminal touch screen.
And 420, if the capacitance value is not in the preset capacitance value range and the magnetic field intensity of the environment where the terminal is located reaches the preset magnetic field intensity within the continuous preset time period, switching the terminal to a key control mode.
If the magnetic field intensity of the environment where the terminal is located is strong, the capacitive touch screen is prone to drifting, and at the moment, the touch screen can be directly damaged by continuously using the touch screen, so that the touch screen needs to be switched to a key control mode. Can set up earth magnetism sensor in the terminal to the magnetic field intensity of the environment that detection terminal is located, if in the continuous preset time quantum, the capacitance value is not in presetting the capacitance value within range, and the magnetic field intensity of the environment that the terminal is located reaches and presets magnetic field intensity, then switches the terminal to the button control mode, and can indicate near the user has strong magnetic field, need keep away from or place the terminal in safe place.
And 430, generating an operation icon on a terminal display interface.
Step 440, when the operation of triggering the key is detected, obtaining key information corresponding to the operation, and controlling the action of the operation icon according to the key information.
The technical scheme of the embodiment provides a control method of a capacitive touch screen terminal, and on the basis of the embodiment, if a capacitance value is not within a preset capacitance value range and the magnetic field strength of the environment where the terminal is located reaches a preset magnetic field strength within a continuous preset time period, the terminal is switched to a key control mode, so that the problem that the terminal cannot be used due to terminal touch screen drift or terminal touch screen operation failure is solved.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a control apparatus of a capacitive touch screen terminal according to a fifth embodiment of the present invention, where the apparatus is suitable for executing a control method of a capacitive touch screen terminal according to a fifth embodiment of the present invention, and the apparatus may be integrated in any terminal device with a capacitive touch screen, for example, a typical portable user terminal device, such as a smart phone or a tablet computer. As shown in fig. 5, the apparatus includes an acquisition module 510, a mode switching module 520, a display module 530, and a control module 540.
The acquisition module 510 is used for acquiring a capacitance value of the terminal touch screen; a mode switching module 520, configured to switch the terminal to a key control mode if the capacitance value is not within a preset capacitance value range within a continuous preset time period; the display module 530 is used for generating an operation icon on a terminal display interface; the control module 540 is configured to, when an operation of triggering a key is detected, obtain key information corresponding to the operation, and control an action of the operation icon according to the key information.
According to the technical scheme of the embodiment, the capacitance value of the terminal touch screen is acquired; if the capacitance value is not within the preset capacitance value range within the continuous preset time period, switching the terminal to a key control mode; generating an operation icon on a terminal display interface; when the operation of triggering the key is detected, key information corresponding to the operation is obtained, and the action of the operation icon is controlled according to the key information, so that the problem that the terminal cannot be used due to the drift of a terminal touch screen or the operation failure of the terminal touch screen is solved, and a user can temporarily maintain the use of the terminal which cannot be timely repaired in an emergency.
Preferably, the key information includes a key identifier and a pressing parameter; the action of controlling the operation icon according to the key information comprises the following steps: controlling the moving direction of the operation icon according to the key identification; and controlling the moving distance of the operation icon according to the pressing parameters.
Preferably, the compression parameters include compression time; the controlling the moving distance of the operation icon according to the pressing parameter comprises: when the pressing time is less than the preset time, controlling the operation icon to move by a unit distance in the moving direction corresponding to the key identification; and when the pressing time is longer than the preset time, controlling the operation icon to move according to the preset speed in the moving direction corresponding to the key identification within the pressing time.
Preferably, the mode switching module 520 is specifically configured to: and if the capacitance value is not in the preset capacitance value range and the temperature of the terminal is not in the preset temperature range within the continuous preset time period, switching the terminal to a key control mode.
Preferably, the mode switching module 520 is specifically configured to: and if the capacitance value is not in the preset capacitance value range within the continuous preset time period and the magnetic field intensity of the environment where the terminal is located reaches the preset magnetic field intensity, switching the terminal to a key control mode.
The control device of the capacitive touch screen terminal can execute the control method of the capacitive touch screen terminal provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.