A method and system for judging results by counting in a home terminal power on / off test

Power-on self-test and data analysis are performed through the serial port connection between the computer terminal and the home terminal, which solves the problem in the existing technology of being unable to judge test problems in real time, realizes automated data statistics and problem location, and improves test efficiency.

CN112835751BActive Publication Date: 2024-09-20TAICANG T&W ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201911163813.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-11-25
Publication Date
2024-09-20
Estimated Expiration
2039-11-25

AI Technical Summary

Technical Problem

Existing home terminal power-on/off tests cannot determine problems during the test process in real time, resulting in prolonged and difficult R&D processes.

Method used

Through the serial port connection between the computer terminal and the home terminal, the power-on self-test is performed, the self-test data is read and analyzed, the power-on result and functional status are determined using keywords, and the data is automatically collected to facilitate problem location.

Benefits of technology

It achieves clear presentation and automated data statistics of the home terminal startup process, simplifies test data collection and problem analysis, and improves test efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112835751B
    Figure CN112835751B
Patent Text Reader

Abstract

The present invention relates to a method and system for judging the result by counting in a home terminal power on / off test, which specifically includes the following steps: step 1, a computer terminal is connected to a home terminal via a serial port; step 2, the AC adjustable power supply of the home terminal is turned on to perform a power on operation, the system performs a power on self-test on each function of the home terminal, and prints the power on self-test result; step 3, the computer terminal reads the power on self-test data; step 4, the computer terminal analyzes and judges the power on result and the status of each function according to the power on self-test data; step 5, the power on self-test data and the analysis and judgment result are saved. The present invention enables testers to clearly grasp the time when the home terminal is successfully turned on and the status of each function, and can also effectively judge the result after each turn on, which brings great convenience to test data collection, problem manifestation and analysis, and facilitates testers to find problems in the power on / off test.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of testing and detecting household terminal products, and in particular to a method and system for judging results by counting in a household terminal power on / off test. Background Art

[0002] With the advancement of testing technology, the accuracy and divisibility of the test content in the home terminal power on and off test are getting higher and higher. However, the current power on and off test can only be judged by manual inspection function after the test is completed. Problems that arise during the test process cannot be judged. Once a problem occurs, there is no data to analyze the cause, which prolongs the time to solve the problem in the research and development process and increases the difficulty of solving the problem. Summary of the invention

[0003] In order to solve the above technical problems, the present invention provides a method and system for judging the result by counting in a power on / off test of a household terminal.

[0004] In order to achieve the above object, the technical solution adopted by the present invention is as follows:

[0005] A method for judging the result by counting in a home terminal power on / off test, characterized in that it specifically comprises the following steps:

[0006] Step 1. The computer terminal is connected to the home terminal via the serial port;

[0007] Step 2: Turn on the AC adjustable power supply of the home terminal to start the terminal. The system performs a power-on self-test on each function of the home terminal and prints the power-on self-test result.

[0008] Step 3: The computer terminal reads the power-on self-test data;

[0009] Step 4: The computer terminal analyzes and determines the power-on result and the status of each function according to the power-on self-test data;

[0010] Step 5: Save the power-on self-test data and analyze the results.

[0011] Furthermore, a method for judging the result by counting in a home terminal power on / off test specifically comprises the following steps:

[0012] Step 1. The computer terminal is connected to the home terminal via the serial port;

[0013] Step 2: Turn on the AC adjustable power supply of the home terminal to start the terminal. The system performs a power-on self-test on each function of the home terminal and prints the power-on self-test result.

[0014] When the AC adjustable power supply is turned on for the first time, the power-on keyword for the first time is printed in the power-on self-test result. After the AC adjustable power supply is turned on, the system performs self-tests on each function. When the function self-test is turned on, the self-test start keyword is printed in the power-on self-test result. After each function is successfully turned on, the corresponding function start keyword is printed in the power-on self-test result. When the home terminal is turned on successfully, the start-up end keyword is printed in the power-on self-test result. The power-on keyword for the first time, the self-test start keyword, the start-up end keyword, and the function start keyword of each function are all marked with different characters;

[0015] Step 3: The computer terminal reads the power-on self-test data;

[0016] Step 4: The computer terminal analyzes and determines the power-on result and the status of each function according to the power-on self-test data;

[0017] Step 4-1, judging the power-on and power-off test result: searching the power-on end keyword in all the power-on self-test data of the home terminal, when the search result of the power-on end keyword is yes, the home terminal is successfully powered on this time and the test is finished; when the search result of the power-on end keyword is no, the home terminal fails to power on this time;

[0018] Step 4-2, judging the activation status of each function: when the home terminal fails to boot up this time, query the function activation keywords corresponding to each function in the current power-on self-test data in turn according to the activation order of each function in the power-on self-test program. When the function activation keyword of the nth function in the query result is yes and the function activation keyword of the n+1th function is no, it can be judged that the n+1th function has an activation failure;

[0019] Step 5: Save the power-on self-test data and analyze the results.

[0020] Furthermore, in step 2, the power on keyword, the self-test on keyword, the function on keyword of each function, and the on end keyword are printed, and the printing time of each keyword is recorded in the power on self-test result;

[0021] In step 4-1, it also includes calculating the time taken to start up by the appearance time of the first power-on keyword and the appearance time of the power-on end keyword; in step 4-2, it also includes calculating the time taken to start up the first function by the appearance time of the self-test start keyword and the appearance time of the function keyword of the first function in the self-test program; and calculating the time taken to start up the n+1th function by the appearance time of the function keyword of the nth function and the appearance time of the function keyword of the n+1th function.

[0022] Furthermore, the search and quantity statistics of each keyword in step 4 are automatically completed using program instruction codes.

[0023] Furthermore, the computer terminal reads the power-on self-test result data of the home terminal using an RS23 data transmission method.

[0024] Compared with the prior art, the beneficial effects achieved by the present invention are as follows:

[0025] The present invention connects a home terminal with a computer terminal, reads the power-on self-test result of the home terminal through the computer terminal, presents the power-on process of the home terminal clearly and completely to the tester, and automatically counts the time, number of times, and other information of the keyword appearance of the power-on self-test result data through the computer terminal, so that the tester can clearly grasp the time when the home terminal is successfully turned on and the status of each function, and can also effectively judge the result after each turning on, which brings great convenience to test data collection, problem manifestation and analysis, and is convenient for the tester to find problems in the power on and off test. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 A system topology diagram of a result of counting and judging in a home terminal power on / off test in one embodiment of the present invention;

[0027] Figure 2 The present invention is a flowchart of a method for judging the result by counting in a power on / off test of a household terminal in one embodiment of the present invention. DETAILED DESCRIPTION

[0028] The present invention is further described in detail below with reference to the embodiments.

[0029] Figure 1 An embodiment of a system for judging the result by counting in a power on / off test of a home terminal is shown, comprising a home terminal 2, an AC adjustable power supply 1 connected to the home terminal 2 by an electric wire, a computer terminal 3 connected to the home terminal 2 by a serial port, and a software terminal 4 installed on the computer terminal 3, wherein the software terminal 4 is used to read the power on self-test data of the home terminal 2 and analyze and judge the power on self-test data.

[0030] Figure 2 An embodiment of a method for judging the result by counting in a home terminal power on / off test is shown, which specifically includes the following steps:

[0031] Step 1. The computer terminal is connected to the home terminal via the serial port;

[0032] Step 2: Turn on the AC adjustable power supply of the home terminal to start the terminal. The system performs a power-on self-test on each function of the home terminal and prints the power-on self-test result.

[0033] When the AC adjustable power supply is turned on for the first time, the power-on keyword for the first time is printed out in the power-on self-test result, and the time when the power-on keyword for the first time is printed out is recorded in real time. After the AC adjustable power supply is turned on, the system performs self-tests on each function. When the function self-test is turned on, the self-test start keyword is printed out in the power-on self-test result. After each function is successfully turned on, the corresponding function start keyword is printed out in the power-on self-test result, and the time when the corresponding function start keyword is printed out is recorded in real time. When the home terminal is turned on successfully, the start-up end keyword is printed out in the power-on self-test result, and the time when the start-up end keyword is printed out is recorded in real time. The power-on keyword for the first time, the self-test start keyword, the start-up end keyword, and the function start keyword of each function all use different character codes to facilitate subsequent statistics of the number of times each keyword appears; for example, the power-on keyword for the first time uses "welcom" as the keyword, the self-test start keyword uses "kss" as the keyword, and the start-up end keyword uses "login" as the keyword, etc. The character codes of the keywords can be set arbitrarily, and it is only necessary to ensure that the character codes of the keywords are different;

[0034] Step 3: The computer terminal reads the power-on self-test data;

[0035] The computer terminal reads the power-on self-test result data of the home terminal using the RS23 data transmission method;

[0036] Step 4: The computer terminal analyzes and determines the power-on result and the status of each function according to the power-on self-test data;

[0037] During the analysis and judgment process, the search and quantity statistics of each keyword are automatically completed using program instruction codes;

[0038] Step 4-1, judging the power-on and power-off test result: in the power-on self-test data of the home terminal in this test, search for the power-on end keyword, when the search result of the power-on end keyword is "yes", the home terminal is successfully powered on this time; the time difference between the appearance time of the power-on keyword for the first time and the appearance time of the power-on end keyword is the time taken for this power-on, and also the time taken for this test power-on;

[0039] When the search result of the startup end keyword is no, it means that the home terminal fails to start up this time;

[0040] Step 4-2, judging the activation status of each function: when the home terminal fails to boot up this time, query the function activation keywords corresponding to each function in the power-on self-test data in turn according to the activation order of each function in the power-on self-test program. When the self-test activation keyword is found in the query result and the function activation keyword of the first function is, it is determined that the first function has an activation failure; when the function activation keyword of the nth function in the query result is yes and the function activation keyword of the n+1th function is no, it can be determined that the n+1th function has an activation failure (n is an integer, and n is greater than or equal to 1); when it is necessary to obtain the activation time of each function, the difference between the appearance time of the self-test activation keyword and the appearance time of the function keyword of the first function in the self-test program is the time taken to activate the first function; the difference between the appearance time of the function keyword of the nth function and the appearance time of the function keyword of the n+1th function is the time taken to activate the n+1th function (n is an integer, and n is greater than or equal to 1);

[0041] Step 5: Save the power-on self-test data and analyze the results;

[0042] The analysis and judgment results include analysis results and judgment results, and the analysis results include the statistical results of the number of keyword occurrences;

[0043] Step 6: After one power-on test is completed, wait for the AC adjustable power supply to reach the set time, repeat steps 2 to 5 to start the next round of power-on and power-off tests, until the number of power-on and power-off tests reaches the specified number.

[0044] The present invention connects a home terminal with a computer terminal, reads the power-on self-test result of the home terminal through the computer terminal, presents the power-on process of the home terminal clearly and completely to the tester, and automatically counts the time, number of times, and other information of the keyword appearance of the power-on self-test result data through the computer terminal, so that the tester can clearly grasp the time when the home terminal is successfully turned on and the status of each function, and can also effectively judge the result after each turning on, which brings great convenience to test data collection, problem manifestation and analysis, and is convenient for the tester to find problems in the power on and off test.

[0045] The above-described embodiments are only preferred embodiments of the present invention, and are not exhaustive of the feasible implementations of the present invention. For those skilled in the art, any obvious changes made thereto without departing from the principles and spirit of the present invention should be considered to be included in the scope of protection of the claims of the present invention.

Claims

1. A method for judging the result by counting in a home terminal power on / off test. It is characterized in that The specific steps include: Step 1. The computer terminal is connected to the home terminal via the serial port; Step 2: Turn on the AC adjustable power supply of the home terminal to start the terminal. The system performs a power-on self-test on each function of the home terminal and prints the power-on self-test result. In the power on / off test, when the AC adjustable power supply is turned on for the first time, the power on first time keyword is printed in the power on self-test result. After the AC adjustable power supply is turned on, the system performs self-test on each function. When the function self-test is turned on, the self-test on keyword is printed in the power on self-test result. After each function is turned on successfully, the corresponding function on keyword is printed in the power on self-test result. When the home terminal is turned on successfully, the on end keyword is printed in the power on self-test result. The power on keyword for the first time, the self-test on keyword, the on end keyword, and the function on keyword of each function all use different marking characters; When the power-on keyword, self-test start keyword, function start keyword of each function and start end keyword are printed, the printing time of each keyword is recorded in the power-on self-test result; Step 3: The computer terminal reads the power-on self-test data; Step 4: The computer terminal analyzes and determines the power-on result and the status of each function according to the power-on self-test data; The search and quantity statistics of each keyword are automatically completed using program instruction codes; Step 4-1, judging the power-on and power-off test result: searching the power-on end keyword in all the power-on self-test data of the home terminal, when the search result of the power-on end keyword is yes, the home terminal is successfully powered on this time and the test is finished; when the search result of the power-on end keyword is no, the home terminal fails to power on this time; The power-on time is calculated by the appearance time of the power-on keyword for the first time and the appearance time of the power-on end keyword; Step 4-2, judging the activation status of each function: when the home terminal fails to boot up this time, query the function activation keywords corresponding to each function in the current power-on self-test data in turn according to the activation order of each function in the power-on self-test program. When the function activation keyword of the nth function in the query result is yes and the function activation keyword of the n+1th function is no, it can be judged that the n+1th function has an activation failure; The time taken to enable the first function is calculated by the appearance time of the self-check enable keyword and the appearance time of the function keyword of the first function in the self-check program; The time taken to enable the n+1th function is calculated by the appearance time of the function keyword of the nth function and the appearance time of the function keyword of the n+1th function; Step 5: Save the power-on self-test data and analyze the results.

2. A method for judging the result by counting in a home terminal power on / off test according to claim 1, It is characterized in that The computer terminal reads the power-on self-test result data of the home terminal using the RS23 data transmission method.

3. A method for judging the result by counting in a home terminal power on / off test according to claim 1, It is characterized in that The method further includes step 6, after a power-on test is completed, the AC adjustable power supply reaches a set time, and steps 2 to 5 are repeated to start the next round of power-on and power-off tests until the number of power-on and power-off tests reaches a specified number.

4. A system for judging the result by counting in a home terminal power on / off test, which is applied to the method for judging the result by counting in a home terminal power on / off test as claimed in claim 1, characterized in that it comprises a home terminal (2), an AC adjustable power supply (1) connected to the home terminal (2) by an electric wire, a computer terminal (3) connected to the home terminal (2) by a serial port, and a software terminal (4) installed on the computer terminal (3), wherein the software terminal (4) is used to read the power on self-test data of the home terminal (2) and analyze and judge the power on self-test data.