CN101645033A - Debugging method in abnormality of mobile phone software - Google Patents
Debugging method in abnormality of mobile phone software Download PDFInfo
- Publication number
- CN101645033A CN101645033A CN200910051368A CN200910051368A CN101645033A CN 101645033 A CN101645033 A CN 101645033A CN 200910051368 A CN200910051368 A CN 200910051368A CN 200910051368 A CN200910051368 A CN 200910051368A CN 101645033 A CN101645033 A CN 101645033A
- Authority
- CN
- China
- Prior art keywords
- mobile phone
- software
- cell phone
- computing machine
- debug command
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 23
- 230000005856 abnormality Effects 0.000 title abstract description 4
- 238000012360 testing method Methods 0.000 claims abstract description 17
- 230000006870 function Effects 0.000 claims description 13
- 238000001514 detection method Methods 0.000 claims description 8
- 230000002159 abnormal effect Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a debugging method in abnormality of mobile phone software, comprising the following steps: taking out memory information, register information and stacking information thereinof a mobile phone system and storing in a computer or a document system of the mobile phone when the mobile phone software is detected to be abnormal; simultaneously generating a corresponding scriptdocument; and operating the script document by using a professional software simulation test tool to analyze and debug the stored information to find out the reason of abnormality of the mobile phone.
Description
Technical field
The present invention relates to the debugging field of mobile phone, the adjustment method when particularly a kind of cell phone software is unusual.
Background technology
The speed of cell phone software research and development at present is very fast, and in the performance history of mobile phone, the peopleware can often be perplexed by mobile phone deadlock phenomenon.This problem is general difficult to search reason, and in case the words that occur, just belong to more serious problem, at present, searching of this class problem generally need be by emulation testing instruments such as trace32, but this class instrument is relatively more expensive, use has been had certain limitation, so just press for the easy-to-use adjustment method of a kind of convenience.
Summary of the invention
The purpose of this invention is to provide a kind of method that realizes mobile phone automatic test, realize the automatic test after cell phone software is researched and developed.
The invention provides the adjustment method of a kind of cell phone software when unusual, may further comprise the steps:
1.1, when cell phone software takes place when unusual, whether the detection of handset system receives debug command, then changes next step if receive;
1.2, preserve the current internal storage data of described cell phone system and register data and with its generation script file;
1.3, function software emulation testing instrument moves analysis and the test that described script file carries out described software anomaly.
Described step 1.1 judges that at first whether described cell phone software is unusual, may further comprise the steps:
2.1, set up database, memory mobile phone software anomaly type;
2.2, the detection of handset application state and and the software anomaly type of described database storing compare, if unanimity judges that then described cell phone software state is for unusual.
The type of the described debug command in the described step 1.1 comprises the first debug command signal and the second debug command signal.
When described step 1.1 receives the first debug command signal, carry out the debugging of following steps:
4.1, described mobile phone is connected computing machine and detects whether receive the download instruction that described computing machine sends, then change next step if having;
4.2, download the current internal storage data of described cell phone system and register data to described computing machine, and with its generation script file storage;
4.3, function software emulation testing instrument moves the script file that described step 4.3 generates and carries out the analysis and the debugging of described software anomaly.
When described step 1.1 receives the second debug command signal, carry out the debugging of following steps:
5.1, set up a special memory headroom of described mobile phone, store current register information of described cell phone system and stack information;
5.2, restart described cell phone system, after restarting with the current register information of described special memory headroom storage and stack information unloading to described mobile phone file system, simultaneously with its generation script file storage to described mobile phone file system;
5.3, described mobile phone connected computing machine and the data file of the storage of the mobile phone file system in the described step 5.2 transferred to described computing machine preserve;
5.4, the function software emulation testing instrument operation script file that is kept at described computing machine carries out the analysis and the debugging of described software anomaly.
Number of patent application is 03139726, and the patented claim that name is called " mobile phone and PC computer communication system " discloses a kind of debugging scheme to mobile phone, but this scheme mainly is the connected mode that discloses a kind of hardware, does not relate to the software aspect.
Adjustment method when adopting a kind of cell phone software of the present invention unusual, this method detects cell phone software when unusual, memory information, register information and the stack information wherein of cell phone system are taken out and be kept in the file system of computing machine or mobile phone, generate the corresponding script file simultaneously, utilize the software emulation testing tool of specialty to move described script file then, the information of described preservation is analyzed and debugged, in the hope of finding the unusual reason of mobile phone.
Description of drawings
Fig. 1 is the main process flow diagram of the method for the invention;
Fig. 2 is the process flow diagram of the method for the invention when receiving first debug command;
Fig. 3 is the process flow diagram of the method for the invention when receiving second debug command.
Embodiment
Further specify technical scheme of the present invention below in conjunction with drawings and Examples.
Referring to Fig. 1, Fig. 1 has shown the method for the invention 100, may further comprise the steps:
101, take place when unusual when cell phone software, whether the detection of handset system receives debug command.
When cell phone software takes place when unusual, whether the detection of handset system receives debug command, then changes next step if receive.The type of described debug command comprises the first debug command signal and the second debug command signal.As an embodiment, the described first debug command signal is for receiving " # " key signals, and the second debug command signal is for receiving " * " key signals.
When carrying out this step, to judge at first whether described cell phone software is unusual, may further comprise the steps (step 2.1 and 2.2):
2.1, set up database, memory mobile phone software anomaly type;
2.2, the detection of handset application state and and the software anomaly type of described database storing compare, if unanimity judges that then described cell phone software state is for unusual.
102, preserve current internal storage data and register data and with its generation script file.
Promptly preserve current internal storage data of described cell phone system and register data and with its generation script file.
103, function software emulation testing instrument moves described script file and carries out unusual analysis and test.
The present invention is based on Qualcomm CDMA QC6010 single-chip Platform Implementation, on this platform, its software anomaly type comprises data abort (data interruption), prefetch abort (reading in advance to interrupt), undefined instruction (not clear operation) etc.As previously mentioned, the type of debug command comprises first debug command signal (receiving " # " key signals) and the second debug command signal (receiving " * " key signals).Handle in the function at exception vector, in save register information to the one global structure body variable, display abnormality type on 1cd enters an endless loop function at last then, and constantly whether monitoring has " * " or " # " key to press in this function.
Referring to Fig. 2, when software anomaly appears in mobile phone, at unusual interface (original program of Qualcomm can show some relevant informations on LCD), on keyboard, press " # " key, then cell phone system receives the first debug command signal, mobile phone can enter downloading mode, next carries out the debugging (referring to the flow process among Fig. 2 200) of following steps:
201, described mobile phone is connected the download instruction whether computing machine and detection receive described computing machine transmission.Be about to described mobile phone and connect computing machine and detect whether receive the download instruction that described computing machine sends, then change next step if having;
202, download current internal storage data of described cell phone system and register data to described computing machine, and with its generation script file storage.The relevant Software tool of regarded as output controlling that can do according to the original download protocol of high pass, increase internal memory and register information are kept at computer commands (download instruction), can also realize continuous transmitter register and memory information to computer terminal and save as corresponding file, generate script file for trace32 simulator use.
203, the Run Script file is implemented to analyze and debugging.The script file that function software emulation testing instrument moves described step 202 generation carries out the analysis and the debugging of described software anomaly.Utilize the trace32simulator instrument to carry out the script file that generates, script file can be automatically memory information, the elf file load, and relevant register is set, thus can pass through register R14, information such as storehouse go to analyze unusual reason.
Referring to Fig. 3, when software anomaly appears in mobile phone, at unusual interface (original program of Qualcomm can show some relevant informations on LCD), on keyboard, press " * " key, then cell phone system receives the second debug command signal, next carries out the debugging (referring to the flow process among Fig. 3 300) of following steps:
301, set up a special memory headroom of described mobile phone, store current register information of described cell phone system and stack information.This special memory headroom can't be initialized to blank after mobile phone is restarted, it also can be retained as original numerical value (prerequisite is that mobile phone does not cut off the power supply).Because be saved in the whole storehouse that also has current task in this memory headroom, so can utilize storehouse to follow the trail of the function calls relation.
302, restart described cell phone system, after restarting with the current register information of described special memory headroom storage and stack information unloading to described mobile phone file system, simultaneously with its generation script file storage to described mobile phone file system.
303, described mobile phone is connected computing machine and the data file of the storage of the mobile phone file system in the described step 302 is transferred to described computing machine preserve.
304, the function software emulation testing instrument operation script file that is kept at described computing machine carries out the analysis and the debugging of described software anomaly.The script file that utilizes trace32 simulator instrument carry out to generate, script file can be automatically memory information, elf file load, and relevant register is set, thereby can pass through register R14, and information such as storehouse go to analyze unusual reason.
Those of ordinary skill in the art will be appreciated that, above embodiment is used for illustrating the present invention, and be not to be used as limitation of the invention, as long as in connotation scope of the present invention, all will drop in claims scope of the present invention variation, the modification of above embodiment.
Claims (5)
- Adjustment method when 1, a kind of cell phone software is unusual is characterized in that, may further comprise the steps:1.1, when cell phone software takes place when unusual, whether the detection of handset system receives debug command, then changes next step if receive;1.2, preserve the current internal storage data of described cell phone system and register data and with its generation script file;1.3, function software emulation testing instrument moves analysis and the test that described script file carries out described software anomaly.
- 2, the method for claim 1 is characterized in that, described step 1.1 judges that at first whether described cell phone software is unusual, may further comprise the steps:2.1, set up database, memory mobile phone software anomaly type;2.2, the detection of handset application state and and the software anomaly type of described database storing compare, if unanimity judges that then described cell phone software state is for unusual.
- 3, method as claimed in claim 1 or 2 is characterized in that, the type of the described debug command in the described step 1.1 comprises the first debug command signal and the second debug command signal.
- 4, method as claimed in claim 3 is characterized in that, when described step 1.1 receives the first debug command signal, carries out the debugging of following steps:4.1, described mobile phone is connected computing machine and detects whether receive the download instruction that described computing machine sends, then change next step if having;4.2, download the current internal storage data of described cell phone system and register data to described computing machine, and with its generation script file storage;4.3, function software emulation testing instrument moves the script file that described step 4.3 generates and carries out the analysis and the debugging of described software anomaly.
- 5, method as claimed in claim 3 is characterized in that, when described step 1.1 receives the second debug command signal, carries out the debugging of following steps:5.1, set up a special memory headroom of described mobile phone, store current register information of described cell phone system and stack information;5.2, restart described cell phone system, after restarting with the current register information of described special memory headroom storage and stack information unloading to described mobile phone file system, simultaneously with its generation script file storage to described mobile phone file system;5.3, described mobile phone connected computing machine and the data file of the storage of the mobile phone file system in the described step 5.2 transferred to described computing machine preserve;5.4, the function software emulation testing instrument operation script file that is kept at described computing machine carries out the analysis and the debugging of described software anomaly.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200910051368A CN101645033A (en) | 2009-05-15 | 2009-05-15 | Debugging method in abnormality of mobile phone software |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200910051368A CN101645033A (en) | 2009-05-15 | 2009-05-15 | Debugging method in abnormality of mobile phone software |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN101645033A true CN101645033A (en) | 2010-02-10 |
Family
ID=41656927
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN200910051368A Pending CN101645033A (en) | 2009-05-15 | 2009-05-15 | Debugging method in abnormality of mobile phone software |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN101645033A (en) |
Cited By (15)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102096608A (en) * | 2011-01-17 | 2011-06-15 | 惠州Tcl移动通信有限公司 | Mobile terminal equipment and switching on and shutting down method thereof |
| CN102156674A (en) * | 2011-04-29 | 2011-08-17 | 深圳市五巨科技有限公司 | Test method and system for software products |
| CN102421004A (en) * | 2011-11-01 | 2012-04-18 | 深圳创维-Rgb电子有限公司 | Debugging method and device for TV software system |
| WO2012174942A1 (en) * | 2011-06-21 | 2012-12-27 | 中兴通讯股份有限公司 | Method and system for locating crash problem of mobile terminal |
| CN103186551A (en) * | 2011-12-28 | 2013-07-03 | 金蝶软件(中国)有限公司 | Anomaly analysis method and simulation system based on web application platform |
| CN103559136A (en) * | 2013-11-22 | 2014-02-05 | 北京云测信息技术有限公司 | Method and test system for intelligently executing script on mobile terminal |
| CN104461760A (en) * | 2014-11-28 | 2015-03-25 | 北京奇虎科技有限公司 | Script issuing method, device and system |
| CN104932979A (en) * | 2015-07-01 | 2015-09-23 | 王沛 | Software fault locating method and device |
| CN103559136B (en) * | 2013-11-22 | 2016-11-30 | 北京云测信息技术有限公司 | A kind of intelligence on mobile terminals performs method and the test system of script |
| CN107391358A (en) * | 2016-05-17 | 2017-11-24 | 大唐移动通信设备有限公司 | A kind of method for processing abnormal data and system |
| CN107832223A (en) * | 2017-11-18 | 2018-03-23 | 上海华虹集成电路有限责任公司 | A kind of effective ways for debugging utility |
| CN111625385A (en) * | 2020-05-25 | 2020-09-04 | 广东小天才科技有限公司 | Method, system, terminal device and storage medium for processing dead halt by adjusting RPM |
| CN113220537A (en) * | 2021-06-02 | 2021-08-06 | 上海节卡机器人科技有限公司 | Software monitoring method, device, equipment and readable storage medium |
| CN113448863A (en) * | 2021-07-12 | 2021-09-28 | 度普(苏州)新能源科技有限公司 | Method and device for testing utilization rate of dynamic stack of software of electronic control unit |
| CN116775501A (en) * | 2023-08-25 | 2023-09-19 | 荣耀终端有限公司 | A software testing method, server, readable storage medium and chip system |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6966051B2 (en) * | 2001-05-24 | 2005-11-15 | International Business Machines Corporation | Automatically generated symbol-based debug script executable by a debug program for software debugging |
| CN1770119A (en) * | 2004-10-29 | 2006-05-10 | 上海环达计算机科技有限公司 | Embedded apparatus debugging method and debugging tool therefor |
| CN101211309A (en) * | 2006-12-29 | 2008-07-02 | 中兴通讯股份有限公司 | Embedded system progress abnormal tracking position-finding method |
| CN101394646A (en) * | 2008-11-06 | 2009-03-25 | 北京天碁科技有限公司 | Software test method and system |
-
2009
- 2009-05-15 CN CN200910051368A patent/CN101645033A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6966051B2 (en) * | 2001-05-24 | 2005-11-15 | International Business Machines Corporation | Automatically generated symbol-based debug script executable by a debug program for software debugging |
| CN1770119A (en) * | 2004-10-29 | 2006-05-10 | 上海环达计算机科技有限公司 | Embedded apparatus debugging method and debugging tool therefor |
| CN101211309A (en) * | 2006-12-29 | 2008-07-02 | 中兴通讯股份有限公司 | Embedded system progress abnormal tracking position-finding method |
| CN101394646A (en) * | 2008-11-06 | 2009-03-25 | 北京天碁科技有限公司 | Software test method and system |
Cited By (21)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102096608B (en) * | 2011-01-17 | 2012-11-28 | 惠州Tcl移动通信有限公司 | Mobile terminal equipment |
| CN102096608A (en) * | 2011-01-17 | 2011-06-15 | 惠州Tcl移动通信有限公司 | Mobile terminal equipment and switching on and shutting down method thereof |
| CN102156674A (en) * | 2011-04-29 | 2011-08-17 | 深圳市五巨科技有限公司 | Test method and system for software products |
| WO2012174942A1 (en) * | 2011-06-21 | 2012-12-27 | 中兴通讯股份有限公司 | Method and system for locating crash problem of mobile terminal |
| CN102421004B (en) * | 2011-11-01 | 2014-09-03 | 深圳创维-Rgb电子有限公司 | Debugging method and device for television software system |
| CN102421004A (en) * | 2011-11-01 | 2012-04-18 | 深圳创维-Rgb电子有限公司 | Debugging method and device for TV software system |
| CN103186551B (en) * | 2011-12-28 | 2016-06-08 | 金蝶软件(中国)有限公司 | Exception analysis method and analogue system based on web application platform |
| CN103186551A (en) * | 2011-12-28 | 2013-07-03 | 金蝶软件(中国)有限公司 | Anomaly analysis method and simulation system based on web application platform |
| CN103559136B (en) * | 2013-11-22 | 2016-11-30 | 北京云测信息技术有限公司 | A kind of intelligence on mobile terminals performs method and the test system of script |
| CN103559136A (en) * | 2013-11-22 | 2014-02-05 | 北京云测信息技术有限公司 | Method and test system for intelligently executing script on mobile terminal |
| CN104461760A (en) * | 2014-11-28 | 2015-03-25 | 北京奇虎科技有限公司 | Script issuing method, device and system |
| CN104932979A (en) * | 2015-07-01 | 2015-09-23 | 王沛 | Software fault locating method and device |
| CN107391358B (en) * | 2016-05-17 | 2020-08-28 | 大唐移动通信设备有限公司 | Abnormal data processing method and system |
| CN107391358A (en) * | 2016-05-17 | 2017-11-24 | 大唐移动通信设备有限公司 | A kind of method for processing abnormal data and system |
| CN107832223A (en) * | 2017-11-18 | 2018-03-23 | 上海华虹集成电路有限责任公司 | A kind of effective ways for debugging utility |
| CN111625385A (en) * | 2020-05-25 | 2020-09-04 | 广东小天才科技有限公司 | Method, system, terminal device and storage medium for processing dead halt by adjusting RPM |
| CN113220537A (en) * | 2021-06-02 | 2021-08-06 | 上海节卡机器人科技有限公司 | Software monitoring method, device, equipment and readable storage medium |
| CN113448863A (en) * | 2021-07-12 | 2021-09-28 | 度普(苏州)新能源科技有限公司 | Method and device for testing utilization rate of dynamic stack of software of electronic control unit |
| CN113448863B (en) * | 2021-07-12 | 2024-02-09 | 度普(苏州)新能源科技有限公司 | A testing method and device for electronic control unit software dynamic stack usage rate |
| CN116775501A (en) * | 2023-08-25 | 2023-09-19 | 荣耀终端有限公司 | A software testing method, server, readable storage medium and chip system |
| CN116775501B (en) * | 2023-08-25 | 2023-12-12 | 荣耀终端有限公司 | Software testing method, server, readable storage medium and chip system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN101645033A (en) | Debugging method in abnormality of mobile phone software | |
| US10936075B2 (en) | Apparatus and method for adaptive gesture recognition in portable terminal | |
| EP1937010B1 (en) | Test apparatus | |
| CN106407800A (en) | A hook method and a terminal device | |
| CN105740151B (en) | A kind of mobile terminal UI controls check processing method and system | |
| CN105224462A (en) | The recognition methods of control element and device | |
| CN113778055B (en) | TBOX detection method and detection system | |
| CN105429775A (en) | Method and device for reporting log | |
| CN103577310A (en) | Method and device for recording software debugging logs | |
| CN110727581B (en) | Crash location method and electronic device | |
| CN105204849A (en) | Pressure test system and implementation method thereof | |
| CN109245195A (en) | The method, apparatus and storage device of mobile terminal and charging process | |
| CN112711516B (en) | Data processing method and related device | |
| CN109196480B (en) | Method for displaying equipment identification, mobile terminal and terminal equipment | |
| CN107734618A (en) | Application closing method, device, storage medium and electronic device | |
| CN101646227A (en) | Power management method for mobile terminal and mobile terminal | |
| US20160314036A1 (en) | Method and Apparatus for Repairing Dynamic Link Library File | |
| CN110377476B (en) | Terminal testing method, terminal and readable storage medium | |
| CN104572464A (en) | Automated test state saving method and device of Android platform | |
| CN113961380B (en) | Cross-application repair method, device, equipment and storage medium | |
| CN116669064A (en) | Wireless protocol testing method and electronic equipment | |
| CN106155733B (en) | Method and device for running application program | |
| CN105183656A (en) | Method, system and device for detecting package stop failure of application program | |
| CN117082170B (en) | On-off test method, test system and shared host | |
| CN112395185B (en) | Program testing method and related 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 | ||
| C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
| WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20100210 |