Summary of the invention
The technical problem to be solved in the present invention is, for the above-mentioned defect of prior art, there is provided a kind of mobile terminal that prevents not stop method, system and the mobile terminal of restarting, be intended to solve existing mobile terminal battery when inserting charger charging and be pulled out the problem of not stopping to restart caused.
The technical scheme that technical solution problem of the present invention adopts is as follows:
Prevent mobile terminal from not stopping a method of restarting, wherein, comprise the following steps:
A, when mobile terminal has detected that charger inserts, whether mobile terminal has detected battery in real time and has been pulled out;
B, when detecting that battery is pulled out, mobile terminal control starting procedure enter time delay wait for; When detecting that battery is not pulled out, mobile terminal keeps original state;
C, after battery is pulled out, mobile terminal continue detect whether have battery to insert; When again having detected that battery inserts, mobile terminal has continued starting procedure.
The described mobile terminal that prevents does not stop the method for restarting, and wherein, before steps A, also comprises:
Whether A0, mobile terminal detect has charger to insert; When having detected that charger inserts, enter steps A.
The described mobile terminal that prevents does not stop the method for restarting, and wherein, specifically comprises in steps A:
When mobile terminal has charger to insert, mobile terminal detects battery temperature in real time and detects the magnitude of voltage of pin, and more described battery temperature detects the size of the output voltage values of power management module in the magnitude of voltage of pin and mobile terminal.
The described mobile terminal that prevents does not stop the method for restarting, and wherein, specifically comprises in step B:
When mobile terminal detects that the magnitude of voltage of battery temperature detection pin is more than or equal to 10/11 of the output voltage values of power management module, then judge that battery is pulled out, the starting procedure of mobile terminal enters time delay and waits for, suspends configuration peripheral hardware;
When mobile terminal detects that the magnitude of voltage of battery temperature detection pin is greater than 1/11 of the output voltage values of power management module and is less than 10/11 of the output voltage values of power management module, then judge that battery is not pulled out, mobile terminal keeps original state.
The described mobile terminal that prevents does not stop the method for restarting, and wherein, specifically comprises in step C:
After battery is extracted, mobile terminal continues to detect the magnitude of voltage that battery temperature detects pin, when the magnitude of voltage that battery temperature detects pin is greater than 1/11 of the output voltage values of power management module and is less than 10/11 of the output voltage values of power management module, then judge that mobile terminal continues have battery to insert, mobile terminal continues starting procedure, continues configuration peripheral hardware.
Prevent mobile terminal from not stopping a system of restarting, wherein, comprising:
Voltage detection module, detects the magnitude of voltage of pin for detecting battery temperature in mobile terminal;
Voltage comparison module, detects the size of the output voltage values of power management module in the magnitude of voltage of pin and mobile terminal for more described battery temperature;
Start control module, for controlling the starting procedure of mobile terminal according to the comparative result of voltage comparison module.
The described mobile terminal that prevents does not stop the system of restarting, and wherein, also comprises:
Whether charging detection module, have charger to insert mobile terminal for detecting.
A kind of mobile terminal, wherein, comprises the above-mentioned mobile terminal that prevents and does not stop the system of restarting.
Described mobile terminal, wherein, described mobile terminal is mobile phone or computer.
A kind of mobile terminal that prevents provided by the present invention does not stop method, system and the mobile terminal of restarting, efficiently solve the battery when mobile terminal inserts charger charging to be pulled out and to cause mobile terminal not stop the problem of restarting, whether be pulled out by detecting battery in real time, when detecting that battery is pulled out, the starting procedure of mobile terminal enters time delay and waits for; When not detecting that battery is pulled out, mobile terminal keeps original state, and after battery is pulled out, whether mobile terminal continues to detect has battery to insert; When again having detected that battery inserts, mobile terminal has continued starting procedure; Thus avoid mobile terminal and do not stop to restart, its implementation is simple, and by software simulating, cost is lower.
Embodiment
The invention provides a kind of mobile terminal that prevents and do not stop method, system and the mobile terminal of restarting, for making object of the present invention, technical scheme and advantage clearly, clearly, developing simultaneously referring to accompanying drawing, the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Refer to Fig. 1, Fig. 1 is the flow chart of the method preferred embodiment preventing mobile terminal from not stopping to restart provided by the invention, comprises the following steps:
Step S100, when mobile terminal has detected that charger inserts, whether mobile terminal has detected battery in real time and has been pulled out;
Step S200, when detecting that battery is pulled out, mobile terminal control starting procedure enter time delay wait for; When detecting that battery is not pulled out, mobile terminal keeps original state;
Step S300, after battery is pulled out, mobile terminal continue detect whether have battery to insert; When again having detected that battery inserts, mobile terminal has continued starting procedure.
Below in conjunction with specific embodiment, above-mentioned steps is described in detail.
After software detection is inserted to charger, when namely mobile terminal is in charged state, mobile terminal detects battery temperature in real time and detects the magnitude of voltage of pin, and more described battery temperature detects the size of the output voltage values of power management module in the magnitude of voltage of pin and mobile terminal.
Particularly, mobile terminal detects by analog digital converting unit ADC the magnitude of voltage Vadc that battery temperature detects pin, and namely the output voltage VDD of the power management module of mobile terminal is by the magnitude of voltage after pull-up resistor R1.If the battery in mobile terminal is not pulled out, then the output voltage VDD of power management module connects the thermistor R2 in battery by pull-up resistor R1, pull-up resistor R1 and thermistor R2 carries out dividing potential drop to output voltage VDD, then delivers to analog digital converting unit ADC and detects.The battery temperature that so analog digital converting unit ADC detects detects the magnitude of voltage Vadc=VDD*R2/(R1+R2 of pin).Owing to not being pulled out at battery, in charging process, thermistor R2 is along with the change resistance also respective change of temperature, but the resistance of thermistor R2 and pull-up resistor R1 does not have the difference of the order of magnitude, and namely both resistance gaps are within 10 times.From formula above, when battery is not in the terminal pulled out: 1/11VDD<Vadc<10/11VDD.Correspondingly, if the battery in mobile terminal is pulled out, because battery does not exist, so corresponding battery connector pin resistance to earth (being equivalent to R2) is very large, its value is far longer than pull-up resistor R1, and namely Vadc is more than or equal to 10/11VDD, Vadc and vdd voltage almost equal, but due to the existence of pull-up resistor R1, both values are also not exclusively equal.When battery is pulled out, both differences are quite little.
So when detecting that the magnitude of voltage of battery temperature detection pin is more than or equal to 10/11 of the output voltage values of power management module, then judge that battery is pulled out, the starting procedure of mobile terminal enters time delay and waits for, suspends configuration peripheral hardware.Specifically, if battery is pulled out, then mobile terminal is in off-mode, powered battery line level is almost nil, but mobile terminal is in charger insert state, charger can by power management module to the electric capacity of voltage regulation charging on powered battery line, the voltage on powered battery line is made to increase along with the energy increase of electric capacity of voltage regulation, when the voltage of powered battery line reaches the minimum incoming level needed for power management module, power management module activates correlation output level, start to the system power supply of mobile terminal (mainly powering to base band and internal memory), after output voltage stabilization, then power management module resets baseband chip, thus make base band start starting procedure, running operating system, after input/output interface state between the base band that configuration is relevant and peripheral hardware, software suspends configuration peripheral hardware, for example suspend collocating LCD, camera, the peripheral hardwares such as backlight and radio-frequency communication module, thus put and stopped mobile terminal and do not stop to restart, solve the battery when mobile terminal inserts charger charging to be pulled out and to cause mobile terminal not stop the problem of restarting.
Correspondingly, when detecting that the magnitude of voltage of battery temperature detection pin is greater than 1/11 of the output voltage values of power management module and is less than 10/11 of the output voltage values of power management module, then judge that battery is not pulled out, mobile terminal keeps original state.Specifically, under mobile terminal is in charged state, mobile terminal detects that battery temperature detects the voltage Vadc:1/11VDD<Vadc<10/11VDD of pin in real time, then battery is not pulled out, so mobile terminal still keeps original state, do not change, also there will not be mobile terminal not stop the phenomenon of restarting.Called mobile terminal keep original state just to refer to software does not make any change to mobile terminal because battery is not extracted in the terminal, original state is off-mode, remains off-mode now; Original state is open state, remains open state now.
After battery is pulled out, whether mobile terminal continues to detect has battery to insert; When again having detected that battery inserts, mobile terminal has continued starting procedure.Specifically, after battery is extracted, mobile terminal continues to detect the magnitude of voltage that battery temperature detects pin, when the magnitude of voltage that battery temperature detects pin is greater than 1/11 of the output voltage values of power management module and is less than 10/11 of the output voltage values of power management module, then judge that mobile terminal continues have battery to insert, mobile terminal continues starting procedure, continues configuration peripheral hardware, mobile terminal-opening.
After mobile terminal detects that battery is pulled out, namely detect that the magnitude of voltage of battery temperature detection pin is more than or equal to 10/11 of the output voltage values of power management module, the starting procedure of mobile terminal enters time delay and waits for, suspends configuration peripheral hardware.Mobile terminal continues to detect the magnitude of voltage Vadc that battery temperature detects pin, when battery temperature detect pin magnitude of voltage Vadc meet 1/11VDD<Vadc<10/11VDD time, then show have battery to insert in mobile terminal, so mobile terminal continues starting procedure, continue configuration peripheral hardware, thus complete configuration peripheral hardware, thus the phenomenon that mobile terminal do not stop to restart can not be produced.
Further, before described step S100, also comprise: whether S101, mobile terminal detect has charger to insert; When having detected that charger inserts, enter step S100.Namely detect mobile terminal and whether have charging, if not charging, software does not start or keeps waiting for, not triggering following flow process; When there being charging, software triggers, and enters follow-up flow process.
Do not stop the method for restarting based on the above-mentioned mobile terminal that prevents, present invention also offers a kind of mobile terminal that prevents and do not stop the system of restarting, as shown in Figure 2, comprising:
Voltage detection module 10, detects the magnitude of voltage of pin for detecting battery temperature in mobile terminal; As detailed above.
Voltage comparison module 20, detects the size of the output voltage values of power management module in the magnitude of voltage of pin and mobile terminal for more described battery temperature; As detailed above.
Start control module 30, for controlling the starting procedure of mobile terminal according to the comparative result of voltage comparison module 20; As detailed above.
Particularly, described voltage comparison module 20 detects the size of the output voltage values of power management module in the magnitude of voltage of pin and mobile terminal for more described battery temperature; When battery temperature detects the voltage Vadc:1/11VDD<Vadc<10/11VDD of pin, battery is not pulled out, and start control module 30 controls mobile terminal and keeps original state.When the voltage Vadc that battery temperature detects pin is more than or equal to 10/11VDD, battery is pulled out, and start control module 30 controls the starting procedure of mobile terminal, enters time delay and waits for.
Further, described voltage detection module 10, after battery is pulled out, continues to detect the magnitude of voltage that battery temperature detects pin.When voltage comparison module 20 compare battery temperature detect the voltage Vadct of pin again between 1/11VDD to 10/11VDD time, show that battery is inserted in mobile terminal, start control module 30 controls the starting procedure of mobile terminal, exits time delay and waits for, continue starting procedure.
Further, please continue to refer to Fig. 2, described in prevent mobile terminal from not stopping to restart system also comprise: charging detection module 40, for detect whether have charger insert mobile terminal.
Do not stop the system of restarting based on the above-mentioned mobile terminal that prevents, present invention also offers a kind of mobile terminal, comprise the above-mentioned mobile terminal that prevents and do not stop the system of restarting.
Mobile terminal of the present invention is not limited to mobile phone, also can be used for other mobile terminals of computer, digital camera etc.
In sum, a kind of mobile terminal that prevents provided by the invention does not stop method, system and the mobile terminal of restarting, by when inserting charger charging to mobile terminal, in real-time detection mobile terminal, whether battery is pulled out, when detecting that battery is pulled out, the starting procedure of mobile terminal enters time delay and waits for; When not detecting that battery is pulled out, mobile terminal keeps original state, and whether mobile terminal continuation detection has battery to insert after battery is extracted; When having detected that battery inserts, mobile terminal has continued starting procedure, thus prevents mobile terminal from not stopping to restart, solve the battery when mobile terminal inserts charger charging to be pulled out and to cause mobile terminal not stop the problem of restarting, its implementation is simple, and by software simulating, cost is lower.
Should be understood that, application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can be improved according to the above description or convert, and all these improve and convert the protection range that all should belong to claims of the present invention.