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 follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only
Be advantageous to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can mix
Ground uses.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat board
Computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
Media player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. move
Dynamic terminal, and the fixed terminal such as digital TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special
Outside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware architecture diagram for a kind of mobile terminal of each embodiment of the realization present invention, the shifting
Dynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit
103rd, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface unit
108th, the part such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1
Mobile terminal structure does not form the restriction to mobile terminal, and mobile terminal can be included than illustrating more or less parts,
Either combine some parts or different parts arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station
Downlink information receive after, handled to processor 110;In addition, up data are sent to base station.Generally, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrate
Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any 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, WCDMA), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, FDD 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, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can be according to need
To be omitted in the essential scope for do not change 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 receiving or
It is sound that the voice data stored in memory 109, which is converted into audio signal and exported,.Moreover, audio output unit 103
The audio output related to the specific function that mobile terminal 100 performs can also be provided (for example, call signal receives sound, disappeared
Breath receives sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) are carried out
Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after the processing of graphics processor 1041 can be deposited
Storage is transmitted 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 (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can
To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model.
Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound
Caused noise or interference during frequency signal.
Mobile terminal 100 also 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 transducer, wherein, ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity transducer can close when mobile terminal 100 is moved in one's ear
Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification 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 ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to 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) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal
The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 with
And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it
(for example user uses any suitable objects or annex such as finger, stylus on contact panel 1071 or in contact panel 1071
Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact 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
Contact coordinate is converted into, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, can
To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap
Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc.
One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 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, contact panel 1071 and display panel
1061 be the part independent as two to realize the input of mobile terminal and output function, but in certain embodiments, can
Input and the output function of mobile terminal are realized so that contact panel 1071 and display panel 1061 is integrated, is not done herein specifically
Limit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 100.For example,
External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing
Line FPDP, 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 the input received is transferred to one or more elements in mobile terminal 100 or can be with
For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area
And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function
Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as
Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, 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 whole mobile terminal of connection
Individual part, by running or performing the software program and/or module that are stored in memory 109, and call and be stored in storage
Data in device 109, the various functions and processing data of mobile terminal are performed, so as to carry out integral monitoring to mobile terminal.Place
Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated
Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main
Handle radio 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) to all parts power supply, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put
The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system being based on below to the mobile terminal of the present invention enters
Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system
Unite as the LTE system of universal mobile communications technology, the UE that the LTE system includes communicating connection successively (User Equipment, is used
Family equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS lands
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 here is omitted.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide UE201 to EPC203 access.
EPC203 can 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 between EPC203, there is provided carrying and connection management.HSS2032 is all to manage for providing some registers
Such as the function of attaching position register (not shown) etc, and preserve some and used about service features, data rate etc.
The special information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide UE 201 IP
Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources
Point, it selects and provided available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can 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 it is to be understood that the present invention not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And following new network system etc., do not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the inventive method is proposed.
The embodiment of the present invention provides a kind of deadlock method for restarting, as shown in figure 3, the deadlock method for restarting is applied to terminal,
The terminal includes re-starting control circuit, the re-starting control circuit charging input port with the terminal and the terminal respectively
The start control interface connection of middle single-chip microcomputer, this method can include:
Step 301, when the charging input port of terminal is connected with charger charging, crashed if detecting that the terminal is in
State, start control interface is controlled to be in low level by re-starting control circuit.
Specifically, in the embodiment of the present invention, when the charging input port of terminal is connected charging with charger, if detecting institute
State terminal and be in deadlock state, by the re-starting control circuit control it is described start control interface be in low level can be by
Terminal realizes that is, terminal controls the start control interface to be in low level by re-starting control circuit.End in the present invention
End can be the electronic equipment that needs charge or mobile terminal, intelligent terminal etc..
Mobile terminal refers to the equipment that can be used on the move, broad sense say including mobile phone, notebook, tablet personal computer,
POS, or even including vehicle-mounted computer.But refer to mobile phone or the intelligent hand with a variety of application functions in most cases
Machine and tablet personal computer.As network and technology are towards the development in more and more broadband direction, Mobile Communication Industry will trend
The real mobile message epoch.On the other hand, with the rapid development of integrated circuit technique, the disposal ability of mobile terminal is
Have powerful disposal ability, mobile terminal is changed into an integrated information processing platform from simple call instrument.This
Also broader development space is added to mobile terminal.Mobile terminal is as simple communication equipment with Mobile Communication Development
The history of existing decades.Mobile intelligent terminal is almost changed into the crucial entrance of Internet service and main wound between a flash
New platform, new media, ecommerce and information service platform, Internet resources, mobile network resource and environmental interaction resource
Most important hinge, its operating system and processor chips are even as the strategy system of current whole information and communication technology (ICT) industry
High point.Mobile intelligent terminal can be referred to as intelligent terminal, and mobile intelligent terminal possesses access the Internet capability, generally carry each
Kind operating system, various functions can be customized according to user's request.In life common intelligent terminal include mobile intelligent terminal,
Vehicle intelligent terminal, intelligent television, wearable device etc..
Specifically, when terminal is in deadlock state, and terminal can not be again electricity in terminal system by dismantling battery
When operation carries out deadlock and restarted, as shown in figure 4, terminal can be inserted charger by user, by restarting control electricity in terminal
Road control terminal is restarted.The start control of the single-chip microcomputer of terminal can be specifically controlled by the increased re-starting control circuit of terminal
Interface processed is in low level, and when control interface of starting shooting is in low level, terminal is restarted.
Here, the re-starting control circuit includes:Metal-oxide semiconductor (MOS) metal-oxide-semiconductor, phase shift RC circuits and resistance.
Wherein, metal-oxide-semiconductor is that metal (metal)-oxide (oxide)-semiconductor (semiconductor) field-effect is brilliant
Body pipe, or it is metal-insulator (insulator)-semiconductor to claim.The source and drain of metal-oxide-semiconductor are to exchange
, they are the N-type regions formed in p-type backgate.As a rule, this Liang Ge area is the same, even if two
The performance for also not interfering with device is exchanged at end.After bipolar transistor amplifies the minor variations of input electric current, in output end
Export a big curent change.The gain of bipolar transistor is just defined as exporting the ratio between input current (beta).It is another
Transistor, it is called FET (FET), the change of input voltage is converted into the change of output current.FET gain is equal to it
Transconductance, be defined as output current change and input voltage change the ratio between.And P-channel is common for low pressure
Mos is managed.FET influences to flow through the electric current of transistor by projecting an electric field on an insulating barrier.In fact do not have
Electric current flows through this insulator, so the GATE electric currents of FET pipes are very small.Most common FET is made with a thin layer silica
For GATE extremely under insulator.This transistor is referred to as metal-oxide semiconductor (MOS) (MOS) transistor, or, metal oxide half
Conductor FET (MOSFET).Because the smaller more power saving of metal-oxide-semiconductor, they instead of bipolar in many application scenarios
Transistor npn npn.
Phase-shift circuit (RC circuits, Resistance-Capacitance Circuits) or RC wave filters, RC network,
It is one and includes the circuit for driving resistor, capacitor to operate using voltage source, current source.One simplest RC circuit be by
One capacitor and resistor composition, referred to as First-order Rc Circuit.
Specifically, the re-starting control circuit in the embodiment of the present invention can use the independent IC designs of low cost to realize, make
Designed and realized with devices such as metal-oxide-semiconductor (for example, the transistor such as P-MOS FET), resistance, electric capacity, as shown in figure 5, mainly including:It is fixed
When module, software timing controlling switch module, time block and USB (USB, Universal Serial Bus)
Charger insert port connects, and software timing controlling switch module controls with resets such as the start control interface Power-key on PM
Pin connects.
Wherein, time block is made up of small-signal N-MOS pipes, RC circuits;Software timing controlling switch module is by small-signal
PNP pipe and resistance composition.
Time block is referred to as timers trigger module, and timers trigger module is used to trigger timer unlatching, made
Trigger Function is realized with the insertion of USB (USB, Universal Serial Bus) charger;Weight as shown in Figure 6
Control circuit exemplary plot is opened, is slowly charged in the moment C1 of terminal insertion charger, Q1 is remained off, on electric capacity is slow
The start control interface KPD_PWR of single-chip microprocessor MCU keeps high level during rising, and avoids charging normal insertion moment and restarts.
Reach in C1 charging voltages after Q1 can open, time block is for controlling low level effective time, realizing and used after crashing
After family insertion USB charger, A points are changed into low level, and now Q2 still disconnects, if terminal is in deadlock slate software and can not controlled
GPIO mouths processed, then Q2 be always maintained at off-state, B point low levels reach 50s, and (time of the 50s is not fixed, can be passed through
Software adjustment) left and right restart;If terminal inserts charger in normal condition, by software control universal input/
Output GPIO mouths turn on Q2 within a short period of time, and now Q3 will disconnect, and B points are changed into high level, and now terminal would not be sent out
Raw abnormal restarting.The connection and break that software timing controlling switch module is used between timer reset signal and the reset pin of system
Open, avoid terminal charge normal in the case of the operation restarted of triggering terminal.
Wherein, universal input/output (GPIO, General Purpose Input Output) or bus extender, when
Microcontroller or chipset do not have enough I/O ports, or when system is needed using distal end serial communication or control, GPIO productions
Product can provide extra control and function for monitoring.Each GPIO port can be each configured to input or export by software.
Maxim GPIO product lines include the GPIO of 8 ports to 28 ports, there is provided push-pull type exports or open-drain output.
Micro-control unit (MCU, Microcontroller Unit) is also known as one chip microcomputer (Single Chip
Microcomputer) or single-chip microcomputer, it is central processing unit (Central Process Unit;CPU frequency and specification)
Do appropriate reduction, and by the perimeter interface such as internal memory (memory), counter (Timer), USB, A/D conversion, UART, PLC, DMA,
Even LCD drive circuits are all incorporated on one chip, form the computer of chip-scale, and different groups are done for different application scenarios
Close control.Such as mobile phone, PC periphery, remote control, to the control etc. of automotive electronics, industrial stepper motor, robotic arm, all
Visible MCU figure.
Step 302, when it is described start control interface be in low level when, control the terminal to be restarted.
Specifically, the re-starting control circuit in terminal controls the level at start control interface, terminal is then when being low level
The operation restarted, so, the terminal can of deadlock are restarted by inserting charger and realizing.
Optionally, the deadlock method for restarting can also include:When the charging input port of terminal is connected charging with charger
When, if detecting, the terminal is not in deadlock state, is controlled by the re-starting control circuit at the start control interface
In high level;When the start control interface is in high level, the terminal is controlled to be in charged state.
Specifically, when the start control interface of terminal is in high level, illustrates that terminal need not boot up and restart, i.e.,
The purpose of terminal connection charger is to be charged, and therefore, controls the terminal to be in charged state, so as to avoid terminal normal
Reboot operation is carried out under charge condition.
Deadlock method for restarting provided in an embodiment of the present invention, when terminal is in deadlock state, terminal is inserted into charger,
Terminal is controlled to carry out reboot operation by re-starting control circuit, so as to realize as the insertion of the end product of battery can not be won
Charger realizes the operation restarted, and realizing reliable crash for terminal restarts design, improves the reliability, stably of product
Property, meanwhile, reduce the after-sales service cost of terminal.
The embodiment of the present invention also provides a kind of deadlock method for restarting, as shown in fig. 7, the deadlock method for restarting is applied to eventually
End, the terminal include re-starting control circuit, the re-starting control circuit respectively with the charging input port of the terminal and described
The start control interface connection of single-chip microcomputer, this method can include in terminal:
Step 401, whether the charging input port of detection terminal connects charger is charged.
Specifically, in the embodiment of the present invention, the charging input port of detection terminal whether connect charger carry out charging can be with
It is to be realized by terminal, i.e. whether the charging input port of terminal detection terminal itself, which connects charger, is charged.In the present invention
Terminal can need the electronic equipment that charges or mobile terminal, intelligent terminal etc., for example, mobile phone, tablet personal computer
Deng.
Here, the re-starting control circuit includes:Metal-oxide semiconductor (MOS) metal-oxide-semiconductor, phase shift RC circuits and resistance.
Step 402, when the charging input port of terminal is connected with charger charging, crashed if detecting that the terminal is in
State, start control interface is controlled to be in low level by re-starting control circuit.
Step 403, when it is described start control interface be in low level when, control the terminal to be restarted.
Specifically, when terminal is in deadlock state, and terminal can not be again electricity in terminal system by dismantling battery
When operation carries out deadlock and restarted, as shown in figure 4, terminal can be inserted charger by user, by restarting control electricity in terminal
Road control terminal is restarted.The start control of the single-chip microcomputer of terminal can be specifically controlled by the increased re-starting control circuit of terminal
Interface processed is in low level, and when control interface of starting shooting is in low level, terminal is restarted.
Optionally, after step 401, can also include:
Step 404, when the charging input port of terminal is connected with charger charging, if detecting, the terminal is not in extremely
Machine state, the start control interface is controlled to be in high level by the re-starting control circuit.
Step 405, when it is described start control interface be in high level when, control the terminal to be in charged state.
Here, when the start control interface of terminal is in high level, illustrate that terminal need not boot up and restart, i.e., eventually
The purpose of end connection charger is to be charged, and therefore, controls the terminal to be in charged state, so as to avoid terminal from normally filling
Reboot operation is carried out in the case of electricity.
Exemplary, as shown in Figure 6 re-starting control circuit figure, slowly charged in the moment C1 of terminal insertion charger,
Q1 is remained off, and MCU start control interface KPD_PWR keeps high level during electric capacity slowly rises, and avoids
Charge normal insertion moment restart.Reach in C1 charging voltages after Q1 can open, time block is to be used to control low level to have
The time is imitated, after realizing that user inserts USB charger after crashing, A points are changed into low level, and now Q2 still disconnects, if terminal
In the uncontrollable GPIO mouths of deadlock slate software, then Q2 is always maintained at off-state, B point low levels reach 50s (50s's
Time is not fixed, can pass through software adjustment) left and right restart;If terminal inserts charger in normal condition,
Then universal input/output GPIO mouths are controlled to turn on Q2 within a short period of time by software, now Q3 will disconnect, and B points are changed into
High level, now terminal abnormal restarting would not occur.Software timing controlling switch module is used for timer reset signal with being
Be connected and disconnected between the reset pin of system, avoid terminal charge normal in the case of triggering terminal reboot operation.
In deadlock method for restarting provided in an embodiment of the present invention, re-starting control circuit cost is cheap, is adapted in mobile terminal
Upper popularization;Restarting time of origin can conveniently be set, for example, can adjust in Fig. 6, R1, R2 or C1 set weight in timing circuit
Open time of origin;Because crash reset restarts circuit, by inserting USB charger, user's false triggering is avoided, and independent of
Controlled in CPU, complete hardware is realized, securely and reliably;Re-starting control circuit use power tube conduction impedance selectable range compared with
Width, it is easier to realize low conduction impedance design, avoids the voltage loss of the system power supply caused by on-off circuit;Re-starting control circuit device
Part layout requirements are not high, according to plate level layout can be needed to put, no particular/special requirement.
Deadlock method for restarting provided in an embodiment of the present invention, when terminal is in deadlock state, terminal is inserted into charger,
Terminal is controlled to carry out reboot operation by re-starting control circuit, so as to realize as the insertion of the end product of battery can not be won
Charger realizes the operation restarted, and realizing reliable crash for terminal restarts design, improves the reliability, stably of product
Property, meanwhile, reduce the after-sales service cost of terminal.
The embodiment of the present invention also provides a kind of terminal simultaneously, and the terminal includes re-starting control circuit, described to restart control
Start control interface of the circuit respectively with single-chip microcomputer in the charging input port of the terminal and the terminal is connected;As shown in figure 8,
Terminal 80 also includes:Processor 501, memory 502 and communication bus 503;
The communication bus 503 is used to realize the connection communication between processor 501 and memory 502;
The processor 501 is used to perform the deadlock reset routine stored in memory 502, to realize following steps:
When the charging input port of terminal is connected charging with charger, if detecting, the terminal is in deadlock state, leads to
Cross the re-starting control circuit control start control interface and be in low level;
When the start control interface is in low level, the terminal is controlled to be restarted.
Further, the processor 501 is used to perform the deadlock reset routine that stores in memory 502, with realize with
Lower step:
When the charging input port of terminal is connected charging with charger, if detecting, the terminal is not in deadlock state,
The start control interface is controlled to be in high level by the re-starting control circuit;
When the start control interface is in high level, the terminal is controlled to be in charged state.
Further, the processor 501 is additionally operable to perform the deadlock reset routine stored in memory 502, to realize
Following steps:
Whether the charging input port for detecting the terminal connects the charger and is charged.
Alternatively, the re-starting control circuit includes:Metal-oxide semiconductor (MOS) metal-oxide-semiconductor, phase shift RC circuits and resistance.
Here, memory 502 can be volatile memory or nonvolatile memory, may also comprise volatibility and Fei Yi
Both the property lost memories.Wherein, nonvolatile memory can be read-only storage (ROM, Read Only Memory), can compile
Journey read-only storage (PROM, Programmable Read-Only Memory), Erasable Programmable Read Only Memory EPROM
(EPROM, Erasable Programmable Read-Only Memory), Electrically Erasable Read Only Memory
(EEPROM, Electrically Erasable Programmable Read-Only Memory), magnetic random access store
Device (FRAM, ferromagnetic random access memory), flash memory (Flash Memory), magnetic surface are deposited
Reservoir, CD or read-only optical disc (CD-ROM, Compact Disc Read-Only Memory);Magnetic surface storage can be
Magnetic disk storage or magnetic tape storage.Volatile memory can be random access memory (RAM, Random Access
Memory), it is used as External Cache.By exemplary but be not restricted explanation, the RAM of many forms can use, such as
Static RAM (SRAM, Static Random Access Memory), synchronous static RAM
(SSRAM, Synchronous Static Random Access Memory), dynamic random access memory (DRAM,
Dynamic Random Access Memory), Synchronous Dynamic Random Access Memory (SDRAM, Synchronous
Dynamic Random Access Memory), double data speed synchronous dynamic RAM (DDRSDRAM,
Double Data Rate Synchronous Dynamic Random Access Memory), enhanced synchronous dynamic random
Access memory (ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), synchronized links
Dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), direct rambus
Random access memory (DRRAM, Direct Rambus Random Access Memory).Description of the embodiment of the present invention is deposited
Reservoir 102 is intended to the memory of including but not limited to these and any other suitable type.
Memory 502 in the embodiment of the present invention is used to store various types of data to support the operation of terminal 50.This
The example of a little data includes:For any computer program operated in terminal 50, such as operating system and application program;Contact
Personal data;Telephone book data;Message;Picture;Video etc..Wherein, operating system includes various system programs, such as ccf layer,
Core library layer, driving layer etc., for realizing various basic businesses and the hardware based task of processing.Application program can include
Various application programs, such as media player (Media Player), browser (Browser) etc., for realizing various applications
Business.Realize that the program of present invention method may be embodied in application program.
The method that the embodiments of the present invention disclose can apply in processor 501, or be realized by processor 501.
Processor 501 is probably a kind of IC chip, has the disposal ability of signal.In implementation process, the above method it is each
Step can be completed by the integrated logic circuit of the hardware in processor 501 or the instruction of software form.Above-mentioned processing
Device 501 can be general processor, digital signal processor (DSP, Digital Signal Processor), or other can
Programmed logic device, discrete gate or transistor logic, discrete hardware components etc..Processor 501 can be realized or held
Disclosed each method, step and logic diagram in the row embodiment of the present invention.General processor can be microprocessor or appoint
What conventional processor etc..The step of method with reference to disclosed in the embodiment of the present invention, it can be embodied directly at hardware decoding
Reason device performs completion, or performs completion with the hardware in decoding processor and software module combination.Software module can be located at
In storage medium, the storage medium is located at memory 502, and processor 501 reads the information in memory 502, with reference to its hardware
The step of completing preceding method.
Specifically, the understanding of terminal provided in an embodiment of the present invention may be referred to saying for above-mentioned deadlock method for restarting embodiment
Bright, the embodiment of the present invention will not be repeated here.
Terminal provided in an embodiment of the present invention, when terminal is in deadlock state, terminal is inserted into charger, by restarting
Control circuit control terminal carries out reboot operation, so as to realize and insert charger reality for that can not win the end product of battery
The operation now restarted, realize reliable crash for terminal and restart design, improve reliability, the stability of product, meanwhile, drop
The low after-sales service cost of terminal.
In the exemplary embodiment, the embodiment of the present invention additionally provides a kind of computer-readable recording medium, such as including
The memory of computer program, above computer program can be by the computing devices in server, to complete described in preceding method
Step.Computer-readable recording medium can be that FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface are deposited
The memories such as reservoir, CD or CD-ROM;Can also be the various equipment for including one of above-mentioned memory or any combination, such as
Mobile phone, computer, tablet device, personal digital assistant etc..
The embodiment of the present invention also provides a kind of computer-readable recording medium simultaneously, and the computer-readable recording medium is deposited
Contain one or more program, one or more of programs can by one or more computing device, with realize with
Lower step:
When the charging input port of terminal is connected charging with charger, if detecting, the terminal is in deadlock state, leads to
The start control interface for crossing the re-starting control circuit control terminal of terminal is in low level;
When the start control interface is in low level, the terminal is controlled to be restarted.
Further, one or more of programs can be walked by one or more computing device so that realization is following
Suddenly:
When the charging input port of terminal is connected charging with charger, if detecting, the terminal is not in deadlock state,
The start control interface is controlled to be in high level by the re-starting control circuit;
When the start control interface is in high level, the terminal is controlled to be in charged state.
Further, one or more of programs can be walked by one or more computing device so that realization is following
Suddenly:
Whether the charging input port for detecting the terminal connects the charger and is charged.
Computer-readable recording medium provided in an embodiment of the present invention, when terminal is in deadlock state, terminal is inserted
Charger, terminal is controlled to carry out reboot operation by re-starting control circuit, so as to realize as the production of the terminal of battery can not be won
Product insertion charger realizes the operation restarted, and realizing reliable crash for terminal restarts design, improve product reliability,
Stability, meanwhile, reduce the after-sales service cost of terminal.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements not only include those key elements, and
And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Other identical element also be present in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal (can be mobile phone, computer, service
Device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific
Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art
Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot
Form, these are belonged within the protection of the present invention.