CN108647140A - A kind of test method and test system of mobile terminal - Google Patents
A kind of test method and test system of mobile terminal Download PDFInfo
- Publication number
- CN108647140A CN108647140A CN201810383710.5A CN201810383710A CN108647140A CN 108647140 A CN108647140 A CN 108647140A CN 201810383710 A CN201810383710 A CN 201810383710A CN 108647140 A CN108647140 A CN 108647140A
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- test
- boot code
- state
- flag bit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
The invention discloses a kind of test methods of mobile terminal and test system, the test method to include:Step A, when detection mobile terminal is triggered by booting, test equipment judges the state of mobile terminal according to the data of the default flag bit of acquisition;Step B, it when judging the state to have tested, loads boot code and is switched on;Step C, when judging the state not test, boot code is skipped, load factory testing program and is switched on.The present invention skips boot code in the case where needing test, is loaded directly into factory testing program and enters test session, shortens the testing time, and to improve production test efficiency, method is simple, and reliability is high.
Description
Technical field
The present invention relates to technical field of measurement and test, more particularly to the test method and test system of a kind of mobile terminal.
Background technology
With being constantly progressive for science and technology, mobile terminal(Such as mobile phone)Production test automation it is quite ripe.How
It promotes production test efficiency and has become the key technology to be solved point in mobile terminal production.In existing test method, move
Dynamic terminal will be switched on into test program, need to load the spontaneous boot code provided to the user of Google or producer,
Run time differs for 10 ~ 30 seconds or even the time is longer;Then could enter production by forms such as test command or icons to survey
Test ring section.The boot code program not useful in factory testing, operation increase the testing time, greatly reduce
Production test efficiency.
Thus the prior art could be improved and improve.
Invention content
Place in view of above-mentioned deficiencies of the prior art, the purpose of the present invention is to provide a kind of test methods of mobile terminal
And test system, the test run boot code to solve existing mobile terminal cause the testing time to extend, and reduce production
The problem of testing efficiency.
In order to achieve the above object, this invention takes following technical schemes:
A kind of test method of mobile terminal comprising:
Step A, when detection mobile terminal is triggered by booting, test equipment judges to move according to the data of the default flag bit of acquisition
The state of terminal;
Step B, it when judging the state to have tested, loads boot code and is switched on;
Step C, when judging the state not test, boot code is skipped, load factory testing program and is switched on.
In the test method of the mobile terminal, before the step A, further include:
After the completion of mobile terminal produces, the initial value of default flag bit is set as 0.
In the test method of the mobile terminal, the step B is specifically included:
Step B1, when it is 1 to judge the data of default flag bit, the boot code edited in advance is loaded onto mobile terminal
Memory;
Step B2, boot code is run after the completion of detection booting.
In the test method of the mobile terminal, the step C is specifically included:
Step C1, when it is 0 to judge the data of default flag bit, boot code is skipped, the factory testing that will be edited in advance
Program is loaded onto the memory of mobile terminal;
Step C2, it runs factory testing program after the completion of detection booting and carries out factory testing;
Step C3, it is 1 by the data change of flag bit after factory testing passes through.
In the test method of the mobile terminal, after the step C3, further include:
Step C4, mobile terminal is restarted automatically, return to step A.
It is a kind of realize described in mobile terminal test method test system comprising mobile terminal and test equipment;
When the test equipment detection mobile terminal is triggered by booting, judge movement eventually according to the data of the default flag bit of acquisition
The state at end;When judging the state to have tested, test equipment loads boot code in the terminal, mobile whole
Complete booting in end;When judging the state not test, test equipment skips boot code, loads in the terminal
Factory testing program, mobile terminal complete booting.
Compared to the prior art, the test method of mobile terminal provided by the invention and test system, detect mobile terminal
When being triggered by booting, test equipment judges the state of mobile terminal according to the data of the default flag bit of acquisition;Described in judgement
State is to load boot code when having tested and be switched on;When judging the state not test, skips user and guide journey
Sequence loads factory testing program and is switched on.The present invention skips boot code in the case where needing test, is loaded directly into work
Factory's test program enters test session, shortens the testing time, and to improve production test efficiency, method is simple, reliably
Property it is high.
Description of the drawings
Fig. 1 is the test method flow chart of mobile terminal provided by the invention.
Fig. 2 is the structure diagram of test system provided by the invention.
Specific implementation mode
The present invention provides a kind of test method and test system of mobile terminal, is selected by the way of writing test flag bit
Select and whether load boot code, change the mode that existing mobile terminal-opening enters test program, test session not
Boot code is loaded, and then improves production test efficiency.To keep the purpose of the present invention, technical solution and effect more clear
Chu defines, and the present invention is described in more detail for the embodiment that develops simultaneously referring to the drawings.It should be appreciated that tool described herein
Body embodiment only to explain the present invention, is not intended to limit the present invention.
Referring to Fig. 1, the test method of mobile terminal provided by the invention includes:
When S100, detection mobile terminal are triggered by booting, test equipment judges to move according to the data of the default flag bit of acquisition
The state of terminal;
S200, when judging the state to have tested, load boot code simultaneously be switched on;
S300, when judging the state not test, skip boot code, load factory testing program is simultaneously switched on.
After the completion of the mobile terminal production, in its region NV(A storage region in mobile terminal)It is previously written default
The data of flag bit.In the present embodiment, data indicate that it does not carry out production test for 0, and the state of mobile terminal is not test;Number
Production test is passed through according to for 1 expression, the state of mobile terminal is to have tested.Then before the step S100, further include:
After the completion of mobile terminal production, the initial value of default flag bit is set as 0.Number in the region of the default flag bit storage
According to(I.e. 0,1)It is arranged to that user is forbidden to rewrite, such as mobile phone factory reset;Only test system could change it
It writes.
When carrying out factory testing, mobile terminal is connect with test equipment(Generally connected using data line).When detection moves
When dynamic terminal is triggered by booting, test equipment directly accesses the regions NV and obtains the data of default flag bit to judge mobile terminal
State.
In the present embodiment, the step S200 is specifically included:
Step 210, when it be 1 to judge the data of default flag bit, the boot code edited in advance is loaded onto mobile end
The memory at end.
Boot code is run after the completion of step 220, detection booting.
If flag bit is 1, then it represents that mobile terminal has already been through factory testing and qualification, and state is to have tested.
It is this when being switched on again by the mobile phone of factory testing, indicate that system is switched on for the first time, by normal load boot code.
Operation boot code, later can normal use to guide user how to use the machine and understand the machine function.
In the present embodiment, the step S300 is specifically included:
Step 310, when it is 0 to judge the data of default flag bit, skip boot code, the factory testing that will be edited in advance
Program is loaded onto the memory of mobile terminal;
Factory testing program is run after the completion of step 320, detection booting and carries out factory testing;
It is 1 by the data change of flag bit after step 330, factory testing pass through.
If flag bit is 0, illustrate that mobile terminal also not by factory testing, need to enter test session, then be not necessarily to load
Boot code directly carries out factory testing.Compared with existing test method, the load fortune of boot code is saved
The row time improves production test efficiency to reduce the testing time.
After the step 330, further include:
Step 340 restarts mobile terminal, return to step S100 automatically.
It is switched on again by the mobile terminal of factory testing, flag bit has been set to 1, and return to step S100 is to flag bit
After judging again, system is switched on for the first time by normal load boot code.
It is understood that, the step S200 and step S300 are step arranged side by side, and correspondence is executed according to the data of flag bit
The step of.In the specific implementation, judge that the method for mobile terminal state can also replace setting to 0 for flag bit using hardware mode
1 is set, to distinguish the state of mobile terminal.Fuse circuit is such as used, it is specific as a fuse and resistance is arranged on circuit board, it will melt
One end ground connection of silk;The other end connection processing device of fuse(Such as MCU)Detection foot, high level also connected by resistance.Mobile phone
Not by factory testing, fuse is unblown, then it is low level with pulleding down to detect foot, is equivalent to the data of default flag bit
It is 0;After factory testing, by fuse failure, then detects foot and be pulled up as high level by resistance, be equivalent to default flag bit
Data be 1.The data that the level height on foot can determine whether default flag bit are detected by judgement.
Based on the test method of above-mentioned mobile terminal, the embodiment of the present invention also provides a kind of for realizing mobile terminal
The test system of test method, referring to Fig. 2, the test system includes mobile terminal 10 and test equipment 20.The test
When equipment 20 detects mobile terminal by booting triggering, the state of mobile terminal is judged according to the data of the default flag bit of acquisition.
When judging the state to have tested, test equipment 20 loads boot code in the terminal, and mobile terminal is completed
Booting.When judging the state not test, test equipment 20 skips boot code, loads factory in the terminal
Test program, mobile terminal complete booting.
In conclusion the present invention chooses whether that loading user to mobile terminal guides journey by the value of judgement symbol position
Sequence needs the distinct program loaded by writing flag bit mode to distinguish cell phone system booting.It is jumped needing the in the case of of testing
Boot code is crossed, factory testing program is loaded directly into and enters test session, after relatively traditional load boot code
It enters back into factory testing program and saves 10 ~ 30 second time, the testing time is shortened, to improve production test efficiency, side
Method is simple, and reliability is high.
The division of above-mentioned function module, can be as needed by above-mentioned function only to for example, in practical applications
Distribution is completed by different function modules, that is, different function modules is divided into, to complete all or part of foregoing description
Function.
It, can according to the technique and scheme of the present invention and its hair it is understood that for those of ordinary skills
Bright design is subject to equivalent substitution or change, and all these changes or replacement should all belong to the guarantor of appended claims of the invention
Protect range.
Claims (6)
1. a kind of test method of mobile terminal, which is characterized in that including:
Step A, when detection mobile terminal is triggered by booting, test equipment judges to move according to the data of the default flag bit of acquisition
The state of terminal;
Step B, it when judging the state to have tested, loads boot code and is switched on;
Step C, when judging the state not test, boot code is skipped, load factory testing program and is switched on.
2. the test method of mobile terminal according to claim 1, which is characterized in that before the step A, also wrap
It includes:
After the completion of mobile terminal produces, the initial value of default flag bit is set as 0.
3. the test method of mobile terminal according to claim 2, which is characterized in that the step B is specifically included:
Step B1, when it is 1 to judge the data of default flag bit, the boot code edited in advance is loaded onto mobile terminal
Memory;
Step B2, boot code is run after the completion of detection booting.
4. the test method of mobile terminal according to claim 2, which is characterized in that the step C is specifically included:
Step C1, when it is 0 to judge the data of default flag bit, boot code is skipped, the factory testing that will be edited in advance
Program is loaded onto the memory of mobile terminal;
Step C2, it runs factory testing program after the completion of detection booting and carries out factory testing;
Step C3, it is 1 by the data change of flag bit after factory testing passes through.
5. the test method of mobile terminal according to claim 1, which is characterized in that after the step C3, also wrap
It includes:
Step C4, mobile terminal is restarted automatically, return to step A.
6. a kind of test system of test method that realizing mobile terminal described in claim 1, which is characterized in that including movement
Terminal and test equipment;
When the test equipment detection mobile terminal is triggered by booting, judge movement eventually according to the data of the default flag bit of acquisition
The state at end;When judging the state to have tested, test equipment loads boot code in the terminal, mobile whole
Complete booting in end;When judging the state not test, test equipment skips boot code, loads in the terminal
Factory testing program, mobile terminal complete booting.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810383710.5A CN108647140B (en) | 2018-04-26 | 2018-04-26 | Test method and test system of mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810383710.5A CN108647140B (en) | 2018-04-26 | 2018-04-26 | Test method and test system of mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108647140A true CN108647140A (en) | 2018-10-12 |
CN108647140B CN108647140B (en) | 2022-03-08 |
Family
ID=63747411
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810383710.5A Active CN108647140B (en) | 2018-04-26 | 2018-04-26 | Test method and test system of mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108647140B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109683039A (en) * | 2018-12-21 | 2019-04-26 | 苏州思必驰信息科技有限公司 | Off-line test method and system for electronic product |
CN110208632A (en) * | 2019-07-09 | 2019-09-06 | 深圳创维数字技术有限公司 | A kind of method, system and storage medium for electromagnetic compatibility testing |
CN110275807A (en) * | 2019-06-21 | 2019-09-24 | 上海创功通讯技术有限公司 | Detection method, system, equipment and the storage medium of smart machine |
CN112672329A (en) * | 2020-12-01 | 2021-04-16 | 佛山市顺德区美的洗涤电器制造有限公司 | Linkage function detection method and system and computer readable storage medium |
CN113284549A (en) * | 2021-05-19 | 2021-08-20 | 展讯通信(上海)有限公司 | Method and device for testing chip leakage-writing electric programmable fuse |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102446104A (en) * | 2010-09-30 | 2012-05-09 | 研祥智能科技股份有限公司 | Method for starting up computer system |
CN103929676A (en) * | 2014-04-30 | 2014-07-16 | 广州视源电子科技股份有限公司 | Method for remotely testing functions of intelligent television board card and intelligent television board card |
US9442831B1 (en) * | 2013-02-22 | 2016-09-13 | American Megatrends, Inc. | Automated testing of program code for processing a simple boot flag data structure |
-
2018
- 2018-04-26 CN CN201810383710.5A patent/CN108647140B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102446104A (en) * | 2010-09-30 | 2012-05-09 | 研祥智能科技股份有限公司 | Method for starting up computer system |
US9442831B1 (en) * | 2013-02-22 | 2016-09-13 | American Megatrends, Inc. | Automated testing of program code for processing a simple boot flag data structure |
CN103929676A (en) * | 2014-04-30 | 2014-07-16 | 广州视源电子科技股份有限公司 | Method for remotely testing functions of intelligent television board card and intelligent television board card |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109683039A (en) * | 2018-12-21 | 2019-04-26 | 苏州思必驰信息科技有限公司 | Off-line test method and system for electronic product |
CN110275807A (en) * | 2019-06-21 | 2019-09-24 | 上海创功通讯技术有限公司 | Detection method, system, equipment and the storage medium of smart machine |
CN110208632A (en) * | 2019-07-09 | 2019-09-06 | 深圳创维数字技术有限公司 | A kind of method, system and storage medium for electromagnetic compatibility testing |
CN112672329A (en) * | 2020-12-01 | 2021-04-16 | 佛山市顺德区美的洗涤电器制造有限公司 | Linkage function detection method and system and computer readable storage medium |
CN112672329B (en) * | 2020-12-01 | 2023-12-15 | 佛山市顺德区美的洗涤电器制造有限公司 | Linkage function detection method, system and computer readable storage medium |
CN113284549A (en) * | 2021-05-19 | 2021-08-20 | 展讯通信(上海)有限公司 | Method and device for testing chip leakage-writing electric programmable fuse |
CN113284549B (en) * | 2021-05-19 | 2022-05-31 | 展讯通信(上海)有限公司 | Method and device for testing chip leakage-writing electric programmable fuse |
Also Published As
Publication number | Publication date |
---|---|
CN108647140B (en) | 2022-03-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108647140A (en) | A kind of test method and test system of mobile terminal | |
CN102422299B (en) | Information device, method for preventing execution of unauthorized program code | |
CN104636275B (en) | The information protecting method and device of a kind of MCU chip | |
CN112542199B (en) | Method, circuit, storage medium and terminal for detecting flash memory error | |
CN103247345A (en) | Quick-flash memory and detection method for failure memory cell of quick-flash memory | |
CN105469832A (en) | Integrated circuit and memory self test method for integrated circuit | |
CN105045699A (en) | Method and system for automatic continuous running of consistency test of mobile terminal and intelligent card | |
CN102375103B (en) | Electronic product test device and method | |
CN104572385A (en) | System and method for detecting memory faults | |
CN115510804A (en) | Full-chip pin multiplexing automatic verification method, device, equipment and storage medium | |
US6671837B1 (en) | Device and method to test on-chip memory in a production environment | |
CN113791338B (en) | Chip testing method and device | |
CN109872756A (en) | A kind of memory method for deleting and device | |
CN105551528A (en) | Testing apparatus and method of high-speed large-capacity multi-chip Flash module based on ATE | |
CN103914212B (en) | A kind of terminal device and its application configuration method | |
CN103838664A (en) | Pressure testing method and device | |
CN110673894B (en) | Automatic loading method for BOB module ED of home gateway | |
CN110955601A (en) | Android platform stability-based automatic testing method and device and electronic equipment | |
CN110413531A (en) | Realize IOMT automatic test approach, device, computer equipment and storage medium | |
CN104581808A (en) | Method and device for testing mobile network performance and mobile terminal | |
CN115840707A (en) | Flash test method, device and medium | |
CN115422091A (en) | Firmware debugging method and device, electronic equipment and storage medium | |
CN108600042A (en) | WiFi test method and device for electronic equipment, storage medium and test equipment | |
CN115878193A (en) | Chip starting method and device | |
CN108733423A (en) | A kind of method and terminal of determining mobile device model |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20200723 Address after: 644000 West Section of Gangyuan Road, Yibin Port Economic and Technological Development Zone, Yibin City, Sichuan Province Applicant after: Sichuan Kubi Communication Equipment Co.,Ltd. Address before: Futian District Sha Tau Street Shenzhen city Guangdong province 518000 Tairan nine Road East Building 704 Tang commercial Applicant before: SHENZHEN MINGTAI TELECOMMUNICATION Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |