CN109213647A - A kind of brush machine testing method, mobile terminal and computer readable storage medium - Google Patents

A kind of brush machine testing method, mobile terminal and computer readable storage medium Download PDF

Info

Publication number
CN109213647A
CN109213647A CN201810996556.9A CN201810996556A CN109213647A CN 109213647 A CN109213647 A CN 109213647A CN 201810996556 A CN201810996556 A CN 201810996556A CN 109213647 A CN109213647 A CN 109213647A
Authority
CN
China
Prior art keywords
mobile terminal
voltage
gpio interface
processor
default
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
CN201810996556.9A
Other languages
Chinese (zh)
Other versions
CN109213647B (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201810996556.9A priority Critical patent/CN109213647B/en
Publication of CN109213647A publication Critical patent/CN109213647A/en
Application granted granted Critical
Publication of CN109213647B publication Critical patent/CN109213647B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/221Detection 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 buses, lines or interfaces, e.g. stuck-at or open line faults
    • 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/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a kind of brush machine testing methods, which comprises detects default universal input/output GPIO interface voltage of the power management chip of mobile terminal;Judge whether the voltage of the default GPIO interface falls into the battery voltage range of the mobile terminal;If the voltage of the default GPIO interface does not fall within the battery voltage range of the mobile terminal, the mobile terminal exception brush machine is determined.In addition, invention additionally discloses a kind of mobile terminal and computer readable storage mediums.In this way, brush machine testing method provided by the invention, which is able to detect mobile terminal, whether there is abnormal brush machine, can since abnormal brush machine causes mobile terminal to crash quick localized reason, promote the working efficiency of test or maintenance personal and effectively save cost resource.

Description

A kind of brush machine testing method, mobile terminal and computer readable storage medium
Technical field
The present invention relates to technical field of mobile terminals more particularly to a kind of brush machine testing methods, mobile terminal and computer Readable storage medium storing program for executing.
Background technique
With the continuous development of electronic technology, mobile terminal (such as smart phone, tablet computer etc.) is more more and more universal, moves The sales volume of dynamic terminal is increasing, and mobile terminal manufacturer after-sales service problem to be treated and maintenance quantity also accordingly increase. The reason of crashing or the problem of be unable to normal boot-strap for mobile terminal, leading to its generation has very much, such as system software asks Topic, chip problem or the improper brush machine problem of user etc..
Brush machine is a kind of behavior for changing mobile terminal operating system, and with the appearance of various brush machine softwares, user can be with Change the kernel and system file on mobile terminal by brush machine maintenance.If because of misoperation or having brushed other during brush machine The program of manufacturer causes mobile terminal to crash, mobile terminal manufacturer research and develop test phase or processing after-sales service problem when by In cannot be started up can't see software version information, swiped through machine can not be determined whether, can only constantly replace hardware causes to ask to detect Inscribe the hardware occurred.So, reason can not be also accurately positioned by taking a significant amount of time, and cause the waste of cost resource.
As it can be seen that how to detect whether mobile terminal has brush machine to become urgently to be resolved in the state that mobile terminal cannot be started up The problem of.
Summary of the invention
In view of this, the present invention proposes a kind of brush machine testing method, mobile terminal and computer readable storage medium, with solution Certainly above-mentioned technical problem.
Firstly, to achieve the above object, the present invention proposes a kind of brush machine testing method, which comprises
Detect default universal input/output GPIO interface voltage of the power management chip of mobile terminal;
Judge whether the voltage of the default GPIO interface falls into the battery voltage range of the mobile terminal;
If the voltage of the default GPIO interface does not fall within the battery voltage range of the mobile terminal, the shifting is determined Dynamic terminal abnormal brush machine.
Optionally, the default GPIO interface is connect by diode with the battery of the mobile terminal, wherein described pre- If GPIO interface is connect with the anode of the diode, the battery of the mobile terminal is connect with the cathode of the diode;
The voltage of the default GPIO interface of the power management chip of the detection mobile terminal, comprising:
Detect the voltage of the diode cathode.
Optionally, if the voltage of the default GPIO interface does not fall within the cell voltage model of the mobile terminal It encloses, determines the mobile terminal exception brush machine, comprising:
If the voltage of the default GPIO interface does not fall within the battery voltage range of the mobile terminal, judge described pre- If whether the voltage of GPIO interface is target voltage;
If the voltage of the default GPIO interface is the target voltage, the mobile terminal exception brush machine is determined.
Optionally, if the voltage of the default GPIO interface does not fall within the cell voltage model of the mobile terminal It encloses, judges whether the voltage of the default GPIO interface is target voltage, comprising:
If the voltage of the default GPIO interface does not fall within the battery voltage range of the mobile terminal, the shifting is obtained The corresponding voltage of type of the processor of dynamic terminal is target voltage, wherein different processor types corresponds to different voltage;
Whether the voltage for judging the default GPIO interface is target voltage.
Optionally, default universal input/output GPIO interface electricity of the power management chip of the detection mobile terminal Before pressure, the method also includes:
Receive the instruction of brush machine;
Judge whether the System guides file boot of the processor of the mobile terminal to be written is normal;
If the boot of the processor of the mobile terminal to be written is abnormal, the voltage for modifying the default GPIO interface is mesh Mark voltage.
Optionally, whether the boot of the processor for judging the mobile terminal to be written is normal, comprising:
Obtain the boot version number of the processor of the mobile terminal to be written;
Judge the processor of the mobile terminal to be written boot version number whether with working as in the processor Preceding boot version number is consistent;
If current boot editions of the boot version number of the processor of the mobile terminal to be written and the processor This number inconsistent, determines that the boot of the processor of the mobile terminal to be written is abnormal.
Optionally, the voltage of the modification default GPIO interface is target voltage, comprising:
It is target voltage by the voltage modifications of the default GPIO interface by modifying the register of the processor.
Optionally, after the voltage of the modification default GPIO interface is target voltage, the method also includes:
Control the mobile terminal brush machine.
Further, to achieve the above object, the present invention also provides a kind of mobile terminal, the mobile terminal includes storage Device, at least one processor and at least one journey that is stored on the memory and can be executed at least one described processor Sequence realizes the step in the above method when at least one described program is executed by least one described processor.
Further, to achieve the above object, the present invention also provides a kind of computer readable storage medium, the computers Readable storage medium storing program for executing is stored at least one executable program of computer, at least one described program is executed by the computer When so that the computer is executed the step in the above method.
Compared to the prior art, brush machine testing method proposed by the invention detects the power management chip of mobile terminal The voltage of default universal input/output GPIO interface;It is described mobile whole to judge whether the voltage of the default GPIO interface falls into The battery voltage range at end;If the voltage of the default GPIO interface does not fall within the battery voltage range of the mobile terminal, Determine the mobile terminal exception brush machine.In this way, brush machine testing method provided by the invention is able to detect whether mobile terminal is deposited In abnormal brush machine, can leading to mobile terminal quick localized reason in the case where crash due to abnormal brush machine, promoted test or The working efficiency of maintenance personal and effectively saving cost resource.
Detailed description of the invention
Fig. 1 is the hardware structural diagram for realizing a kind of mobile terminal of each embodiment of the present invention;
Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention;
Fig. 3 is a kind of flow diagram of brush machine testing method provided in an embodiment of the present invention;
Fig. 4 is a kind of circuit diagram of mobile terminal provided in an embodiment of the present invention;
Fig. 5 is the flow diagram of another brush machine testing method provided in an embodiment of the present invention;
Fig. 6 is the flow diagram of another brush machine testing method provided in an embodiment of the present invention;
Fig. 7 is a kind of user interface schematic diagram provided in an embodiment of the present invention;
Fig. 8 is another user interface schematic diagram provided in an embodiment of the present invention;
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. move The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, the components such as memory 109, processor 110 and power supply 111, the number of the processor 110 are at least one.Ability Field technique personnel are appreciated that mobile terminal structure shown in Fig. 1 does not constitute the restriction to mobile terminal, and mobile terminal can To include perhaps combining certain components or different component layouts than illustrating more or fewer components.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model. Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and by least one element that the input received is transferred in mobile terminal 100 or can use In transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Managing device 110 may include at least one processing unit;Preferably, processor 110 can integrate application processor and modulation /demodulation processing Device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is mainly located Reason wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201 Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And the following new network system etc., herein without limitation.
Based on above-mentioned 100 hardware configuration of mobile terminal and communications network system, each embodiment of the method for the present invention is proposed.
It is a kind of step flow chart of brush machine testing method provided in an embodiment of the present invention refering to Fig. 3, Fig. 3, such as Fig. 3 institute Show, which comprises
Step 301, detect mobile terminal power management chip default GPIO (General Purpose Input Output, universal input/output) interface voltage.
In the step, the method detects the voltage of the default GPIO interface of the power management chip of mobile terminal.Refering to Fig. 4, Fig. 4 are a kind of circuit diagrams of mobile terminal provided in an embodiment of the present invention, as shown in figure 4, the power management core Piece 402 and processor 401 are electrically connected, the default GPIO interface of the power management chip 402 (such as the GPIO1 in Fig. 4 connects Mouthful) be electrically connected by the battery 403 of diode 404 and mobile terminal, the default GPIO interface and the diode 404 Anode connection, the battery 403 of the mobile terminal are connect with the cathode of the diode 404.In the embodiment, the method inspection The voltage for surveying the default GPIO interface of the power management chip of the mobile terminal is specially the electricity for detecting the diode cathode Pressure.
It is understood that in some embodiment of the invention, the mobile terminal, can be with when receiving the instruction of brush machine It is instructed in response to the brush machine, whether just to judge the boot (System guides file) of the processor of the mobile terminal to be written Often, if the boot of the processor of the mobile terminal to be written is abnormal, the mobile terminal modifies the electricity of the mobile terminal The voltage of the default GPIO interface of source control chip is target voltage.
In some embodiments of the invention, the boot that the mobile terminal detects the processor of the mobile terminal to be written is No normal mode can specifically include: obtain the boot version number of the processor of the mobile terminal to be written, will it is described to The boot version number of the processor of the mobile terminal is written to be compared with the current boot version number in the processor, sentences Break the mobile terminal to be written processor boot version number whether with the current boot version in the processor It is number consistent, if the current boot version number in the boot version number of the processor of the mobile terminal to be written and the processor It is inconsistent, then illustrate the boot of the processor of the mobile terminal to be written may be it is illegal, the mobile terminal determine to The boot that the processor of the mobile terminal is written is abnormal.
The voltage that the mobile terminal modifies the default GPIO interface is specifically as follows for the mode of target voltage It is target voltage by the voltage modifications of the default GPIO interface by modifying the register of the processor.Will be described pre- If the voltage modifications of GPIO interface is after the target voltage, the method can control the mobile terminal and continue brush machine.It needs It is noted that in the embodiment of the present invention, if the mobile terminal detects the processor of the mobile terminal to be written Boot is normal, and the mobile terminal is instructed in response to the brush machine, continues brush machine.That is, in the embodiment of the present invention, no matter Whether the boot of the processor of the mobile terminal to be written normal, the mobile terminal can in response to the brush machine instruct after Continuous brush machine, the mobile terminal are modified described default when detecting the boot exception of processor of the mobile terminal to be written The voltage of GPIO interface, in this way, the convenient voltage by detecting the default GPIO interface judges whether the mobile terminal is brushed Machine is abnormal.
Step 302 judges whether the voltage of the default GPIO interface falls into the battery voltage range of the mobile terminal.
In the step, the method judges whether the voltage of the default GPIO interface falls into the battery of the mobile terminal Voltage range executes step if the voltage of the default GPIO interface does not fall within the battery voltage range of the mobile terminal 303;On the contrary, process terminates if the voltage of the default GPIO interface falls into the battery voltage range of the mobile terminal.It lifts For example, the battery voltage range of the mobile terminal can be 3.45V~4.35V.
In some embodiment of the invention, if the voltage of the default GPIO interface does not fall within the electricity of the mobile terminal Cell voltage range, the method will not be immediately performed step 303, but further judge that the voltage of the default GPIO interface is No is target voltage, if the voltage of the default GPIO interface is the target voltage, executes step 303;On the contrary, if described The voltage of default GPIO interface is not the target voltage, and process terminates.Wherein, the target voltage does not fall within described mobile whole The battery voltage range at end.In the embodiment, it is contemplated that platform locating for different processors is inconsistent, and voltage is also different It causes, the method is not when the voltage of the default GPIO interface falls within the battery voltage range of the mobile terminal, first The type of the processor of the mobile terminal is obtained, the corresponding voltage of type for then obtaining the processor of the mobile terminal is Target voltage further judges whether the voltage of the default GPIO interface is target voltage.For example, when the movement When the type of the processor of terminal is the first kind (such as high pass), corresponding voltage is 1.8V.
Step 303 determines the mobile terminal exception brush machine.
In the step, if the voltage of the default GPIO interface does not fall within the battery voltage range of the mobile terminal, The method determines the mobile terminal exception brush machine.It is understood that the voltage when the default GPIO interface is not fallen When entering the battery voltage range of the mobile terminal, illustrates that the voltage of the default GPIO interface is modified, that is, detecting Be modified when to brush machine exception, therefore, the method the voltage of the default GPIO interface do not fall within it is described it is mobile eventually The mobile terminal exception brush machine is determined when the battery voltage range at end.
In this way, maintenance personal or tester can be first when the method determines the mobile terminal exception brush machine It walks and determines that the reason of mobile terminal crashes may be because mobile terminal exception brush machine causes, without constantly replacing firmly Part detects reason, so as to quick localized reason, avoids the waste of cost resource.When the method determines the shifting When dynamic terminal is without abnormal brush machine, maintenance personnel or tester can determine the reason of causing mobile terminal to crash not and be because Caused by for mobile terminal brush machine, so as to reduce detection range, the reason of causing mobile terminal to crash is further determined that.
In the present embodiment, the default universal input of the power management chip of brush machine testing method detection mobile terminal/ Export the voltage of GPIO interface;Judge whether the voltage of the default GPIO interface falls into the cell voltage model of the mobile terminal It encloses;If the voltage of the default GPIO interface does not fall within the battery voltage range of the mobile terminal, determine described mobile whole Hold abnormal brush machine.In this way, brush machine testing method provided by the invention, which is able to detect mobile terminal, whether there is abnormal brush machine, it can The quick localized reason since abnormal brush machine leads to mobile terminal crash, promotes test or the work of maintenance personal effect Rate and effectively saving cost resource.
Optionally, the default GPIO interface is connect by diode with the battery of the mobile terminal, wherein described pre- If GPIO interface is connect with the anode of the diode, the battery of the mobile terminal is connect with the cathode of the diode;
The voltage of the default GPIO interface of the power management chip of the detection mobile terminal, comprising:
Detect the voltage of the diode cathode.
In the embodiment, the default GPIO interface is connect by diode with the battery of the mobile terminal, wherein institute It states default GPIO interface to connect with the anode of the diode, the cathode of the battery of the mobile terminal and the diode connects It connects.In the case where the voltage of the default GPIO interface is not modified, the both ends of the diode are all cell voltages, if The voltage of the default GPIO interface is modified to target voltage, and the target voltage is less than the minimum value of the cell voltage, The cathode voltage of the diode is less than cathode voltage at this time, and diode is not turned on, will not be leaked electricity, to form isolation.
It is understood that in the embodiment of the present invention, the default GPIO interface be not for the power management chip and The battery of the interface of the battery transmission power managing signal of mobile terminal, i.e., the described power management chip and the mobile terminal is logical Cross the interface of other GPIO interfaces transmission power managing signal other than the default GPIO interface.Therefore, the mobile terminal The voltage for modifying the default GPIO interface will not influence the power management chip to the power supply of the battery of the mobile terminal Management.
It is the flow diagram of another brush machine testing method provided in an embodiment of the present invention referring to Fig. 5, Fig. 5, such as Fig. 5 institute Show, which comprises
Step 501, detect mobile terminal power management chip default universal input/output GPIO interface voltage.
In the step, the method detects the voltage of the default GPIO interface of the power management chip of mobile terminal.Refering to Fig. 4, Fig. 4 are a kind of circuit diagrams of mobile terminal provided in an embodiment of the present invention, as shown in figure 4, the power management core Piece 402 and processor 401 are electrically connected, the default GPIO interface of the power management chip 402 (such as the GPIO1 in Fig. 4 connects Mouthful) be electrically connected by the battery 403 of diode 404 and mobile terminal, the default GPIO interface and the diode 404 Anode connection, the battery 403 of the mobile terminal are connect with the cathode of the diode 404.In the embodiment, the method inspection The voltage for surveying the default GPIO interface of the power management chip of the mobile terminal is specially the electricity for detecting the diode cathode Pressure.
It is understood that in some embodiment of the invention, the mobile terminal, can be with when receiving the instruction of brush machine It is instructed in response to the brush machine, whether just to judge the boot (System guides file) of the processor of the mobile terminal to be written Often, if the boot of the processor of the mobile terminal to be written is abnormal, the mobile terminal modifies the electricity of the mobile terminal The voltage of the default GPIO interface of source control chip is target voltage.
In some embodiments of the invention, the boot that the mobile terminal detects the processor of the mobile terminal to be written is No normal mode can specifically include: obtain the boot version number of the processor of the mobile terminal to be written, will it is described to The boot version number of the processor of the mobile terminal is written to be compared with the current boot version number in the processor, sentences Break the mobile terminal to be written processor boot version number whether with the current boot version in the processor It is number consistent, if the current boot version number in the boot version number of the processor of the mobile terminal to be written and the processor It is inconsistent, then illustrate the boot of the processor of the mobile terminal to be written may be it is illegal, the mobile terminal determine to The boot that the processor of the mobile terminal is written is abnormal.
The voltage that the mobile terminal modifies the default GPIO interface is specifically as follows for the mode of target voltage It is target voltage by the voltage modifications of the default GPIO interface by modifying the register of the processor.Will be described pre- If the voltage modifications of GPIO interface is after the target voltage, the method can control the mobile terminal and continue brush machine.It needs It is noted that in the embodiment of the present invention, if the mobile terminal detects the processor of the mobile terminal to be written Boot is normal, and the mobile terminal is instructed in response to the brush machine, continues brush machine.That is, in the embodiment of the present invention, no matter Whether the boot of the processor of the mobile terminal to be written normal, the mobile terminal can in response to the brush machine instruct after Continuous brush machine, the mobile terminal are modified described default when detecting the boot exception of processor of the mobile terminal to be written The voltage of GPIO interface, in this way, the convenient voltage by detecting the default GPIO interface judges whether the mobile terminal is brushed Machine is abnormal.
Step 502 judges whether the voltage of the default GPIO interface falls into the battery voltage range of the mobile terminal.
In the step, the method judges whether the voltage of the default GPIO interface falls into the battery of the mobile terminal Voltage range executes step if the voltage of the default GPIO interface does not fall within the battery voltage range of the mobile terminal 503;On the contrary, process terminates if the voltage of the default GPIO interface falls into the battery voltage range of the mobile terminal.It lifts For example, the battery voltage range of the mobile terminal can be 3.45V~4.35V.
Whether step 503, the voltage for judging the default GPIO interface are target voltage.
In the step, if the voltage of the default GPIO interface does not fall within the battery voltage range of the mobile terminal, The method judges whether the voltage of the default GPIO interface is target voltage, and the target voltage does not fall within described mobile whole The battery voltage range at end, the target voltage are less than the minimum value of the battery voltage range of the mobile terminal.For example, The battery voltage range of the mobile terminal can be 3.45V~4.35V, and the target voltage can be 1.8V.If described pre- If the voltage of GPIO interface is target voltage, step 504 is executed;On the contrary, if the voltage of the default GPIO interface is not mesh Voltage is marked, process terminates.
In the embodiment of the present invention, platform locating for worry to different processors is inconsistent, and voltage is also inconsistent, the side Method obtains the shifting when the voltage of the default GPIO interface does not fall within the battery voltage range of the mobile terminal first The type of the processor of dynamic terminal, the corresponding voltage of type for then obtaining the processor of the mobile terminal is target voltage, Whether the voltage for further judging the default GPIO interface is target voltage.For example, when the place of the mobile terminal When the type for managing device is the first kind (such as high pass), corresponding voltage is 1.8V.
Step 504 determines the mobile terminal exception brush machine.
In the step, if the voltage of the default GPIO interface is target voltage, the method determines the mobile terminal Abnormal brush machine.It is understood that illustrating described default when the voltage of the default GPIO interface is the target voltage The voltage of GPIO interface is modified, i.e., is modified when detecting brush machine exception, and therefore, the method is described default The voltage of GPIO interface determines the mobile terminal exception brush machine when being the target voltage.
In this way, maintenance personal or tester can be first when the method determines the mobile terminal exception brush machine It walks and determines that the reason of mobile terminal crashes may be because mobile terminal exception brush machine causes, without constantly replacing firmly Part detects reason, so as to quick localized reason, avoids the waste of cost resource.When the method determines the shifting When dynamic terminal is without abnormal brush machine, maintenance personnel or tester can determine the reason of causing mobile terminal to crash not and be because Caused by for mobile terminal brush machine, so as to reduce detection range, the reason of causing mobile terminal to crash is further determined that.
It should be noted that in some embodiment of the invention, the method can not also judge that the default GPIO connects Whether the voltage of mouth falls into the battery voltage range of the mobile terminal, but directly judges the voltage of the default GPIO interface It whether is target voltage.I.e. the method can not also execute the step 502, directly execute step after executing step 501 Rapid 503.
In the present embodiment, the default universal input of the power management chip of brush machine testing method detection mobile terminal/ Export the voltage of GPIO interface;Judge whether the voltage of the default GPIO interface falls into the cell voltage model of the mobile terminal It encloses;If the voltage of the default GPIO interface does not fall within the battery voltage range of the mobile terminal, judge described default Whether the voltage of GPIO interface is target voltage;If the voltage of the default GPIO interface be the target voltage, determine described in Mobile terminal exception brush machine.In this way, brush machine testing method provided by the invention is able to detect mobile terminal with the presence or absence of abnormal brush People can be tested or be repaired to machine quick localized reason, promotion since abnormal brush machine leads to mobile terminal crash The working efficiency of member and effectively saving cost resource.
Optionally, if the voltage of the default GPIO interface does not fall within the cell voltage model of the mobile terminal It encloses, judges whether the voltage of the default GPIO interface is target voltage, comprising:
If the voltage of the default GPIO interface does not fall within the battery voltage range of the mobile terminal, the shifting is obtained The corresponding voltage of type of the processor of dynamic terminal is target voltage, wherein different processor types corresponds to different voltage;
Whether the voltage for judging the default GPIO interface is target voltage.
It is the flow diagram of another brush machine testing method provided in an embodiment of the present invention referring to Fig. 6, Fig. 6, such as Fig. 6 institute Show, which comprises
Step 601 receives the instruction of brush machine.
When user needs to carry out brush machine to mobile terminal, the operation of brush machine, the step can be executed on the mobile terminal In rapid, the method receives the instruction of brush machine.
Step 602 judges whether the boot of the processor of the mobile terminal to be written is normal.
In the step, the mobile terminal judges whether the boot of the processor of the mobile terminal to be written is normal, if The boot of the processor of the mobile terminal to be written is abnormal, executes step 603;On the contrary, if the mobile terminal to be written Processor boot it is normal, the mobile terminal controls the mobile terminal in response to brush machine instruction and continues brush machine.
The whether normal mode of boot that the mobile terminal detects the processor of the mobile terminal to be written specifically may be used To include: the boot version number for obtaining the processor of the mobile terminal to be written, by the mobile terminal to be written The boot version number of processor is compared with the current boot version number in the processor, judges the shifting to be written Whether the boot version number of the processor of dynamic terminal is consistent with the current boot version number in the processor, if to be written described The boot version number of the processor of mobile terminal and the current boot version number in the processor are inconsistent, then illustrate to be written The boot of the processor of the mobile terminal may be it is illegal, the mobile terminal determines the place of the mobile terminal to be written The boot for managing device is abnormal.
Step 603, the voltage for modifying the default GPIO interface are target voltage.
In the step, if the boot of the processor of the mobile terminal to be written is abnormal, described in the mobile terminal modification The voltage of default GPIO interface is target voltage.The voltage that the mobile terminal modifies the default GPIO interface is target The mode of voltage is specifically as follows the register by modifying the processor, and the voltage modifications by the default GPIO interface are Target voltage.By the voltage modifications of the default GPIO interface be the target voltage after, the method can control described Mobile terminal continues brush machine.
In some embodiment of the invention, the mobile terminal can be in the processing for detecting the mobile terminal to be written When the boot exception of device, user interface as shown in Figure 7 is provided in the mobile terminal, for reminding user's shifting to be written The boot of the processor of dynamic terminal is abnormal, and the mobile terminal can continue brush machine after prompt.In other embodiments of the invention, The mobile terminal can be when detecting the boot exception of processor of the mobile terminal to be written, in the mobile terminal User interface as shown in Figure 8 is provided, for reminding the boot of processor of user's mobile terminal to be written abnormal, simultaneously It chooses whether to continue brush machine for user, in this way, user can be allowed to recognize the risk of this brush machine.
Step 604, detect mobile terminal power management chip default GPIO interface voltage.
Step 605 judges whether the voltage of the default GPIO interface falls into the battery voltage range of the mobile terminal.
In the step, the method judges whether the voltage of the default GPIO interface falls into the battery of the mobile terminal Voltage range executes step if the voltage of the default GPIO interface does not fall within the battery voltage range of the mobile terminal 606;On the contrary, process terminates if the voltage of the default GPIO interface falls into the battery voltage range of the mobile terminal.
Step 606 determines the mobile terminal exception brush machine.
Step 301 in above-mentioned steps 604 to step 606 and Fig. 3 the embodiment described of the present invention is to step 303, specifically The description of step 301 to step 303 please be detailed in, details are not described herein again.
In the present embodiment, the brush machine testing method receives the instruction of brush machine;Judge the processing of the mobile terminal to be written Whether the System guides file boot of device is normal;If the boot of the processor of the mobile terminal to be written is abnormal, described in modification The voltage of default GPIO interface is target voltage;Detect default universal input/output of the power management chip of mobile terminal The voltage of GPIO interface;Judge whether the voltage of the default GPIO interface falls into the battery voltage range of the mobile terminal; If the voltage of the default GPIO interface does not fall within the battery voltage range of the mobile terminal, determine that the mobile terminal is different Normal brush machine.In this way, brush machine testing method provided by the invention, which is able to detect mobile terminal, whether there is abnormal brush machine, can by In abnormal brush machine cause mobile terminal crash in the case where quick localized reason, promoted test or maintenance personal working efficiency and Effectively save cost resource.
Optionally, whether the boot of the processor for judging the mobile terminal to be written is normal, comprising:
Obtain the boot version number of the processor of the mobile terminal to be written;
Judge the processor of the mobile terminal to be written boot version number whether with working as in the processor Preceding boot version number is consistent;
If current boot editions of the boot version number of the processor of the mobile terminal to be written and the processor This number inconsistent, determines that the boot of the processor of the mobile terminal to be written is abnormal.
Optionally, the voltage of the modification default GPIO interface is target voltage, comprising:
It is target voltage by the voltage modifications of the default GPIO interface by modifying the register of the processor.
Optionally, after the voltage of the modification default GPIO interface is target voltage, the method also includes:
Control the mobile terminal brush machine.
It can be with those of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment method is It is completed by the relevant hardware of at least one program instruction, at least one described program can store in shifting as shown in Figure 1 It in the memory 109 of dynamic terminal 100, and can be executed by the processor 110, at least one described program is by the processor 110 realize following steps when executing:
Detect default universal input/output GPIO interface voltage of the power management chip of mobile terminal;
Judge whether the voltage of the default GPIO interface falls into the battery voltage range of the mobile terminal;
If the voltage of the default GPIO interface does not fall within the battery voltage range of the mobile terminal, the shifting is determined Dynamic terminal abnormal brush machine.
Optionally, the default GPIO interface is connect by diode with the battery of the mobile terminal, wherein described pre- If GPIO interface is connect with the anode of the diode, the battery of the mobile terminal is connect with the cathode of the diode;
The voltage of the default GPIO interface of the power management chip of the detection mobile terminal, comprising:
Detect the voltage of the diode cathode.
Optionally, if the voltage of the default GPIO interface does not fall within the cell voltage model of the mobile terminal It encloses, determines the mobile terminal exception brush machine, comprising:
If the voltage of the default GPIO interface does not fall within the battery voltage range of the mobile terminal, judge described pre- If whether the voltage of GPIO interface is target voltage;
If the voltage of the default GPIO interface is the target voltage, the mobile terminal exception brush machine is determined.
Optionally, if the voltage of the default GPIO interface does not fall within the cell voltage model of the mobile terminal It encloses, judges whether the voltage of the default GPIO interface is target voltage, comprising:
If the voltage of the default GPIO interface does not fall within the battery voltage range of the mobile terminal, the shifting is obtained The corresponding voltage of type of the processor of dynamic terminal is target voltage, wherein different processor types corresponds to different voltage;
Whether the voltage for judging the default GPIO interface is target voltage.
Optionally, the processor 110 executes default universal input/output of the power management chip of detection mobile terminal Before the voltage of GPIO interface, it can also be achieved following steps:
Receive the instruction of brush machine;
Judge whether the System guides file boot of the processor of the mobile terminal to be written is normal;
If the boot of the processor of the mobile terminal to be written is abnormal, the voltage for modifying the default GPIO interface is mesh Mark voltage.
Optionally, whether the boot of the processor for judging the mobile terminal to be written is normal, comprising:
Obtain the boot version number of the processor of the mobile terminal to be written;
Judge the processor of the mobile terminal to be written boot version number whether with working as in the processor Preceding boot version number is consistent;
If current boot editions of the boot version number of the processor of the mobile terminal to be written and the processor This number inconsistent, determines that the boot of the processor of the mobile terminal to be written is abnormal.
Optionally, the voltage of the modification default GPIO interface is target voltage, comprising:
It is target voltage by the voltage modifications of the default GPIO interface by modifying the register of the processor.
Optionally, the processor 110 executes the voltage of the modification default GPIO interface may be used also after target voltage Realize following steps:
Control the mobile terminal brush machine.
In the present embodiment, default universal input/output of the power management chip of the mobile terminal detection mobile terminal The voltage of GPIO interface;Judge whether the voltage of the default GPIO interface falls into the battery voltage range of the mobile terminal; If the voltage of the default GPIO interface does not fall within the battery voltage range of the mobile terminal, determine that the mobile terminal is different Normal brush machine.In such manner, it is possible to which detecting mobile terminal whether there is abnormal brush machine, mobile terminal can caused dead due to abnormal brush machine Quick localized reason in the case where machine promotes the working efficiency of test or maintenance personal and effectively saves cost resource.
It can be with those of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment method is It is completed by the relevant hardware of at least one program instruction, at least one described program can store computer-readable deposits in one In storage media, which is performed, comprising the following steps:
Detect default universal input/output GPIO interface voltage of the power management chip of mobile terminal;
Judge whether the voltage of the default GPIO interface falls into the battery voltage range of the mobile terminal;
If the voltage of the default GPIO interface does not fall within the battery voltage range of the mobile terminal, the shifting is determined Dynamic terminal abnormal brush machine.
Optionally, the default GPIO interface is connect by diode with the battery of the mobile terminal, wherein described pre- If GPIO interface is connect with the anode of the diode, the battery of the mobile terminal is connect with the cathode of the diode;
The voltage of the default GPIO interface of the power management chip of the detection mobile terminal, comprising:
Detect the voltage of the diode cathode.
Optionally, if the voltage of the default GPIO interface does not fall within the cell voltage model of the mobile terminal It encloses, determines the mobile terminal exception brush machine, comprising:
If the voltage of the default GPIO interface does not fall within the battery voltage range of the mobile terminal, judge described pre- If whether the voltage of GPIO interface is target voltage;
If the voltage of the default GPIO interface is the target voltage, the mobile terminal exception brush machine is determined.
Optionally, if the voltage of the default GPIO interface does not fall within the cell voltage model of the mobile terminal It encloses, judges whether the voltage of the default GPIO interface is target voltage, comprising:
If the voltage of the default GPIO interface does not fall within the battery voltage range of the mobile terminal, the shifting is obtained The corresponding voltage of type of the processor of dynamic terminal is target voltage, wherein different processor types corresponds to different voltage;
Whether the voltage for judging the default GPIO interface is target voltage.
Optionally, at least one described program is performed the default logical of the power management chip for realizing detection mobile terminal Before voltage with input/output GPIO interface, it can also be achieved following steps:
Receive the instruction of brush machine;
Judge whether the System guides file boot of the processor of the mobile terminal to be written is normal;
If the boot of the processor of the mobile terminal to be written is abnormal, the voltage for modifying the default GPIO interface is mesh Mark voltage.
Optionally, whether the boot of the processor for judging the mobile terminal to be written is normal, comprising:
Obtain the boot version number of the processor of the mobile terminal to be written;
Judge the processor of the mobile terminal to be written boot version number whether with working as in the processor Preceding boot version number is consistent;
If current boot editions of the boot version number of the processor of the mobile terminal to be written and the processor This number inconsistent, determines that the boot of the processor of the mobile terminal to be written is abnormal.
Optionally, the voltage of the modification default GPIO interface is target voltage, comprising:
It is target voltage by the voltage modifications of the default GPIO interface by modifying the register of the processor.
Optionally, at least one described program, which is performed, realizes that the voltage for modifying the default GPIO interface is target electricity After pressure, it can also be achieved following steps:
Control the mobile terminal brush machine.
In the present embodiment, at least one described program is performed, and detects the default of the power management chip of mobile terminal Universal input/output GPIO interface voltage;Judge whether the voltage of the default GPIO interface falls into the mobile terminal Battery voltage range;If the voltage of the default GPIO interface does not fall within the battery voltage range of the mobile terminal, determine The mobile terminal exception brush machine.In this way, at least one described program is performed, mobile terminal is able to detect with the presence or absence of different Normal brush machine, being capable of quick localized reason, promotion test or maintenance since abnormal brush machine leads to mobile terminal crash The working efficiency of personnel and effectively saving cost resource.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of brush machine testing method, which is characterized in that the described method includes:
Detect default universal input/output GPIO interface voltage of the power management chip of mobile terminal;
Judge whether the voltage of the default GPIO interface falls into the battery voltage range of the mobile terminal;
If the voltage of the default GPIO interface does not fall within the battery voltage range of the mobile terminal, determine described mobile whole Hold abnormal brush machine.
2. brush machine testing method as described in claim 1, which is characterized in that the default GPIO interface passes through diode and institute State the battery connection of mobile terminal, wherein the default GPIO interface is connect with the anode of the diode, the mobile terminal Battery connect with the cathode of the diode;
The voltage of the default GPIO interface of the power management chip of the detection mobile terminal, comprising:
Detect the voltage of the diode cathode.
3. brush machine testing method as described in claim 1, which is characterized in that if the voltage of the default GPIO interface does not have The battery voltage range for falling with the mobile terminal determines the mobile terminal exception brush machine, comprising:
If the voltage of the default GPIO interface does not fall within the battery voltage range of the mobile terminal, judge described default Whether the voltage of GPIO interface is target voltage;
If the voltage of the default GPIO interface is the target voltage, the mobile terminal exception brush machine is determined.
4. brush machine testing method as claimed in claim 3, which is characterized in that if the voltage of the default GPIO interface does not have The battery voltage range for falling with the mobile terminal judges whether the voltage of the default GPIO interface is target voltage, packet It includes:
If the voltage of the default GPIO interface does not fall within the battery voltage range of the mobile terminal, obtain described mobile whole The corresponding voltage of the type of the processor at end is target voltage, wherein different processor types corresponds to different voltage;
Whether the voltage for judging the default GPIO interface is target voltage.
5. brush machine testing method as described in claim 1, which is characterized in that the power management chip of the detection mobile terminal Default universal input/output GPIO interface voltage before, the method also includes:
Receive the instruction of brush machine;
Judge whether the System guides file boot of the processor of the mobile terminal to be written is normal;
If the boot of the processor of the mobile terminal to be written is abnormal, the voltage for modifying the default GPIO interface is target electricity Pressure.
6. brush machine testing method as claimed in claim 5, which is characterized in that the place of the judgement mobile terminal to be written Whether the boot for managing device is normal, comprising:
Obtain the boot version number of the processor of the mobile terminal to be written;
Judge the processor of the mobile terminal to be written boot version number whether with it is current in the processor Boot version number is consistent;
If the current boot version number of the boot version number of the processor of the mobile terminal to be written and the processor It is inconsistent, determine that the boot of the processor of the mobile terminal to be written is abnormal.
7. brush machine testing method as claimed in claim 5, which is characterized in that the voltage of the modification default GPIO interface For target voltage, comprising:
It is target voltage by the voltage modifications of the default GPIO interface by modifying the register of the processor.
8. brush machine testing method as claimed in claim 5, which is characterized in that the voltage of the modification default GPIO interface After target voltage, the method also includes:
Control the mobile terminal brush machine.
9. a kind of mobile terminal, which is characterized in that the mobile terminal includes memory, at least one processor and is stored in institute At least one program stated on memory and can executed at least one described processor, at least one described program by it is described extremely A few processor realizes the step in the described in any item methods of the claims 1 to 8 when executing.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer executable at least One program, which is characterized in that at least one described program makes the computer execute above-mentioned power when being executed by the computer Benefit requires the step in 1~8 described in any item methods.
CN201810996556.9A 2018-08-29 2018-08-29 Flash detection method, mobile terminal and computer readable storage medium Active CN109213647B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810996556.9A CN109213647B (en) 2018-08-29 2018-08-29 Flash detection method, mobile terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810996556.9A CN109213647B (en) 2018-08-29 2018-08-29 Flash detection method, mobile terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109213647A true CN109213647A (en) 2019-01-15
CN109213647B CN109213647B (en) 2021-11-19

Family

ID=64985305

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810996556.9A Active CN109213647B (en) 2018-08-29 2018-08-29 Flash detection method, mobile terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109213647B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110041005A1 (en) * 2009-08-11 2011-02-17 Selinger Robert D Controller and Method for Providing Read Status and Spare Block Management Information in a Flash Memory System
US20120017138A1 (en) * 2010-07-13 2012-01-19 Eran Erez Adaptive Flash Interface
CN104461667A (en) * 2014-12-31 2015-03-25 广东欧珀移动通信有限公司 Root method and device for intelligent terminal
CN107402794A (en) * 2017-08-03 2017-11-28 特瓦特能源科技有限公司 A kind of itself programme upgrade method of charging pile and device
CN107608879A (en) * 2017-08-24 2018-01-19 北京珠穆朗玛移动通信有限公司 A kind of fault detection method, device and storage medium
CN107729179A (en) * 2017-09-29 2018-02-23 烽火通信科技股份有限公司 Unified Software Mirroring based on same processor different hardware realizes system and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110041005A1 (en) * 2009-08-11 2011-02-17 Selinger Robert D Controller and Method for Providing Read Status and Spare Block Management Information in a Flash Memory System
US20120017138A1 (en) * 2010-07-13 2012-01-19 Eran Erez Adaptive Flash Interface
CN104461667A (en) * 2014-12-31 2015-03-25 广东欧珀移动通信有限公司 Root method and device for intelligent terminal
CN107402794A (en) * 2017-08-03 2017-11-28 特瓦特能源科技有限公司 A kind of itself programme upgrade method of charging pile and device
CN107608879A (en) * 2017-08-24 2018-01-19 北京珠穆朗玛移动通信有限公司 A kind of fault detection method, device and storage medium
CN107729179A (en) * 2017-09-29 2018-02-23 烽火通信科技股份有限公司 Unified Software Mirroring based on same processor different hardware realizes system and method

Also Published As

Publication number Publication date
CN109213647B (en) 2021-11-19

Similar Documents

Publication Publication Date Title
CN109542689A (en) Applied program processing method, terminal and computer readable storage medium
CN108512991A (en) A kind of based reminding method, mobile terminal and computer readable storage medium
CN109582565A (en) Prevent the method, terminal and computer storage medium of application crashes
CN109327581A (en) A kind of downloading switching device and mobile terminal
CN108920306A (en) What is managed based on memory restarts localization method, mobile terminal and readable storage medium storing program for executing
CN108601004A (en) NFC uses bootstrap technique, mobile terminal and computer readable storage medium
CN108052430A (en) Mobile terminal restarts localization method, mobile terminal and computer readable storage medium
CN110096213A (en) Terminal operation method, mobile terminal and readable storage medium storing program for executing based on gesture
CN109545120A (en) Screen photosensitive sensors adjusting method, mobile terminal and computer readable storage medium
CN109739517A (en) Printed circuit board, terminal, firmware burning method and readable storage medium storing program for executing
CN109947519A (en) Hardware-accelerated control method, terminal and computer readable storage medium
CN110167004A (en) A kind of network registering method, mobile terminal and computer readable storage medium
CN108833687A (en) Terminal prot open method, terminal and computer readable storage medium
CN110012158A (en) A kind of charging reminding method, terminal and computer readable storage medium
CN110096173A (en) Method for controlling mobile terminal, mobile terminal and computer readable storage medium
CN109714460A (en) Press key expansion device, terminal, key expansion method and storage medium
CN108845821A (en) Application program update method, terminal and computer readable storage medium
CN108364595A (en) A kind of Electro-static Driven Comb detection method, mobile terminal and computer readable storage medium
CN108650404A (en) Port start-up circuit, device and mobile terminal
CN109739676A (en) A kind of operational monitoring method, mobile terminal and computer readable storage medium
CN110069291A (en) A kind of display control method, mobile terminal and computer readable storage medium
CN109213647A (en) A kind of brush machine testing method, mobile terminal and computer readable storage medium
CN109739405A (en) A kind of display control method, mobile terminal and computer readable storage medium
CN110147291A (en) Terminal and its log management-control method, computer readable storage medium
CN110048900A (en) Blog management method, mobile terminal and computer readable 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