CN112860501B - Detection method, detection device, storage medium and mobile terminal - Google Patents

Detection method, detection device, storage medium and mobile terminal Download PDF

Info

Publication number
CN112860501B
CN112860501B CN202110283958.6A CN202110283958A CN112860501B CN 112860501 B CN112860501 B CN 112860501B CN 202110283958 A CN202110283958 A CN 202110283958A CN 112860501 B CN112860501 B CN 112860501B
Authority
CN
China
Prior art keywords
character string
detection
display panel
preset
pin
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.)
Active
Application number
CN202110283958.6A
Other languages
Chinese (zh)
Other versions
CN112860501A (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.)
Hubei Central China Technology Development Of Electric Power 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 CN202110283958.6A priority Critical patent/CN112860501B/en
Publication of CN112860501A publication Critical patent/CN112860501A/en
Application granted granted Critical
Publication of CN112860501B publication Critical patent/CN112860501B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test input/output devices or peripheral units
    • 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/16Sound input; Sound output

Abstract

The invention discloses a detection method, a detection device, a storage medium and a mobile terminal, wherein the detection method is used for a display panel of the mobile terminal and comprises the following steps: detecting the display panel to obtain a detection character string; judging whether the detection character string is matched with a preset character string or not, wherein the preset character string is an identifier of the display panel in a normal state; and if the detection character string is judged to be matched with a preset character string, lightening the display panel. The detection method provided by the invention can dynamically detect the display panel by detecting the character string so as to avoid the problem that the display panel is abnormal and even burnt out possibly caused by the fact that a user installs an illegal display panel.

Description

Detection method, detection device, storage medium and mobile terminal
Technical Field
The invention relates to the field of display panel detection, in particular to a detection method, a detection device, a storage medium and a mobile terminal.
Background
In order to achieve the purpose that users can have a larger display range on a mobile terminal with a small size, manufacturers of mobile terminals are gradually reducing the use of dial keys or confirmation pieces to keep a large-sized display panel.
The larger the size of the display panel, the higher its probability of breakage is. And the display panel is positioned at the outermost layer of the mobile terminal, so that the display panel is easy to have higher failure rate due to the occurrence of dropping, collision, water inflow and the like.
Based on various failures of the display panel, the user may change the display panel to a non-original screen during the process of changing the display panel. The problem of parameter mismatching is easily caused by a non-original screen, and even the pin of the mobile terminal is possibly burnt out.
Therefore, a detection method is needed to solve the above problems.
Disclosure of Invention
The invention aims to provide a detection method, a detection device, a storage medium and a mobile terminal, so as to solve the problem that a display panel is easy to burn out after a non-original display panel is installed on the mobile terminal.
In order to achieve the above object, the present invention provides a detection method for a display panel of a mobile terminal, the detection method comprising: detecting the display panel to obtain a detection character string; judging whether the detection character string is matched with a preset character string or not, wherein the preset character string is an identifier of the display panel in a normal state; and if the detection character string is judged to be matched with a preset character string, lightening the display panel.
Further, the step of detecting the display panel to obtain a detection character string includes: judging whether the byte number of the detected character string is smaller than the byte number of a preset character string or not; if the byte number of the detected character string is judged to be smaller than the byte number of the preset character string, providing a preset voltage to at least one pin of the display panel; judging whether the actual voltage value of the pin is within a first preset voltage range or not; if the actual voltage value of the pin is judged to be within a first preset voltage range, adding a first identifier to the next byte of the last byte of the detection character string; the first identifier is used to identify an actual voltage state of the pin; and stopping providing the preset voltage, and judging whether the byte number of the detection character string is smaller than the byte number of the preset character string.
Further, in the step of determining whether the actual voltage value of the pin is within a first preset voltage range, if it is determined that the actual voltage value of the pin is not within the first preset voltage range, adding a second identifier to a next byte of a last byte of the detection character string; the second identifier is to identify an actual voltage state of the pin, the second identifier being different from the first identifier.
Further, before the step of determining whether the actual voltage value of the pin is within a first preset voltage range, the method includes: judging whether the current voltage value of at least one pin of the display panel is within a second preset voltage range or not; the voltage difference between the upper threshold and the lower threshold of the second preset voltage range is greater than the voltage difference between the upper threshold and the lower threshold of the first preset voltage range; and if the current voltage value of at least one pin of the display panel is judged to be in a second preset voltage range, executing the step of judging whether the actual voltage value of the pin is in a first preset voltage range.
Further, in the step of judging whether the number of bytes of the detected character string is smaller than the number of bytes of the preset character string, if the number of bytes of the detected character string is judged to be equal to the number of bytes of the preset character string, the step of judging whether the detected character string is the same as the preset character string is executed.
Further, the detecting the character string includes: at least one initial character string and/or at least one final character string and/or at least one other character; the start character string is used for marking the reading start position of the detection character string; the terminal character string is used for marking the reading ending position of the detection character string; the other characters include: a plurality of first characters and a plurality of second characters.
The invention also provides a detection device for a display panel of a mobile terminal, comprising: a character string obtaining unit for detecting the display panel to obtain a detection character string; the character string comparison unit is used for judging whether the detection character string is matched with a preset character string or not, wherein the preset character string is an identifier of the display panel in a normal state; and an instruction execution unit for lighting the display panel.
Further, the character string obtaining unit further includes: the byte number comparison unit is used for judging whether the byte number of the detection character string is smaller than the byte number of the preset character string; the voltage supply unit is used for providing a preset voltage to at least one pin of the display panel; the voltage comparison unit is used for judging whether the actual voltage value of the pin is within a first preset voltage range or not; and an identifier adding unit to add the first identifier to a byte next to a last byte of the detection string.
The present invention also provides a storage medium having stored therein a plurality of instructions adapted to be loaded by a processor to perform any of the steps of the detection method according to any of the embodiments of the present invention.
The invention also provides a mobile terminal 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 any step of the detection method in any embodiment of the invention.
The detection method provided by the embodiment of the invention judges whether the current display panel has the risk of being burnt out or not by comparing whether the detection character string is consistent with the preset character string or not, thereby avoiding the problem of abnormal mobile terminal which is possibly caused when a user installs an illegal screen and simultaneously avoiding the condition that the display panel is damaged by abnormal voltage. Similarly, the detection device, the storage medium and the mobile terminal according to the embodiments of the present invention have the same effects.
Drawings
The technical solution and other advantages of the present invention will become apparent from the following detailed description of specific embodiments of the present invention, which is to be read in connection with the accompanying drawings.
Fig. 1 is a flowchart of a detection method according to an embodiment of the present invention.
Fig. 2 is a sub-flowchart of the step S200 of fig. 1 for obtaining the detection string.
Fig. 3 is a schematic structural diagram of a detection apparatus according to an embodiment of the present invention.
Fig. 4 is a schematic structural diagram of the character string obtaining unit shown in fig. 3.
Fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
Description of reference numerals:
reference part name
100. Detection device 110 instruction acquisition unit
120. String acquisition unit 130 string comparison unit
140. Instruction execution unit 121 byte number comparison unit
122. Voltage supply unit 123 voltage comparison unit
124. Identifier adding unit 800 mobile terminal
810 RF circuit 820 memory
830. Input unit 840 display unit
860. Audio circuit 870 transmission module
880. Processor 890 power supply
861. Loudspeaker 862 microphone
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention. It should be apparent that the described embodiments are only some embodiments of the present invention, 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 invention.
Fig. 1 is a flowchart of a detection method according to an embodiment of the present invention. Fig. 2 is a sub-flowchart of the step S200 of fig. 1 for obtaining the detection string.
Referring to fig. 1 and 2, an embodiment of the invention provides a detection method for a display panel of a mobile terminal. The detection method comprises the following steps:
step S100, a first instruction is acquired.
The first instruction is used for starting a display panel of the mobile terminal, the screen can be directly lightened when the mobile terminal obtains the first instruction in the prior art, whether the display panel can bear the voltage changed in the lightening process or not can not be detected, and therefore the display panel is easily burnt out by the voltage which is not adapted when the display panel is a non-original display panel, and even various abnormalities when a user uses the mobile terminal are caused.
In this embodiment, the mobile terminal detects whether the display panel is at risk of burning out after receiving an instruction of a user to light the screen, that is, the first instruction is an instruction to light the screen. In other embodiments, the first instruction may also be other instructions that can initiate a function of detecting the display panel, such as a debugging instruction.
Alternatively, the user voice instruction may be received through a microphone of the mobile terminal, for example: when the user speaks 'screen detection', the central controller of the mobile terminal starts to execute the detection method provided by the embodiment, the content of the wakeup word is not limited in the embodiment, and the wakeup word can be set by a manufacturer or by user definition.
Step S200, the display panel is detected to obtain a detection character string.
The detection character string is used for verifying whether the display panel has the risk of being burnt out.
In at least some embodiments of the present invention, step S200 may further include step S210 to step S250.
Step S210, determining whether the number of bytes of the detected character string is smaller than the number of bytes of the preset character string.
In step S220, if it is determined that the number of bytes of the detected character string is smaller than the number of bytes of the predetermined character string, a predetermined voltage is applied to at least one pin of the display panel.
If the number of bytes of the detected character string is greater than or equal to the number of bytes of the preset character string, the supply of the preset voltage is stopped, and step S300 is executed to determine whether the detected character string is the same as the preset character string.
In step S230, it is determined whether the actual voltage value of the pin is within a first predetermined voltage range.
The first predetermined voltage range includes upper and lower thresholds of voltage. In this embodiment, optionally, a voltage difference between the upper threshold and the lower threshold of the first preset voltage is 10% of a pin high level voltage, for example: the high level voltage of one pin is 5 volts, and the voltage difference between the upper threshold and the lower threshold of the first preset voltage is 0.5 volts. Optionally, when the pin is at a low level, the upper threshold of the first preset voltage range is set to 0.5 v, and the lower threshold of the first preset voltage range is set to 0 v.
In some embodiments, the voltage difference between the upper and lower thresholds of the first preset voltage may also be other preset values, such as 8% or 5% of the pin high level voltage. The upper and lower threshold voltages are preferably selected to be voltages that will not burn out the display panel, and the upper and lower threshold voltages can be properly adjusted on the basis that the display panel will not be burned out, and the voltage difference in this embodiment is less than 10% of the high level voltage of the pin, but is not limited thereto.
In step S240, if it is determined that the actual voltage value of the pin is within the first preset voltage range, the first identifier is added to the next byte of the last byte of the detection string.
In this embodiment, the first identifier is used to identify the actual voltage state of the pin. If the actual voltage value of the pin is judged not to be in the first preset voltage range, adding a second identifier to the next byte of the last byte of the detection character string; the second identifier is used to identify an actual voltage state of the pin, and the second identifier is different from the first identifier.
In this embodiment, the detection character string is composed of only a plurality of first identifiers and second identifiers, and in other embodiments, other identification characters may be added to the detection character string.
Step S250, stopping providing a preset voltage, and re-executing step S210 to determine whether the number of bytes of the detected character string is smaller than the number of bytes of the preset character string.
By supplying the voltage for multiple times, the present embodiment can generate the detection character string according to the actual voltage of the display panel. The number of bytes of the detected character string is not limited in this embodiment, and a manufacturer can determine the number of bytes of the detected character string according to actual requirements, wherein the longer the number of bytes is, the higher the detection accuracy is, and the lower the detection fault tolerance is.
Preferably, in order to ensure the detection accuracy, the manufacturer may perform the following steps before determining whether the number of bytes of the detection character string is smaller than the number of bytes of the preset character string in step S210: judging whether the number of the generated detection character strings is larger than a preset threshold value or not; when the number of the generated detection character strings is judged to be larger than a preset threshold value, judging whether the number of the detection character strings in the generated detection character strings, which are consistent with the bytes of the preset detection character strings, is larger than or equal to the preset threshold value or not; and when the number of the detection character strings in the generated detection character strings is judged to be consistent with the preset detection character string bytes and is larger than or equal to a preset threshold value, lighting the display panel. When the number of detection character strings in the generated detection character string, which is consistent with the bytes of the preset detection character string, is judged to be less than a preset threshold value, step S210) is executed to judge whether the number of bytes of the detection character string is less than the number of bytes of the preset character string.
Specifically, detecting the character string includes: at least one start character string and/or at least one end character string and/or at least one other character. Wherein the start character string is used for marking the reading start position of the detection character string; the terminal character string is used for marking the reading end position of the detection character string; the other characters include: a plurality of first characters and a plurality of second characters.
Optionally, the start character string and the end character string are both composed of only a plurality of first characters and a plurality of second characters, and the start character string and the end character string are in a fixed order. The arrangement order of the first character and the second character in the start character string and the end character string can be determined by the manufacturer according to the actual situation.
Optionally, before determining whether the actual voltage value of the pin is within the first preset voltage range in step S230, the method includes the following steps: judging whether the current voltage value of at least one pin of the display panel is in a second preset voltage range, wherein the voltage difference between the upper threshold and the lower threshold of the second preset voltage range is larger than the voltage difference between the upper threshold and the lower threshold of the first preset voltage range; and if the current voltage value of at least one pin of the display panel is determined to be within the second preset voltage range, executing step S230 to determine whether the actual voltage value of the pin is within the first preset voltage range.
In this embodiment, the second predetermined voltage detection range is different from the first predetermined voltage detection range.
Because the pin can appear switching between the high-low level in the normal working process of display panel, in order to prevent the voltage fluctuation range of this switching process and the coincidence of first default voltage detection scope, the producer can set up the second default voltage detection scope.
Optionally, the voltage difference between the upper and lower thresholds of the second preset voltage detection range is 20% of the pin high level, but is not limited thereto, for example: the voltage difference between the upper threshold and the lower threshold is 15% of the high level of the pin. The voltage difference between the upper threshold and the lower threshold of the second preset voltage detection range is required to be larger than the voltage difference between the upper threshold and the lower threshold of the first preset voltage detection range. In this embodiment, the specific value of the second preset voltage detection range is not limited, but the second preset voltage detection range only needs to satisfy the following two conditions: 1) And the pins of the display panel are not burnt out in the second preset voltage detection range. 2) The upper threshold voltage value of the second preset voltage detection range is larger than the upper threshold voltage value of the first preset voltage detection range, and the lower threshold voltage value of the second preset voltage detection range is smaller than the lower threshold voltage value of the first preset voltage detection range. In the embodiment, by setting the second preset voltage detection range, the voltage misjudgment of the display panel during the voltage conversion period can be effectively prevented, and the accuracy of detecting the character string is improved.
Step S300, judging whether the detection character string is matched with a preset character string.
The preset character string is a detection character string without burning risk of the display panel, namely the preset character string is measured through a display screen capable of working normally, and a manufacturer inputs the preset detection character string into the mobile terminal in the manufacturing process of the mobile terminal so as to facilitate the mobile terminal to carry out self-detection on the display panel.
Optionally, the manufacturer can type the preset detection character string into an external detection device, in the after-sale process, after-sale personnel can directly connect into the mobile terminal to be detected through the external detection device, whether the display panel of the mobile terminal has the risk of burning out is judged, so that the screen can be directly lightened by the mobile terminal without self-checking after a user takes the mobile terminal, the data processing amount of the mobile terminal can be greatly reduced, and the operation efficiency of the mobile terminal is improved.
In step S400, if it is determined that the detected character string matches the preset character string, the display panel is lit.
And if the detection character string is judged not to be matched with the preset character string, not lightening the display panel.
If the detection character string is different from the preset character string, the display panel cannot work normally, and the display panel is prevented from being burnt out by the mobile terminal in a mode of not lighting the display panel. Because the display panel can not be burnt out, the user can change the display panel when finding that the display panel can not be normally lightened, if the display panel is burnt out, the user can not enjoy various services of the mobile terminal, and the cost for repairing the mobile terminal is increased.
In some other embodiments, when the mobile terminal detects that the display panel cannot be lit, the speaker may emit a periodic sound to remind the user that the display panel cannot work normally. In other embodiments, when the mobile terminal detects that the display panel cannot be lit, the mobile terminal may also remind the user that the display panel cannot work normally through periodic vibration.
The detection method provided by the embodiment can accurately judge whether the display panel has the risk of being burnt out or not when the screen of the mobile terminal is awakened, and simultaneously reduces the possibility of other abnormalities caused by the influence of short circuit of other parts of the mobile terminal by the display panel. Because the display panel can not have the risk of burning out, the user can pass through the after-sale gratuitous change display panel, greatly reduced the cost that the user changed display panel, can not cause the too poor problem of user's maintenance experience simultaneously.
Based on the same inventive concept, the invention also provides a detection device.
Fig. 3 is a schematic structural diagram of a detection apparatus according to an embodiment of the present invention. Fig. 4 is a schematic structural diagram of the character string obtaining unit shown in fig. 3.
Referring to fig. 3 and 4, an embodiment of the invention provides a detection apparatus 100 for a display panel of a mobile terminal. In this embodiment, the detection device includes: an instruction obtaining unit 110, a character string obtaining unit 120, a character string comparing unit 130, and an instruction executing unit 140.
The instruction obtaining unit 110 is configured to obtain a first instruction, where the first instruction is used to open a display panel of the mobile terminal.
The string obtaining unit 120 is used for detecting the display panel to obtain a detection string.
The string comparing unit 130 is configured to determine whether the detected string matches a preset string, where the preset string is an identifier of the display panel in a normal state.
The instruction execution unit 140 is used for lighting the display panel.
The character string acquisition unit 120 includes: a byte number comparison unit 121, a voltage supply unit 122, a voltage comparison unit 123, and an identifier addition unit 124.
The byte count comparison unit 121 is used to determine whether the byte count of the detected character string is smaller than the byte count of the preset character string. The voltage supply unit 122 is used for providing a predetermined voltage to the pin. The voltage comparison unit 123 is used for determining whether an actual voltage value of at least one pin of the display panel is within a first preset voltage range. The identifier adding unit 124 is configured to add the first identifier to a byte next to the last byte of the detection string.
When the detection device 100 provided by the embodiment can accurately judge that the screen of the mobile terminal is awakened, whether the display panel has the risk of being burned out or not is also reduced, and the possibility that other parts of the mobile terminal are affected by the short circuit of the display panel to cause other abnormalities is also reduced.
The present embodiment also provides a storage medium, in which a plurality of instructions are stored, and the instructions are suitable for being loaded by a processor to execute any step of the detection method provided by the embodiment of the present invention.
Wherein the storage medium may include: read Only Memory (ROM), random Access Memory (RAM), magnetic or optical disks, and the like.
Because the instructions stored in the storage medium can execute any step in any detection method provided by the embodiment of the present invention, the beneficial effects that can be achieved by any detection method provided by the embodiment of the present invention can be achieved.
Referring to fig. 5, a mobile terminal 800 may be used to implement the detection method provided in the above embodiments. The mobile terminal 800 may be a mobile phone or a tablet. The mobile terminal 800 includes the following components.
The RF circuit 810 is used for receiving and transmitting electromagnetic waves, and performing interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. RF circuit 810 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.
The memory 820 may be used to store software programs and modules, such as program instructions/modules corresponding to the detection methods in the above-described embodiments, and the processor 880 may execute various functional applications and data processing by operating the software programs and modules stored in the memory 820. The memory 820 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 other embodiments, the memory 820 may include memory located remotely from the processor 880, which may be connected to the mobile terminal 800 via a network.
The input unit 830 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.
The display unit 840 may be used to display information input by or provided to the user and various graphical user interfaces of the mobile terminal 800, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 840 may include a Display panel 841, and the Display panel 841 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like, as an option.
The mobile terminal 800 may also include at least one sensor 850, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, which are not described in detail herein.
The audio circuitry 860, speaker 861, microphone 862 may provide an audio interface between a user and the mobile terminal 800. The audio circuit 860 may transmit the received electrical signal converted from the audio data to the speaker 861, and the audio signal is converted by the speaker 861 to be output as an acoustic signal. Optionally, the microphone 862 may receive the voice of the user, and if the user speaks the wake-up word-screen detection, the mobile terminal 800 executes the above-mentioned detection method, which is not limited herein.
The mobile terminal 800, which may assist the user in emailing, browsing web pages, accessing streaming media, etc., through the transport module 870 (e.g., a Wi-Fi module), provides the user with wireless broadband internet access. Although fig. 5 illustrates the transmission module 870, it is understood that it does not belong to the essential constitution of the mobile terminal 800 and may be omitted entirely within the scope not changing the essence of the invention as needed. Alternatively, if the mobile terminal 800 is connected to a mobile network, the prompt that the display panel 841 is at risk of being burned can be transmitted to a detection device through the transmission module 870.
The processor 880 is a control center of the mobile terminal 800, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 800 and processes data by operating or executing software programs and/or modules stored in the memory 820 and calling data stored in the memory 820, thereby integrally monitoring the mobile phone.
The mobile terminal 800 also includes a power supply 890 (e.g., a battery) for supplying power to various components, which in some embodiments can be logically connected to the processor 880 via a power management system that can provide functionality to manage charging, discharging, and power consumption. Power supply 890 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the mobile terminal 800 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, and the like, which are not described in detail herein.
In specific implementation, the modules may be implemented as independent entities, or may be combined arbitrarily and implemented as one or several entities.
The mobile terminal that this embodiment provided can accurately judge when the mobile terminal screen is awaken up, whether display panel exists the risk of being burnt out, other parts that have also reduced mobile terminal simultaneously receive display panel short circuit to influence and lead to other unusual possibilities, because display panel can not exist the risk of burning out, the user can pass through the after-sale gratuitous change display panel, greatly reduced the user change display panel's cost, can not cause the too poor problem of user maintenance experience simultaneously.
The above detailed description is provided for a detection method, a detection apparatus, a storage medium, and a mobile terminal according to embodiments of the present invention, and a specific example is applied in the description to explain the principles and embodiments of the present invention, and the description of the above embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, 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 invention.

Claims (8)

1. A detection method is used for a display panel of a mobile terminal, and is characterized by comprising the following steps:
detecting the display panel to obtain a detection character string;
judging whether the detection character string is matched with a preset character string or not, wherein the preset character string is an identifier of the display panel in a normal state; and
if the detection character string is matched with a preset character string, lightening the display panel;
the step of detecting the display panel to obtain a detection character string includes:
judging whether the byte number of the detected character string is smaller than the byte number of a preset character string or not;
if the byte number of the detected character string is judged to be smaller than the byte number of the preset character string, providing a preset voltage to at least one pin of the display panel;
judging whether the actual voltage value of the pin is within a first preset voltage range or not;
if the actual voltage value of the pin is judged to be within a first preset voltage range, adding a first identifier to the next byte of the last byte of the detection character string; the first identifier is to identify an actual voltage state of the pin; and
and stopping providing the preset voltage, and judging whether the byte number of the detection character string is smaller than the byte number of the preset character string again.
2. The method according to claim 1, wherein in the step of determining whether the actual voltage value of the pin is within a first predetermined voltage range, if it is determined that the actual voltage value of the pin is not within the first predetermined voltage range, adding a second identifier to a byte next to a last byte of the detection string; the second identifier is to identify an actual voltage state of the pin, the second identifier being different from the first identifier.
3. The method as claimed in claim 1, wherein the step of determining whether the actual voltage value of the pin is within a first predetermined voltage range comprises:
judging whether the current voltage value of at least one pin of the display panel is within a second preset voltage range or not; wherein the voltage difference between the upper threshold and the lower threshold of the second preset voltage range is greater than the voltage difference between the upper threshold and the lower threshold of the first preset voltage range; and
and if the current voltage value of at least one pin of the display panel is judged to be in a second preset voltage range, executing the step of judging whether the actual voltage value of the pin is in the first preset voltage range.
4. The method according to claim 1, wherein in the step of determining whether the number of bytes of the detected string is less than the number of bytes of the predetermined string, if the number of bytes of the detected string is determined to be equal to the number of bytes of the predetermined string, the step of determining whether the detected string is the same as the predetermined string is performed.
5. The detection method of claim 1, wherein the detecting a string comprises: at least one initial character string and/or at least one final character string and/or at least one other character; the start character string is used for marking the reading start position of the detection character string; the terminal character string is used for marking the reading end position of the detection character string; the other characters include: a plurality of first characters and a plurality of second characters.
6. A detection device for a display panel of a mobile terminal, the detection device comprising:
a character string obtaining unit for detecting the display panel to obtain a detection character string;
the character string comparison unit is used for judging whether the detection character string is matched with a preset character string or not, wherein the preset character string is an identifier of the display panel in a normal state; and
an instruction execution unit for lighting the display panel;
the character string acquisition unit further includes:
the byte number comparison unit is used for judging whether the byte number of the detection character string is smaller than the byte number of the preset character string;
the voltage supply unit is used for providing a preset voltage to at least one pin of the display panel;
the voltage comparison unit is used for judging whether the actual voltage value of the pin is within a first preset voltage range or not; and
and the identifier adding unit is used for adding the first identifier to the next byte of the last byte of the detection character string, stopping providing the preset voltage and judging whether the byte number of the detection character string is smaller than the byte number of the preset character string again.
7. A storage medium having stored therein a plurality of instructions adapted to be loaded by a processor to perform the detection method of any one of claims 1 to 5.
8. A mobile terminal comprising a processor and a memory, the processor being electrically connected to the memory, the memory being configured to store instructions and data, the processor being configured to perform the steps of the detection method according to any one of claims 1 to 5.
CN202110283958.6A 2021-03-17 2021-03-17 Detection method, detection device, storage medium and mobile terminal Active CN112860501B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110283958.6A CN112860501B (en) 2021-03-17 2021-03-17 Detection method, detection device, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110283958.6A CN112860501B (en) 2021-03-17 2021-03-17 Detection method, detection device, storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN112860501A CN112860501A (en) 2021-05-28
CN112860501B true CN112860501B (en) 2022-10-21

Family

ID=75994888

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110283958.6A Active CN112860501B (en) 2021-03-17 2021-03-17 Detection method, detection device, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN112860501B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI803376B (en) * 2022-06-30 2023-05-21 神達數位股份有限公司 A test method and device for an android mobile device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101196623A (en) * 2006-12-06 2008-06-11 英业达股份有限公司 Device and method for detecting screen chromatic characteristics
CN104951265A (en) * 2015-06-05 2015-09-30 惠州Tcl移动通信有限公司 Intelligent terminal and character string positioning method thereof
CN105744261A (en) * 2014-12-10 2016-07-06 上海仪电数字技术有限公司 System and method for testing set top box front panels

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100093293A (en) * 2009-02-16 2010-08-25 주식회사 팬택 Mobile terminal with touch function and method for touch recognition using the same
JP5722696B2 (en) * 2011-05-10 2015-05-27 京セラ株式会社 Electronic device, control method, and control program
CN109617009A (en) * 2018-12-15 2019-04-12 惠州Tcl移动通信有限公司 Method for controlling power supply, device and the storage medium of display screen
CN112285597B (en) * 2019-07-12 2022-04-29 海信视像科技股份有限公司 Short circuit detection method and device for display panel
CN112486350B (en) * 2020-11-26 2022-06-10 惠州Tcl移动通信有限公司 Detection method and device for touch screen of mobile terminal, storage medium and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101196623A (en) * 2006-12-06 2008-06-11 英业达股份有限公司 Device and method for detecting screen chromatic characteristics
CN105744261A (en) * 2014-12-10 2016-07-06 上海仪电数字技术有限公司 System and method for testing set top box front panels
CN104951265A (en) * 2015-06-05 2015-09-30 惠州Tcl移动通信有限公司 Intelligent terminal and character string positioning method thereof

Also Published As

Publication number Publication date
CN112860501A (en) 2021-05-28

Similar Documents

Publication Publication Date Title
RU2564989C2 (en) Providing power to accessory during portable computing device hibernation
US11080386B2 (en) Method for providing smart key service and electronic device thereof
CN108132401A (en) Charge abnormal detection method, device, storage medium and mobile terminal
CN103606718B (en) Battery, battery protecting method, device and system
US9723408B2 (en) Electronic device and method of preventing erroneous recognizing inserting connector into earphone jack
CN111239617B (en) Control method and device for charge and discharge test, storage medium and system
WO2018090174A1 (en) Charging method and related device
US20200212701A1 (en) Method for controlling multi-mode charging, mobile terminal, and storage medium
US10430174B2 (en) Terminal device and charge control method
CN112860501B (en) Detection method, detection device, storage medium and mobile terminal
CN110912574B (en) SIM card detection method, device, storage medium and terminal
CN110768382A (en) Wireless charging method and device, storage medium and electronic equipment
CN105227606A (en) Application program adaptation method and device
CN103544457A (en) Method and device for identification of near field communication labels and mobile terminal
CN110109529A (en) SD card method for controlling power supply, device, storage medium and electronic equipment
KR20210033758A (en) Method for power supply and an electronic device thereof
CN112542867B (en) Mobile terminal power supply control method and device, terminal equipment and storage medium
CN112486350B (en) Detection method and device for touch screen of mobile terminal, storage medium and mobile terminal
CN115706428A (en) Protection circuit board, charging and discharging system, and method and device for determining battery state
CN110849407B (en) Sensor testing method and device, storage medium and electronic equipment
CN113170014B (en) Alarm clock playing method and device and electronic equipment
EP3515054A1 (en) Electronic device, prompting method and related product
CN111309604B (en) Offline automatic test method, system, storage medium and mobile terminal
CN113079249B (en) Prompting method, prompting device, storage medium and mobile terminal
CN111385416B (en) Electronic equipment and alarm clock processing method

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
TR01 Transfer of patent right

Effective date of registration: 20231214

Address after: 430070 Hubei Province, Wuhan city Hongshan District Luoyu Road No. 546

Patentee after: HUBEI CENTRAL CHINA TECHNOLOGY DEVELOPMENT OF ELECTRIC POWER Co.,Ltd.

Address before: 516006 Zhongkai hi tech Zone, Huizhou, Guangdong, 86 Chang seven Road West

Patentee before: HUIZHOU TCL MOBILE COMMUNICATION Co.,Ltd.

TR01 Transfer of patent right