CN102833392B - A kind of method and system of mobile terminal autoboot - Google Patents

A kind of method and system of mobile terminal autoboot Download PDF

Info

Publication number
CN102833392B
CN102833392B CN201110163566.2A CN201110163566A CN102833392B CN 102833392 B CN102833392 B CN 102833392B CN 201110163566 A CN201110163566 A CN 201110163566A CN 102833392 B CN102833392 B CN 102833392B
Authority
CN
China
Prior art keywords
mobile terminal
switch unit
power
module
control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201110163566.2A
Other languages
Chinese (zh)
Other versions
CN102833392A (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.)
BYD Co Ltd
Original Assignee
BYD 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 BYD Co Ltd filed Critical BYD Co Ltd
Priority to CN201110163566.2A priority Critical patent/CN102833392B/en
Publication of CN102833392A publication Critical patent/CN102833392A/en
Application granted granted Critical
Publication of CN102833392B publication Critical patent/CN102833392B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a kind of system and method for mobile terminal autoboot, described system comprises computer, switch module, power module and mobile terminal, described mobile terminal is electrically connected with described computer, switch module and power module respectively, described switch module and power module are electrically connected with described computer respectively, and described switch module comprises trigger switch unit and power switch unit; Computer, for when the deadlock signal of mobile terminal being detected, controlling power module and stopping powering and control the disconnection of power switch unit to described mobile terminal, and starting timing; When timing time arrives the first Preset Time, control power module and close to described mobile terminal Power supply and control trigger switch unit.Can autoboot after the system and method for this mobile terminal autoboot can make mobile terminal crash, thus the testing time can be saved and improve testing efficiency.

Description

A kind of method and system of mobile terminal autoboot
Technical field
The invention belongs to the control field of mobile terminal, particularly relate to a kind of method and system of mobile terminal autoboot.
Background technology
Along with the development of mobile terminal, the requirement of people to mobile terminal is also more and more higher, therefore in the production process of mobile terminal, needs to carry out continuous print test to mobile terminal.If in the process of follow-on test, there is the situation that mobile terminal crashes, tester is just needed often to go to check that then the state of mobile terminal manually restarts mobile terminal, but be need to carry out mobile terminal test uninterruptedly in many test events, if the situation that tester does not have Timeliness coverage mobile terminal to crash, delaying of test event will inevitably be caused, therefore manually perform after mobile terminal crashes and restart, will lose time and reduce the efficiency of test.
Summary of the invention
The present invention is restarted for solving artificial execution after mobile terminal crashes in prior art, will lose time and reduce the problem of the efficiency of test, a kind of method and system of mobile terminal autoboot are provided, energy autoboot after mobile terminal is crashed, thus the testing time can be saved and improve testing efficiency.
The invention provides a kind of system of mobile terminal autoboot, described system comprises computer, switch module, power module and mobile terminal, described mobile terminal is electrically connected with described computer, switch module and power module respectively, described switch module and power module are electrically connected with described computer respectively, and described switch module comprises trigger switch unit and power switch unit;
Computer, for when the deadlock signal of mobile terminal being detected, controlling power module and stopping powering and control the disconnection of power switch unit to described mobile terminal, and starting timing; When timing time arrives the first Preset Time, control power module and close to described mobile terminal Power supply and control trigger switch unit.
The present invention also provides a kind of method of mobile terminal autoboot, described mobile terminal is electrically connected with computer, switch module and power module respectively, described switch module and power module are electrically connected with described computer respectively, described switch module comprises trigger switch unit and power switch unit, said method comprising the steps of:
When the deadlock signal of mobile terminal being detected, controlling power module and stopping disconnecting to described mobile terminal Power supply and control power switch unit, and starting timing;
When timing time arrives the first Preset Time, control power module and close to described mobile terminal Power supply and control trigger switch unit.
As can be seen from the scheme of above-mentioned mobile terminal autoboot, according to deadlock signal mobile terminal being detected, control power module to stop disconnecting to described mobile terminal Power supply and control power switch unit, namely after mobile terminal crashes, stop powering to described mobile terminal, make mobile terminal automatic shutdown, when timing time arrives the first Preset Time, mobile terminal realizes automatic shutdown, and then it is closed to described mobile terminal Power supply and control trigger switch unit to control power module, mobile terminal is resetted automatically, tester is no longer needed manually to perform restarting of mobile terminal when mobile terminal crashes, therefore save the testing time of mobile terminal and improve testing efficiency.
Accompanying drawing explanation
Fig. 1 is the structured flowchart of a kind of embodiment of system of mobile terminal autoboot of the present invention.
Fig. 2 is the structural representation of a kind of embodiment of system of mobile terminal autoboot of the present invention.
Fig. 3 is the flow chart of the first embodiment of method of mobile terminal autoboot of the present invention.
Fig. 4 is the flow chart of method the second embodiment of mobile terminal autoboot of the present invention.
Embodiment
In order to make technical problem solved by the invention, technical scheme and beneficial effect clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
The invention provides a kind of system of mobile terminal autoboot of embodiment, as depicted in figs. 1 and 2, described system comprises computer 1, switch module 2, power module 3 and mobile terminal 4, described mobile terminal is electrically connected with described computer 1, switch module 2 and power module 3 respectively, described switch module and power module are electrically connected with described computer respectively, and described switch module 2 comprises trigger switch unit 21 and power switch unit;
Computer 1, for when the deadlock signal of mobile terminal 4 being detected, controlling power module 3 and stopping powering and control the disconnection of power switch unit to described mobile terminal 4, and starting timing; When timing time arrives the first preset time T 1, control power module 3 and close to described mobile terminal 4 Power supply and control trigger switch unit 21.
As can be seen from above-mentioned scheme, computer 1 is according to deadlock signal mobile terminal 4 being detected, control power module 3 to stop disconnecting to described mobile terminal 4 Power supply and control power switch unit, namely after mobile terminal 4 crashes, stop powering to described mobile terminal 4, make mobile terminal 4 automatic shutdown, when timing time arrives the first Preset Time, mobile terminal 4 realizes automatic shutdown, and then it is closed to described mobile terminal 4 Power supply and control trigger switch unit 21 to control power module 3, mobile terminal 4 is resetted automatically, also tester is just no longer needed manually to perform restarting of mobile terminal 4 when mobile terminal 4 crashes, therefore save the testing time of mobile terminal 4 and improve testing efficiency.
In concrete enforcement, as described in Figure 2, computer 1 is by order wire and described switch module 2, and control the closed or disconnection of power switch unit and trigger switch unit 21, described order wire is go out the solid line between computer 1 and switch module 2 as shown in Figure 2.Described trigger switch unit 21 one end ground connection, the other end of described trigger switch unit 21 is connected with the startup contact onkey of described mobile terminal 4 by holding wire, when trigger switch unit 21 closes, trigger described mobile terminal 4 to start shooting, described holding wire is specially double dot dash line as shown in Figure 2.Described power switch unit comprises positive pole power switch unit K3 and negative pole power switch unit K4, one end of positive pole power supply unit K3 is connected with computer 1 by the first supply lines, the other end is connected with mobile terminal 4 by the first supply lines, negative pole power supply unit K4 one end is connected with computer 1 by the second supply lines, the other end is connected with mobile terminal 4 by the second supply lines, computer 1, also by order wire and described switch module 2, controls the closed of positive pole power switch unit K3, negative pole power switch unit K4 and trigger switch unit 21 or disconnects.When positive pole power switch unit K3 and negative pole power switch unit K4 closes, computer 1 powers to described mobile terminal 4.Described first supply lines is dotted line as shown in Figure 2, and the second supply lines is chain-dotted line as shown in Figure 2.
In concrete enforcement, in order to make computer 1 can detect the mobile terminal 4 after restarting, described computer 1, also for when trigger switch unit 21 closes, starts timing, when timing time arrives the second preset value T2, control trigger switch unit 21 disconnects and power switch unit closes.
As shown in Figure 2, one end of switch element 21 is connected to ground, and the other end is connected with the contact of described mobile terminal 4, when trigger switch unit 21 closes, triggers described mobile terminal 4 and starts to start.Computer 1 is also connected to realize the detection to mobile terminal with mobile terminal 4 by detecting data wire, detects the solid line that data wire is the computer 1 of anticipating out shown in Fig. 2 and mobile terminal 4.Described detection data wire is only when power switch unit is closed, could communicate with mobile terminal 4, therefore when timing time arrives the second preset value T2, described mobile terminal 4 has started complete, now do not need again to the triggering that mobile terminal 4 is started shooting, therefore can control trigger switch unit 21 to disconnect and power switch unit closes, thus computer 1 can realize detecting communication connection to the mobile terminal 4 after restarting.
In concrete enforcement, the span of the first preset time T 1 is: 3-5 s, and the span of the second preset time T 2 is 5-8 s.
In concrete enforcement, the power switch unit that described power module 3 comprises power subsystem and is electrically connected with described power subsystem and mobile terminal respectively, described power switch unit is electrically connected with computer 1;
Described computer 1, also disconnects for controlling described power switch unit or closes.Namely when described power switch unit disconnects, power subsystem stops powering to described mobile terminal 4, and when described power switch unit closes, power subsystem powers to described mobile terminal 4.In the present embodiment, for ease of the control to power module 3, described power module 3 is specially programmable power supply 31.
In concrete enforcement, for the ease of the connection between power module 3 and mobile terminal 4, described system also comprises the indirect supplying cell 5 be electrically connected with described power module 3 and mobile terminal 4 respectively.Indirect supplying cell 5 is specially needs the outside false battery providing power supply, and himself does not have function of supplying power.In the present embodiment, as shown in Figure 2, indirect supplying cell 5 is arranged in the battery case of mobile terminal 4, the positive pole of indirect supplying cell 5 is connected with the positive pole of programmable power supply 31, the negative pole of indirect supplying cell 5 is connected with the negative pole of programmable power supply 31, specifically being controlled by programmable power supply 31 for power-off of described indirect supplying cell 5, described programmable power supply 31 is electrically connected with described computer 1.
In concrete enforcement, in order to realize the autoboot of mobile terminal, the invention provides the method for the mobile terminal autoboot of the first embodiment, described mobile terminal 4 is electrically connected with computer 1, switch module 2 and power module 3 respectively, described switch module 2 and power module 3 are electrically connected with described computer 1 respectively, described switch module 2 comprises trigger switch unit 21 and power switch unit, as shown in Figure 3, said method comprising the steps of:
Step S01, when the deadlock signal of mobile terminal 4 being detected, controlling power module and stopping disconnecting to described mobile terminal Power supply and control power switch unit, entering step S02;
Step S02, starts timing, enters step S03;
Step S03, when timing time arrives the first preset time T 1, controls power module 3 and closes to described mobile terminal 4 Power supply and control trigger switch unit 21.
For step S01, mobile terminal 4 to be crashed the detection of signal, with the mobile terminal 4 of Android platform, computer 1 uses java Programming with Pascal Language for example, first computer 1 communicates with mobile terminal 4 will set up adb(Android Debug Bridge, play debugging bridge) connect, after mobile phone crashes, adb connects and will disconnect, therefore detect mobile terminal 4 by monitoring adb state whether to crash, interface function is that boolean is Connected (): adb off-state in AndroidDebugBridge class returns false, adb connection status returns true, if certainly run into other types mobile phone or other Programming with Pascal Language, program does corresponding modify according to function interface.
As can be seen from above-mentioned scheme, according to deadlock signal mobile terminal 4 being detected, control power module 3 to stop disconnecting to described mobile terminal 4 Power supply and control power switch unit, namely after mobile terminal 4 crashes, stop powering to described mobile terminal 4, make mobile terminal 4 automatic shutdown, when timing time arrives the first Preset Time, mobile terminal 4 has realized automatic shutdown and then has controlled power module 3 closing to described mobile terminal 4 Power supply and control trigger switch unit 21, mobile terminal 4 is resetted automatically, also tester is just no longer needed manually to perform restarting of mobile terminal 4 when mobile terminal 4 crashes, therefore save the testing time of mobile terminal 4 and improve testing efficiency.
In concrete enforcement, in order to can detect the mobile terminal 4 after restarting, the present invention also provides the method for the second embodiment, is: as shown in Figure 4 with the difference of the first embodiment, described after step S03, further comprising the steps of:
Step S04, starts timing, enters step S05;
Step S05, when timing time arrives the second preset time T 2, controls trigger switch unit 21 and disconnects and control power switch cell conduction.
In concrete enforcement, the power switch unit that described power module 3 comprises power subsystem and is electrically connected with described power subsystem and mobile terminal respectively, described control power module stops the step of powering to described mobile terminal, is specially:
Control described power switch unit to disconnect;
The step that described control power module powers to described mobile terminal, is specially:
Control described power switch unit to close.
In the present embodiment, described power module 3 is specially programmable power supply 31, and described step S01, is specially:
Step S011, when the deadlock signal of mobile terminal 4 being detected, controlling programmable power supply 31 and stopping disconnecting to described mobile terminal 4 Power supply and control power switch unit, entering step S02;
Described step S03, is specially:
Step S031, when timing time arrives the first preset time T 1, controls programmable power supply and closes to described mobile terminal 4 Power supply and control trigger switch unit 21, enter step S04.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (7)

1. the system of a mobile terminal autoboot, it is characterized in that: described system comprises computer, switch module, power module and mobile terminal, described mobile terminal is electrically connected with described computer, switch module and power module respectively, described switch module and power module are electrically connected with described computer respectively, described switch module comprises trigger switch unit and power switch unit, wherein, one end ground connection of described trigger switch unit, the other end of described trigger switch unit is connected with the startup contact of described mobile terminal;
Computer, whether crash for mobile terminal described in the state-detection by detecting Android debugging bridge (ABD), and when the deadlock signal of mobile terminal being detected, controlling power module and stopping powering and control the disconnection of power switch unit to described mobile terminal, and starting timing; When timing time arrives the first Preset Time, control power module and close to described mobile terminal Power supply and control trigger switch unit; When trigger switch unit closes, start timing, when timing time arrives the second Preset Time, control trigger switch unit disconnects and power switch unit closes.
2. the system as claimed in claim 1, is characterized in that: described power module is specially programmable power supply.
3. the system as claimed in claim 1, is characterized in that: the power switch unit that described power module comprises power subsystem and is electrically connected with described power subsystem and mobile terminal respectively, and described power switch unit is electrically connected with computer;
Described computer, also disconnects for controlling described power switch unit or closes.
4. the system as claimed in claim 1, is characterized in that: described system also comprises the indirect supplying cell be electrically connected with described power module and mobile terminal respectively;
Described indirect supplying cell, is supplied to described mobile terminal for the control according to computer by the electric energy of power module.
5. the method for a mobile terminal autoboot, described mobile terminal is electrically connected with computer, switch module and power module respectively, described switch module and power module are electrically connected with described computer respectively, described switch module comprises trigger switch unit and power switch unit, wherein, one end ground connection of described trigger switch unit, the other end of described trigger switch unit is connected with the startup contact of described mobile terminal, it is characterized in that: said method comprising the steps of:
By detect Android debug bridge (ABD) state-detection described in mobile terminal whether crash;
When the deadlock signal of mobile terminal being detected, controlling power module and stopping disconnecting to described mobile terminal Power supply and control power switch unit, and starting timing;
When timing time arrives the first Preset Time, control power module and close to described mobile terminal Power supply and control trigger switch unit;
Start timing;
When timing time arrives the second Preset Time, control the disconnection of trigger switch unit and control power switch unit to close.
6. method as claimed in claim 5, described power module is specially programmable power supply.
7. method as claimed in claim 5, the power switch unit that described power module comprises power subsystem and is electrically connected with described power subsystem and mobile terminal respectively, described control power module stops the step of powering to described mobile terminal, is specially:
Control described power switch unit to disconnect;
The step that described control power module powers to described mobile terminal, is specially:
Control described power switch unit to close.
CN201110163566.2A 2011-06-17 2011-06-17 A kind of method and system of mobile terminal autoboot Active CN102833392B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110163566.2A CN102833392B (en) 2011-06-17 2011-06-17 A kind of method and system of mobile terminal autoboot

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110163566.2A CN102833392B (en) 2011-06-17 2011-06-17 A kind of method and system of mobile terminal autoboot

Publications (2)

Publication Number Publication Date
CN102833392A CN102833392A (en) 2012-12-19
CN102833392B true CN102833392B (en) 2015-08-26

Family

ID=47336357

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110163566.2A Active CN102833392B (en) 2011-06-17 2011-06-17 A kind of method and system of mobile terminal autoboot

Country Status (1)

Country Link
CN (1) CN102833392B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104104519B (en) * 2013-04-01 2018-07-13 南京中兴软件有限责任公司 A kind of power-off restarting method, apparatus and system
CN103473145B (en) * 2013-09-25 2017-02-08 小米科技有限责任公司 Terminal crash reset method, device and terminal
CN103944755A (en) * 2014-04-02 2014-07-23 云南大学 Universal method for detection and recovery of communication dead halt of network switching device
CN105279041B (en) * 2015-11-11 2018-06-22 广东欧珀移动通信有限公司 A kind of method and device restarted automatically after terminal crash
CN105675976B (en) * 2016-03-03 2018-06-15 国网山东省电力公司郓城县供电公司 Remote reboot terminal device
CN105786657A (en) * 2016-03-25 2016-07-20 宇龙计算机通信科技(深圳)有限公司 Terminal halting processing method and terminal
CN106250455B (en) * 2016-07-27 2020-02-11 北京奇虎科技有限公司 Mobile terminal file management method and system
CN106708598B (en) * 2016-07-29 2021-03-19 腾讯科技(深圳)有限公司 Virus analysis environment building method and device
CN106325454B (en) * 2016-08-23 2020-01-14 北京小米移动软件有限公司 Power supply control device and method and electronic equipment
CN108614490B (en) * 2018-06-11 2020-06-16 浙江国自机器人技术有限公司 Device, system and method for restarting industrial personal computer
CN108762159B (en) * 2018-06-11 2020-10-13 浙江国自机器人技术有限公司 Industrial personal computer restarting device, system and method
CN110212639B (en) * 2019-04-04 2021-08-03 国网山东省电力公司济宁供电公司 Offline local automatic restart controller and restart method for electric energy remote transmission terminal
CN113434347B (en) * 2021-06-25 2023-02-07 上海商米科技集团股份有限公司 Power-off automatic test system and method for mobile terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201213306Y (en) * 2008-03-24 2009-03-25 中兴通讯股份有限公司 Mobile phone for test
CN101582045A (en) * 2008-05-16 2009-11-18 鸿富锦精密工业(深圳)有限公司 Computer test system and method
CN101860624A (en) * 2010-06-21 2010-10-13 中兴通讯股份有限公司 Crash auto-restart method and mobile phone

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201213306Y (en) * 2008-03-24 2009-03-25 中兴通讯股份有限公司 Mobile phone for test
CN101582045A (en) * 2008-05-16 2009-11-18 鸿富锦精密工业(深圳)有限公司 Computer test system and method
CN101860624A (en) * 2010-06-21 2010-10-13 中兴通讯股份有限公司 Crash auto-restart method and mobile phone

Also Published As

Publication number Publication date
CN102833392A (en) 2012-12-19

Similar Documents

Publication Publication Date Title
CN102833392B (en) A kind of method and system of mobile terminal autoboot
US20170120768A1 (en) Electric quantity monitoring device, navigation system and vehicle
CN107948302B (en) Life cycle management method and system of Internet of things embedded equipment
CN102262432B (en) System and method for automatic rebooting subsequent to crash of Modem of smart phone
CN109445981B (en) Computer running state monitoring device
CN202851229U (en) Intelligent protection device of starter of automobile
CN103105915A (en) Intelligent terminal reset method and intelligent terminal reset system
CN103425506A (en) Powering off method, starting up method and communication terminal
CN109067416B (en) Method for realizing hot plug and start of SIM card and intelligent hardware
CN111942216A (en) Battery thermal runaway monitoring method, device and system and vehicle
CN102299992A (en) Terminal as well as method and device for controlling same
CN104270486A (en) Mobile terminal reset system and method of non-removable battery and mobile terminal with non-removable battery
CN105599706A (en) Standby management method and system of intelligent vehicle-mounted information entertainment system
CN102710859B (en) Method for regularly starting terminal and mobile terminal
CN106101406B (en) Shutdown alarm triggering processing method based on mobile terminal and mobile terminal
CN101930382B (en) Method, circuit and terminal for starting terminal with memory
CN106230605B (en) A kind of management system based on AUTOSAR In-vehicle networking
CN102944734A (en) Method for monitoring terminal state, monitoring circuit and terminal
CN101287034A (en) Method and device for starting up mobile phone
CN106383750B (en) A kind of hardware watchdog circuit for remote controllers
CN102053941B (en) Portable device with reciprocating type detection terminal and detection and control method thereof
CN112721639B (en) Relay control method and device
CN103369084A (en) Automatic test system and method of mobile phone
CN103699857B (en) The anti-hacking device of electronic equipment and electronic equipment
CN209028601U (en) Computer operation condition monitoring device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant