CN112486350A - Detection method and device for touch screen of mobile terminal, storage medium and mobile terminal - Google Patents

Detection method and device for touch screen of mobile terminal, storage medium and mobile terminal Download PDF

Info

Publication number
CN112486350A
CN112486350A CN202011344734.3A CN202011344734A CN112486350A CN 112486350 A CN112486350 A CN 112486350A CN 202011344734 A CN202011344734 A CN 202011344734A CN 112486350 A CN112486350 A CN 112486350A
Authority
CN
China
Prior art keywords
touch screen
mobile terminal
voltage
level
detection
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
CN202011344734.3A
Other languages
Chinese (zh)
Other versions
CN112486350B (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.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN202011344734.3A priority Critical patent/CN112486350B/en
Publication of CN112486350A publication Critical patent/CN112486350A/en
Application granted granted Critical
Publication of CN112486350B publication Critical patent/CN112486350B/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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/0418Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment

Abstract

The application discloses a detection method and device for a touch screen of a mobile terminal, a storage medium and the mobile terminal. According to the detection method of the mobile terminal touch screen, whether the pin voltage is located in the voltage range of the first level or not is judged firstly according to the pin voltage, and when the pin voltage is located in the voltage range of the first level, whether the pin voltage is located in the voltage range of the second level or not is further detected, so that the influence of voltage instability on a detection result during high-low level switching can be avoided. When the pin voltage is in the voltage range of the second level, the first character is output, and when the output first character is the same as the detection character in the detection character string, the touch screen is matched with the mobile terminal, so that the mobile terminal can automatically and dynamically identify the connected touch screen, and further the problems of abnormal functions, even burning out and the like caused by the fact that a user installs the touch screen which is not produced by a mobile terminal manufacturer are avoided.

Description

Detection method and device for touch screen of mobile terminal, storage medium and mobile terminal
Technical Field
The application belongs to the technical field of computers, and particularly relates to a detection method and device for a touch screen of a mobile terminal, a storage medium and the mobile terminal.
Background
At present, all mobile terminals adopt a full-face touch screen, so that a user can have more operation space on the mobile terminal with a smaller volume, and on the other hand, because the mobile terminal touch screen is located on the outermost side and is easy to be damaged due to collision, falling, water inflow and the like in daily use, the replaced touch screen is probably not produced by a mobile terminal manufacturer, corresponding parameters are not matched, and some problems occur in the use process of the user.
Therefore, a new detection method is needed to solve the problems of the prior art.
Disclosure of Invention
The embodiment of the application provides a detection method and device for a touch screen of a mobile terminal, a storage medium and the mobile terminal, which are used for solving the problem of detection result errors caused by unstable detection voltage when the mobile terminal detects the pin voltage of the touch screen and the pin high and low levels are converted.
The application provides a detection method of a touch screen of a mobile terminal, which comprises the following steps: acquiring a detection character string of the touch screen, wherein the detection character string is used for identifying whether the touch screen is matched with the mobile terminal or not, and comprises a plurality of detection characters; when the touch screen is lightened, acquiring the pin voltage of the touch screen; judging whether the voltage of the pin is within a voltage range of a first level or not according to the voltage of the pin; when the pin voltage is judged to be in a voltage range of a first level, detecting whether the pin voltage is in a voltage range of a second level; when the pin voltage is judged to be in the voltage range of the second level, outputting a first character; and when the output first character is judged to be the same as the detection character of the detection character string, determining that the touch screen is matched with the mobile terminal.
Optionally, after the step of determining whether the pin voltage is within a voltage range of a first level according to the pin voltage, the method includes the steps of: when the pin voltage is determined to be outside the voltage range of the first level, detection of whether the pin voltage is within the voltage range of the second level is stopped.
Optionally, after the step of detecting whether the pin voltage is in the voltage range of the second level when it is determined that the pin voltage is in the voltage range of the first level, the method includes the steps of: and outputting a second character when the pin voltage is out of the voltage range of the second level.
Optionally, after the step of outputting the second character when it is determined that the pin voltage is out of the voltage range of the second level, the method further includes the steps of: and when the second character is output, determining that the touch screen is not matched with the mobile terminal.
The application also provides a detection device of the touch screen of the mobile terminal, the detection device of the touch screen comprises: the mobile terminal comprises a detection character string acquisition unit, a detection character string acquisition unit and a detection character string processing unit, wherein the detection character string acquisition unit is used for acquiring a corresponding detection character string of the touch screen, the detection character string is used for identifying whether the touch screen is matched with the mobile terminal or not, and the detection character string comprises a plurality of detection characters; the voltage acquisition unit is used for acquiring the pin voltage of the touch screen when the touch screen is lightened; the first level unit is used for judging whether the pin voltage is in a voltage range of a first level or not according to the pin voltage; the second level unit is used for detecting whether the pin voltage is in a voltage range of a second level or not when the pin voltage is judged to be in the voltage range of the first level; the first character unit is used for outputting a first character when the pin voltage is judged to be in the voltage range of the second level; and the first determining unit is used for determining that the touch screen is matched with the mobile terminal when the output first character is judged to be the same as the detection character of the detection character string.
Optionally, the detection apparatus of the touch screen further includes: and the stopping unit is used for stopping detecting whether the pin voltage is positioned in the voltage range of the second level or not when judging that the pin voltage is positioned outside the voltage range of the first level.
Optionally, the detection apparatus of the touch screen further includes: and the second character unit is used for outputting a second character when the pin voltage is judged to be out of the voltage range of the second level.
Optionally, the detection apparatus of the touch screen further includes: and the second determining unit is used for determining that the touch screen is not matched with the mobile terminal when the second character is output.
The application further provides a storage medium, wherein a plurality of instructions are stored in the storage medium, and the instructions are suitable for being loaded by a processor to execute the detection method of the mobile terminal touch screen provided by any embodiment of the application.
The application further provides a terminal device, which comprises a processor and a memory, wherein the processor is electrically connected with the memory, the memory is used for storing instructions and data, and the processor is used for executing the steps of the detection method of the touch screen of the mobile terminal provided by any embodiment of the application.
According to the detection method of the touch screen of the mobile terminal, whether the voltage range of the first level is located or not is judged according to the pin voltage, when the pin voltage is located in the voltage range of the first level, whether the pin voltage is located in the voltage range of the second level or not is further detected, and therefore the influence of voltage instability on a detection result during high-low level switching can be avoided. When the pin voltage is in the voltage range of the second level, the first character is output, and when the output first character is the same as the detection character in the detection character string, the touch screen is matched with the mobile terminal, so that the mobile terminal can automatically and dynamically identify the connected touch screen, and further the problems of abnormal functions, even burning out and the like caused by the fact that a user installs the touch screen which is not produced by a mobile terminal manufacturer are avoided.
Drawings
The technical solutions and advantages of the present application will become apparent from the following detailed description of specific embodiments of the present application when taken in conjunction with the accompanying drawings.
Fig. 1 is a flowchart illustrating steps of a method for detecting a touch screen of a mobile terminal according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of a detection device for a touch screen of a mobile terminal according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of another mobile terminal according to an embodiment of the present application.
Detailed Description
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. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terminology used in the detailed description is for the purpose of describing particular embodiments only and is not intended to be limiting of the concepts of the present application. Unless the context clearly dictates otherwise, expressions used in the singular form encompass expressions in the plural form. In the present specification, it will be understood that terms such as "including," "having," and "containing" are intended to specify the presence of the features, integers, steps, acts, or combinations thereof disclosed in the specification, and are not intended to preclude the presence or addition of one or more other features, integers, steps, acts, or combinations thereof. Like reference symbols in the various drawings indicate like elements.
As shown in fig. 1, the present application provides a flow chart of steps of a method for detecting a touch screen of a mobile terminal, including:
step S110: and acquiring a corresponding detection character string of the touch screen.
In this step, the detection character string is used to identify whether the touch screen matches the mobile terminal, and the detection character string includes a plurality of detection characters. The detection character string further comprises a start character and an end character, wherein the start character and the end character are arranged at two ends of the detection characters and are used for detecting a transitional state when the touch screen is not lightened or the detection is not started.
Step S120: when the touch screen is lightened, the pin voltage of the touch screen is obtained.
Step S130: whether the pin voltage is within a voltage range of a first level is judged according to the pin voltage.
In this step, the first level includes a high level and a low level. In order to automatically identify the switching between high and low levels of the mobile terminal, the detection of a first character is avoided when a pin of a touch screen of the mobile terminal is switched between the high and low levels. The difference between the upper and lower thresholds of the high level of the pin is typically set to 20% of the high level of the touch screen pin voltage.
Step S140: detecting whether the pin voltage is within a voltage range of a second level.
In this step, when the pin voltage is within the voltage range of the first level, it is further detected whether the pin voltage is within the voltage range of the second level.
Step S141: ceasing the detection of whether the pin voltage is within a voltage range of a second level.
In this step, when the pin voltage is determined to be outside the voltage range of the first level, the detection of whether the pin voltage is within the voltage range of the second level is stopped.
Step S150: the first character is output.
In this step, when the pin voltage is within the voltage range of the second level, the first character is output. Typically, 10% of the difference between the upper and lower thresholds of the high level is selected to be the voltage range of the second level, for example, if the high level voltage of the pin is 5 v, then the difference between the upper and lower thresholds of the high level is selected to be 0.5 v.
Step S151: and outputting the second character.
In this step, a second character is output when the pin voltage is outside the voltage range of the second level.
Step S152: and when the second character is output, determining that the touch screen is not matched with the mobile terminal.
Step S160: and when the output first character is the same as the detection character of the detection character string, the touch screen is matched with the mobile terminal.
In this step, when there are a plurality of pin voltages, a plurality of first characters are output in step S150, and when the plurality of first characters are the same as the plurality of detection characters of the detection character string, it indicates that the touch screen is matched with the mobile terminal. Of course, in some embodiments, when there is only one pin voltage, only one first character is output in step S150, and when the one first character is the same as a single detection character of the detection character string, it indicates that the touch screen is matched with the mobile terminal.
According to the detection method of the mobile terminal touch screen, whether the pin voltage is located in the voltage range of the first level or not is judged firstly according to the pin voltage, and when the pin voltage is located in the voltage range of the first level, whether the pin voltage is located in the voltage range of the second level or not is further detected, so that the influence of voltage instability on a detection result during high-low level switching can be avoided. When the pin voltage is in the voltage range of the second level, the first character is output, and when the output first character is the same as the detection character in the detection character string, the touch screen is matched with the mobile terminal, so that the mobile terminal can automatically and dynamically identify the connected touch screen, and further the problems of abnormal functions, even burning out and the like caused by the fact that a user installs the touch screen which is not produced by a mobile terminal manufacturer are avoided.
As shown in fig. 2, the present application provides a schematic structural diagram of a detection apparatus for a touch screen of a mobile terminal, including: the detection character string acquisition unit 10, the voltage acquisition unit 20, the first level unit 30, the second level unit 40, the first character unit 50, the first detection unit 60, the stop unit 31, the second character unit 41, and the second detection unit 42.
The detection character string obtaining unit 10 obtains a corresponding detection character string of the touch screen, where the detection character string is used to identify whether the touch screen matches with the mobile terminal, and the detection character string includes a plurality of detection characters.
In this embodiment, the detection character string is used to identify whether the touch screen matches the mobile terminal, and the detection character string includes a plurality of detection characters. The detection character string further comprises a start character and an end character, wherein the start character and the end character are arranged at two ends of the detection characters and are used for detecting a transitional state when the touch screen is not lightened or the detection is not started.
The voltage obtaining unit 20 is configured to obtain a pin voltage of the touch screen when the touch screen is turned on.
The first level unit 30 is used for determining whether the pin voltage is in a voltage range of a first level. In the present embodiment, the first level includes a high level and a low level. In order to automatically recognize the switching between high and low levels of the mobile terminal and avoid detecting the first character when the pin of the touch screen of the mobile terminal is switched between the high and low levels, the difference between the upper and lower thresholds of the pin at the high level is usually set to be 20% of the high level of the voltage of the pin of the touch screen.
The second level unit 40 is used for detecting whether the pin voltage is within a voltage range of a second level. In this embodiment, when the pin voltage is within the voltage range of the first level, it is further detected whether the pin voltage is within the voltage range of the second level.
The stopping unit 31 is used to stop the detection of whether the pin voltage is within the voltage range of the second level. In this embodiment, when the pin voltage is determined to be outside the voltage range of the first level, the detection of whether the pin voltage is within the voltage range of the second level is stopped.
The first character unit 50 is used to output a first character. In this embodiment, when the pin voltage is within the voltage range of the second level, the first character is output. Typically, 10% of the difference between the upper and lower thresholds of the high level is selected to be the voltage range of the second level, for example, if the high level voltage of the pin is 5 v, then the difference between the upper and lower thresholds of the high level is selected to be 0.5 v.
The second character unit 41 is used for outputting a second character. In this embodiment, when the pin voltage is out of the voltage range of the second level, the second character is output.
The first detection unit 60 is configured to match the touch screen with the mobile terminal when the output first character is the same as the detection character of the detection character string. The second detection unit 42 is used for comparing the touch screen with the mobile terminal when the second character is output. When there are a plurality of pin voltages, the first character unit 50 outputs a plurality of first characters, and when the plurality of first characters are the same as the detection characters of the detection character string, the touch screen is matched with the mobile terminal.
This application detection device of mobile terminal touch-sensitive screen judges whether to be located the voltage range of first level according to pin voltage earlier, when pin voltage is located the voltage range of first level, then further detects whether pin voltage is located the voltage range of second level to voltage instability is to the influence of testing result when can avoiding high-low level to switch. When the pin voltage is in the voltage range of the second level, the first character is output, and when the output first character is the same as the detection character in the detection character string, the touch screen is matched with the mobile terminal, so that the mobile terminal can automatically and dynamically identify the connected touch screen, and further the problems of abnormal functions, even burning out and the like caused by the fact that a user installs the touch screen which is not produced by a mobile terminal manufacturer are avoided.
The embodiment of the application further provides a mobile terminal, and the mobile terminal can be a smart phone, a tablet computer and other devices. Specifically, as shown in fig. 3, the mobile terminal 200 includes a processor 201 and a memory 202. The processor 201 is electrically connected to the memory 202.
The processor 201 is a control center of the mobile terminal 200, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or loading an application program stored in the memory 202 and calling data stored in the memory 202, thereby performing overall monitoring of the mobile terminal.
In this embodiment, the mobile terminal 200 is provided with a plurality of memory partitions, where the plurality of memory partitions includes a system partition and a target partition, and the processor 201 in the mobile terminal 200 loads instructions corresponding to processes of one or more application programs into the memory 202 according to the following steps, and the processor 201 runs the application programs stored in the memory 202, so as to implement various functions:
acquiring a corresponding detection character string of the touch screen, wherein the detection character string is used for identifying whether the touch screen is matched with the mobile terminal or not, and comprises a plurality of first characters;
when the touch screen is lightened, acquiring the pin voltage of the touch screen;
judging whether the voltage of the pin is in a voltage range of a first level or not according to the voltage of the pin;
when the pin voltage is in the voltage range of the first level, further detecting whether the pin voltage is in the voltage range of the second level;
when the pin voltage is in a voltage range of a second level, outputting a first character; and
and when the output first character is the same as the detection character in the detection character string, matching the touch screen with the mobile terminal.
Fig. 4 shows a specific structure block diagram of a mobile terminal provided in an embodiment of the present application, where the mobile terminal may be used to implement the method for detecting a touch screen of a mobile terminal provided in the foregoing embodiment. The mobile terminal 300 may be a smart phone or a tablet computer. In addition, the mobile terminal may further include a RF circuit 310 for receiving and transmitting electromagnetic waves, so as to perform interconversion between the electromagnetic waves and electrical signals, thereby communicating with a communication network or other devices. RF circuitry 310 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. RF circuit 310 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols, and technologies, including, but not limited to, Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (e.g., Institute of Electrical and Electronics Engineers (IEEE) standard IEEE802.11 a, IEEE802.11 b, IEEE802.11g, and/or IEEE802.11 n), Voice over Internet Protocol (VoIP), world wide mail Access (Microwave Access for micro), wimax-1, other suitable short message protocols, and any other suitable Protocol for instant messaging, and may even include those protocols that have not yet been developed.
The memory 320 may be configured to store software programs and modules, such as program instructions/modules corresponding to the detection method of the touch screen of the mobile terminal in the foregoing embodiment, and the processor 380 executes various functional applications and data processing by running the software programs and modules stored in the memory 320, that is, implements the function of detecting the touch screen of the mobile terminal. The memory 320 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 320 may further include memory located remotely from the processor 380, which may be connected to the mobile terminal 300 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 330 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 330 may include a touch-sensitive surface 331 as well as other input devices 332. The touch-sensitive surface 331, also referred to as a touch screen or touch pad, may collect touch operations by a user on or near the touch-sensitive surface 331 (e.g., operations by a user on or near the touch-sensitive surface 331 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 331 may comprise two parts, a touch detection means 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 sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 380, and can receive and execute commands sent by the processor 380. In addition, the touch-sensitive surface 331 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 330 may comprise other input devices 332 in addition to the touch sensitive surface 331. In particular, other input devices 332 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 340 may be used to display information input by or provided to the user and various graphical user interfaces of the mobile terminal 300, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 340 may include a Display panel 341, and optionally, the Display panel 341 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, touch-sensitive surface 331 may overlay display panel 341, and when touch-sensitive surface 331 detects a touch operation thereon or thereabout, communicate to processor 380 to determine the type of touch event, and processor 380 then provides a corresponding visual output on display panel 341 in accordance with the type of touch event. Although in FIG. 4, touch-sensitive surface 331 and display panel 341 are implemented as two separate components for input and output functions, in some embodiments, touch-sensitive surface 331 and display panel 341 may be integrated for input and output functions.
The mobile terminal 300 may also include at least one sensor 350, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 341 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 341 and/or the backlight when the mobile terminal 300 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured on the mobile terminal 300, detailed descriptions thereof are omitted.
Audio circuitry 360, speaker 361, and microphone 362 may provide an audio interface between a user and the mobile terminal 300. The audio circuit 360 may transmit the electrical signal converted from the received audio data to the speaker 361, and the audio signal is converted by the speaker 361 and output; on the other hand, the microphone 362 converts the collected sound signal into an electrical signal, which is received by the audio circuit 360 and converted into audio data, which is then processed by the audio data output processor 380 and then transmitted to, for example, another terminal via the RF circuit 310, or the audio data is output to the memory 320 for further processing. The audio circuit 360 may also include an earbud jack to provide communication of a peripheral headset with the mobile terminal 300.
The mobile terminal 300, which may assist the user in e-mail, web browsing, streaming media access, etc., through the transmission module 370 (e.g., a Wi-Fi module), provides the user with wireless broadband internet access. Although fig. 4 shows the transmission module 370, it is understood that it does not belong to the essential constitution of the mobile terminal 300 and may be omitted entirely within the scope not changing the essence of the invention as needed.
The processor 380 is a control center of the mobile terminal 300, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 300 and processes data by operating or executing software programs and/or modules stored in the memory 320 and calling data stored in the memory 320, thereby integrally monitoring the mobile phone. Optionally, processor 380 may include one or more processing cores; in some embodiments, processor 380 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 380.
The mobile terminal 300 also includes a power supply 390 (e.g., a battery) that provides power to the various components and, in some embodiments, may be logically coupled to the processor 380 via a power management system to manage charging, discharging, and power consumption management functions via the power management system. The power supply 390 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the mobile terminal 300 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, etc., which will not be described herein. Specifically, in this embodiment, the display unit of the mobile terminal is a touch screen display, the mobile terminal further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
acquiring a corresponding detection character string of the touch screen, wherein the detection character string is used for identifying whether the touch screen is matched with the mobile terminal or not, and comprises a plurality of first characters;
when the touch screen is lightened, acquiring the pin voltage of the touch screen;
judging whether the voltage of the pin is in a voltage range of a first level or not according to the voltage of the pin;
when the pin voltage is in the voltage range of the first level, further detecting whether the pin voltage is in the voltage range of the second level;
when the pin voltage is in a voltage range of a second level, outputting a first character; and
and when the output first character is the same as the detection character in the detection character string, matching the touch screen with the mobile terminal.
In specific implementation, the above modules may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementation of the above modules may refer to the foregoing method embodiments, which are not described herein again.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the present application provides a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any one of the methods for detecting a touch screen of a mobile terminal provided in the present application.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium may execute the steps in any method for detecting a touch screen of a mobile terminal provided in the embodiment of the present application, beneficial effects that can be achieved by any method for detecting a touch screen of a mobile terminal provided in the embodiment of the present application may be achieved, for details, see the foregoing embodiments, and are not described herein again.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
The principle and the implementation of the present application are explained herein by applying specific examples, and the above description of the embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A detection method for a touch screen of a mobile terminal is characterized by comprising the following steps:
acquiring a detection character string of the touch screen, wherein the detection character string is used for identifying whether the touch screen is matched with the mobile terminal or not, and comprises a plurality of detection characters;
when the touch screen is lightened, acquiring the pin voltage of the touch screen;
judging whether the voltage of the pin is within a voltage range of a first level or not according to the voltage of the pin;
when the pin voltage is judged to be in a voltage range of a first level, detecting whether the pin voltage is in a voltage range of a second level;
when the pin voltage is judged to be in the voltage range of the second level, outputting a first character; and
and when the output first character is judged to be the same as the detection character of the detection character string, determining that the touch screen is matched with the mobile terminal.
2. The method for detecting the touch screen of the mobile terminal according to claim 1, wherein after the step of judging whether the pin voltage is in a voltage range of a first level according to the pin voltage, the method comprises the steps of:
and when the pin voltage is judged to be out of the voltage range of the first level, stopping detecting whether the pin voltage is in the voltage range of the second level.
3. The method for detecting the touch screen of the mobile terminal according to claim 1, wherein the step of detecting whether the pin voltage is in a voltage range of a second level when the pin voltage is determined to be in a voltage range of a first level comprises the following steps:
and outputting a second character when the pin voltage is judged to be out of the voltage range of the second level.
4. The method for charging a mobile terminal according to claim 3, wherein the step of outputting the second character when the pin voltage is determined to be out of the voltage range of the second level further comprises the steps of:
and when the second character is output, determining that the touch screen is not matched with the mobile terminal.
5. A detection device of a touch screen of a mobile terminal is characterized by comprising,
the mobile terminal comprises a detection character string acquisition unit, a detection character string acquisition unit and a detection character string processing unit, wherein the detection character string acquisition unit is used for acquiring a corresponding detection character string of the touch screen, the detection character string is used for identifying whether the touch screen is matched with the mobile terminal or not, and the detection character string comprises a plurality of detection characters;
the voltage acquisition unit is used for acquiring the pin voltage of the touch screen when the touch screen is lightened;
the first level unit is used for judging whether the pin voltage is in a voltage range of a first level or not according to the pin voltage;
the second level unit is used for detecting whether the pin voltage is in a voltage range of a second level or not when the pin voltage is judged to be in the voltage range of the first level;
the first character unit is used for outputting a first character when the pin voltage is judged to be in the voltage range of the second level; and
and the first determining unit is used for determining that the touch screen is matched with the mobile terminal when the output first character is judged to be the same as the detection character of the detection character string.
6. The apparatus for detecting a moving touch screen according to claim 5, wherein the apparatus for detecting a moving touch screen further comprises:
and the stopping unit is used for stopping detecting whether the pin voltage is positioned in the voltage range of the second level or not when judging that the pin voltage is positioned outside the voltage range of the first level.
7. The apparatus for detecting a moving touch screen according to claim 5, wherein the apparatus for detecting a moving touch screen further comprises:
and the second character unit is used for outputting a second character when the pin voltage is judged to be out of the voltage range of the second level.
8. The apparatus for detecting a moving touch screen according to claim 5, wherein the apparatus for detecting a moving touch screen further comprises:
and the second determining unit is used for determining that the touch screen is not matched with the mobile terminal when the second character is output.
9. A storage medium having stored therein a plurality of instructions adapted to be loaded by a processor to perform a method for detecting a touch screen of a mobile terminal according to any one of claims 1 to 4.
10. A terminal device comprising a processor and a memory, wherein the processor is electrically connected to the memory, the memory is used for storing instructions and data, and the processor is used for executing the steps of the method for detecting the touch screen of the mobile terminal according to any one of claims 1 to 4.
CN202011344734.3A 2020-11-26 2020-11-26 Detection method and device for touch screen of mobile terminal, storage medium and mobile terminal Active CN112486350B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011344734.3A CN112486350B (en) 2020-11-26 2020-11-26 Detection method and device for touch screen of mobile terminal, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011344734.3A CN112486350B (en) 2020-11-26 2020-11-26 Detection method and device for touch screen of mobile terminal, storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN112486350A true CN112486350A (en) 2021-03-12
CN112486350B CN112486350B (en) 2022-06-10

Family

ID=74934955

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011344734.3A Active CN112486350B (en) 2020-11-26 2020-11-26 Detection method and device for touch screen of mobile terminal, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN112486350B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112860501A (en) * 2021-03-17 2021-05-28 惠州Tcl移动通信有限公司 Detection method, detection device, storage medium and mobile terminal

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101625621A (en) * 2009-07-31 2010-01-13 深圳市同洲电子股份有限公司 Method and device for character input on touch screen
CN104348238A (en) * 2014-11-13 2015-02-11 惠州Tcl移动通信有限公司 Charging voltage control device, mobile terminal and control method
CN104838327A (en) * 2012-12-07 2015-08-12 苹果公司 Integrated visual notification system in accessory device
CN204926764U (en) * 2015-09-07 2015-12-30 德浩荣基电子科技吉林有限公司 Display screen body power supply protection device
KR101687074B1 (en) * 2014-10-28 2016-12-15 주식회사 이디비젼 Dual Display Apparatus
CN106873978A (en) * 2017-01-03 2017-06-20 上海与德信息技术有限公司 A kind of screen update method and apparatus of terminal
CN206757593U (en) * 2017-05-11 2017-12-15 长沙瑞斯康通信技术有限公司 Watchdog circuit for concentrator
CN109286838A (en) * 2017-07-20 2019-01-29 青岛海信电器股份有限公司 Electric terminal equipment, television terminal, signal input circuit and method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101625621A (en) * 2009-07-31 2010-01-13 深圳市同洲电子股份有限公司 Method and device for character input on touch screen
CN104838327A (en) * 2012-12-07 2015-08-12 苹果公司 Integrated visual notification system in accessory device
KR101687074B1 (en) * 2014-10-28 2016-12-15 주식회사 이디비젼 Dual Display Apparatus
CN104348238A (en) * 2014-11-13 2015-02-11 惠州Tcl移动通信有限公司 Charging voltage control device, mobile terminal and control method
CN204926764U (en) * 2015-09-07 2015-12-30 德浩荣基电子科技吉林有限公司 Display screen body power supply protection device
CN106873978A (en) * 2017-01-03 2017-06-20 上海与德信息技术有限公司 A kind of screen update method and apparatus of terminal
CN206757593U (en) * 2017-05-11 2017-12-15 长沙瑞斯康通信技术有限公司 Watchdog circuit for concentrator
CN109286838A (en) * 2017-07-20 2019-01-29 青岛海信电器股份有限公司 Electric terminal equipment, television terminal, signal input circuit and method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112860501A (en) * 2021-03-17 2021-05-28 惠州Tcl移动通信有限公司 Detection method, detection device, storage medium and mobile terminal

Also Published As

Publication number Publication date
CN112486350B (en) 2022-06-10

Similar Documents

Publication Publication Date Title
CN110830127B (en) Radio frequency parameter processing method and device, mobile terminal and storage medium
CN110691168B (en) Screen control method and device of mobile terminal and storage medium
CN111596793B (en) Anti-misoperation method and system, storage medium and terminal equipment
CN112486350B (en) Detection method and device for touch screen of mobile terminal, storage medium and mobile terminal
CN111064847B (en) False touch prevention method and device, storage medium and electronic equipment
CN111026457B (en) Hardware configuration method and device, storage medium and terminal equipment
CN110958345B (en) Method and device for detecting rear cover of mobile terminal and computer readable storage medium
CN112199246A (en) Terminal testing method and device, storage medium and mobile terminal
CN110225106B (en) Data transmission method, device and storage medium
CN111045737A (en) Equipment identifier acquisition method and device, terminal equipment and storage medium
CN110995324B (en) Bluetooth communication method, device, storage medium and terminal equipment
CN110048824B (en) Communication module control method, control device, and computer-readable storage medium
CN112286849A (en) Wireless charging base data switching method and system, storage medium and terminal equipment
CN112367428A (en) Electric quantity display method and system, storage medium and mobile terminal
CN109995441B (en) Communication information processing method, device and storage medium
CN112202464B (en) Identification card detection method and device, storage medium and mobile terminal
CN111273774A (en) Terminal device display screen control method and system, storage medium and terminal device
CN111651313B (en) Conversion method and system of identification card, storage medium and terminal equipment
CN111026259A (en) Control method and device of mobile terminal and storage medium
CN112415367B (en) Drive chip abnormality detection method, drive chip abnormality detection device, electronic device and readable storage medium
CN111988059B (en) Wireless data transmission method, device, storage medium and mobile terminal
CN111026486B (en) Application sorting method, application sorting device and computer readable storage medium
CN112558808B (en) Unlocking method and device for bang screen, terminal and storage medium
CN111917982B (en) Camera selection method and device, storage medium and mobile terminal
CN110046063B (en) Device and method for restoring factory settings of mobile terminal and storage medium

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