Television testing method and television

By backing up key files in the TV's factory test mode and restoring them when test instructions fail, it solves the problem of test failure caused by power outages or abnormal operations, improves test efficiency and provides self-recovery capabilities.

CN118540468APending Publication Date: 2024-08-23GUANGZHOU SHIKUN ELECTRONICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310149116.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-21
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

During the production process of the TV, due to a power outage or abnormal testing, the file was rewritten abnormally, causing the test to fail. The software needs to be upgraded and tested again, which is inefficient.

Method used

Back up key files when entering the factory test mode, and restore abnormal files through the backup files when the test instructions fail to execute, and re-execute the test instructions to ensure the stability and efficiency of the test.

Benefits of technology

Through the file backup and recovery mechanism, test failures caused by power outages or abnormal operations are avoided, the efficiency of factory testing of TVs is improved, and self-recovery capabilities are provided during user use.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118540468A
    Figure CN118540468A
Patent Text Reader

Abstract

The invention provides a television test method and a television, and the method is characterized in that the method comprises the steps: carrying out the backup of a first file which can be read / written in a factory test mode when entering the factory test mode, and forming a first backup file; acquiring a test instruction, and executing the test instruction; if the test instruction fails to be executed, judging whether the first file is abnormal or not; if the first file is abnormal, recovering the first file according to the first backup file; and re-executing the test instruction. According to the method, the key file is backed up when the television enters and exits the factory test mode, so that the abnormal file can be automatically recovered through the backup file when the execution of the test instruction fails, and then the test instruction is retested, so that the failure of factory test caused by abnormal file rewriting due to factory outage / abnormal operation and the like of the television is avoided; and the factory test efficiency of the television is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of televisions, and in particular, relates to a testing method for a television and a television. Background Art

[0002] During the production process of TVs, TV factories often rewrite white balance and some configuration files, and there are many file writing operations on the system on the production line. However, factories are prone to power outages / abnormal tests. Therefore, it is common for some files to be rewritten abnormally due to power outages / abnormal tests, which in turn causes test failures during TV testing. The software needs to be upgraded and retested, making TV testing less efficient. Summary of the invention

[0003] The embodiments of the present application provide a testing method for a television and a television, which can solve the problem of a factory test failure of the television due to abnormal rewriting of some files caused by factory power outage / abnormal operation, etc.

[0004] To achieve the above objectives, this application provides the following technical solutions:

[0005] A method for testing a television, comprising:

[0006] When entering the factory test mode, backing up a first file that will be read / written in the factory test mode to form a first backup file;

[0007] Obtaining a test instruction and executing the test instruction;

[0008] If the test instruction fails to execute, determining whether the first file is abnormal;

[0009] If the first file is abnormal, restoring the first file according to the first backup file;

[0010] Re-execute the test instruction.

[0011] In some embodiments, before determining whether the first file is abnormal, the method further includes:

[0012] Determine whether the test instruction is a file read / write instruction;

[0013] If the test instruction is not a file read / write instruction, then the instruction failure is returned;

[0014] If the test instruction is a file read / write instruction, it is determined whether the first file is abnormal.

[0015] In some embodiments, before executing the test instruction, the method further includes:

[0016] Saving the acquired test instructions to a preset instruction record file;

[0017] Then re-executing the test instruction includes:

[0018] Reading the instruction record file;

[0019] Re-execute the test instruction in the instruction record file.

[0020] In some embodiments, before saving the acquired test instruction to the instruction record file, the method further includes:

[0021] Check whether there are old instruction record files stored;

[0022] If the old instruction record file is stored, deleting the old instruction record file;

[0023] Create a new command record file.

[0024] In some embodiments, after determining whether the first file is abnormal, the method further includes:

[0025] If the first file is normal, the command fails.

[0026] In some embodiments, before entering the factory test mode, the method further includes:

[0027] After power-on, detecting whether a factory mode entry flag file is stored;

[0028] If the factory mode entry flag file is stored, the factory test mode is entered.

[0029] In some embodiments, if the factory mode entry flag file is not stored, then:

[0030] Reading a pre-stored second backup file, wherein the second backup file includes files identical to the system key files;

[0031] Determining whether the stored key system files are abnormal;

[0032] If the system key files are normal, the computer will boot normally and enter the user system;

[0033] If the system key file has an abnormality, the system key file is repaired according to the second backup file, and after the repair is completed, the computer is started normally and enters the user system.

[0034] In some embodiments, the television testing method further includes:

[0035] When a reset instruction is received, backing up the first file debugged in the factory test mode;

[0036] Execute the reset instruction.

[0037] A television, comprising:

[0038] Memory;

[0039] A processor, connected to the memory, configured to:

[0040] When entering the factory test mode, backing up a first file that will be read / written in the factory test mode to form a first backup file;

[0041] Obtaining a test instruction and executing the test instruction;

[0042] If the test instruction fails to execute, determining whether the first file is abnormal;

[0043] If the first file is abnormal, restoring the first file according to the first backup file;

[0044] Re-execute the test instruction.

[0045] In some embodiments, the memory includes a FLASH memory, and the first backup file is stored in an independent partition of the FLASH memory.

[0046] The TV test method and TV provided in the embodiment of the present application back up key files when the TV enters and exits the factory test mode, so that when the test command fails to execute, the abnormal file can be automatically restored through the backup file, and then the serial port command can be re-executed. Through this method, the TV will not fail the factory test due to partial file rewriting abnormalities caused by factory power outages / abnormal operations, etc., and need to retest or perform abnormal reflow, thereby improving the factory test efficiency of the TV. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application, and those skilled in the art can obtain other drawings based on these drawings without creative work.

[0048] In order to more completely understand the present application and its beneficial effects, the following description will be given in conjunction with the accompanying drawings. In the following description, the same reference numerals represent the same parts.

[0049] Figure 1 This is a first flow chart of a method for testing a television provided in an embodiment of the present application.

[0050] Figure 2 A second flow chart of the television testing method provided in an embodiment of the present application.

[0051] Figure 3 Flowchart of a TV executing a single test instruction provided in an embodiment of the present application

[0052] Figure 4 A schematic diagram of the structure of a television provided in an embodiment of the present application. DETAILED DESCRIPTION

[0053] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0054] The present application embodiment provides a method for testing a television. For example, please refer to Figure 1 , Figure 1 This is a first flow chart of a method for testing a television provided in an embodiment of the present application. The method is executed, for example, by a processor of the television, and includes the following steps s101 to s105:

[0055] Step s101: when entering the factory test mode, backing up the first file that will be read / written in the factory test mode to form a first backup file;

[0056] The television is provided with a single chip microcomputer, for example, which includes a processor and a memory. The first file is stored in the memory, for example.

[0057] The memory includes, for example, FLASH memory (flash memory), which is a form of electrically erasable programmable read-only memory that allows multiple erasures or writes during operation and is characterized by being able to retain stored information for a long time without power. It also has the advantages of high access speed and low power consumption. The first backup file is stored in, for example, an independent partition of the FLASH memory.

[0058] If the first file stored to be read / written in the factory test mode is damaged before entering the factory test mode, no repair is performed and the factory determines that the television is defective.

[0059] Step s102: obtaining a test instruction and executing the test instruction;

[0060] The test instruction is obtained from the host computer, for example.

[0061] Step s103: if the test instruction fails to execute, determining whether the first file is abnormal;

[0062] The processor determines whether the first file is abnormal based on the first backup file. For example, if the first file and the first backup file are identical in content, the first file is considered normal; if the first file and the first backup file are different in content, the first file is considered abnormal.

[0063] If the first file is abnormal, the following step s104 is executed.

[0064] Step s104: if the first file is abnormal, restore the first file according to the first backup file;

[0065] For example, the first file is restored by replacing the abnormal first file with the first backup file.

[0066] Step s105: re-execute the test instruction.

[0067] The TV test method provided by the embodiment of the present application backs up key files when the TV enters and exits the factory test mode, so that when the test command fails to execute, the abnormal file can be automatically restored through the backup file, and then the serial port command can be re-executed. Through this method, the TV will not fail to test due to partial file rewriting abnormalities caused by factory power outages / abnormal operations, etc., and retesting or abnormal reflow is required, thereby improving the factory test efficiency of the TV.

[0068] For further information, see Figure 2 , Figure 2 This is a second flow chart of the TV testing method provided in the embodiment of the present application. The method is executed by a processor of the TV, for example, and includes the following steps s201 to s209:

[0069] Step s201: power on the system;

[0070] Step s202: determining whether a factory mode entry flag file is stored;

[0071] The television is provided with a single chip microcomputer, which includes a processor, a memory, etc. The processor, for example, determines through the memory whether a factory mode entry flag file is stored therein.

[0072] The memory includes, for example, a FLASH memory (flash memory), and the processing unit determines, for example, through the FLASH memory whether a factory mode entry flag file is stored therein.

[0073] If there is no factory mode flag file, the following steps s21-s22 are executed:

[0074] Step s21: determine whether the stored system key files are abnormal;

[0075] The television, for example, pre-stores a second backup file, which is stored in a FLASH memory, for example, and includes a second file that is the same as the system key file. The processor, for example, determines whether the system key file is abnormal based on the second backup file. For example, if the second file is compared to the system key file and the content is the same, the system key file is considered normal; if the system key file is compared to the second file and the content is different, the system key file is considered abnormal.

[0076] If the system key file is normal, the TV will start normally and enter the user system; if the system key file is abnormal, the following step s22 will be executed.

[0077] Step s22: Read the pre-stored second backup file, and repair the system key files according to the second backup file.

[0078] After the repair is complete, the TV boots up normally and enters the user system.

[0079] If the factory mode entry flag file is stored, the following step s203 is executed.

[0080] Step s203: Entering factory test mode;

[0081] The factory test mode is a mode used to ensure the validity of the hardware and software performance of the TV when the TV enters the factory before entering the market.

[0082] Step s204: backing up the first file that will be read / written in the factory mode to an independent partition of the FLASH memory to form a first backup file;

[0083] The first backup file is stored in, for example, the fdata area or the WB area of ​​the FLASH memory.

[0084] Step s205: clear the old command record file and create a new command record file;

[0085] The command record file is used to record the commands sent by the host computer and received by the TV in the factory mode. Before the test, if the processor detects that there is an old command record file stored in the memory, the old command record file is deleted first, and a new command record file is created, waiting for the test commands received in the subsequent test process to be stored in the new command record file. The command record file is stored in the FLASH memory of the memory, for example.

[0086] Step s206: obtaining and executing a test instruction;

[0087] The test instructions executed by the TV include multiple items, which are sent to the TV in sequence by the host computer.

[0088] For example, see Figure 3 , Figure 3 The flowchart of a television executing a single test instruction provided in an embodiment of the present application, the execution of the single test instruction includes, for example, the following steps s61 to s68:

[0089] Step s61: obtaining a first test instruction;

[0090] The TV obtains a first test instruction from the host computer, which is connected to a radio frequency test terminal or an antenna pad of the TV, for example, so that the host computer can send a test instruction to the TV.

[0091] Step s62: saving the first test instruction to the instruction record file and executing the first test instruction;

[0092] Step s63: Determine whether the first test instruction is executed successfully;

[0093] If the first test instruction is executed successfully, the command is returned to be successful;

[0094] If the first test instruction fails to execute, the following step s64 is executed.

[0095] Step s64: determining whether the first test instruction is a file read / write instruction;

[0096] If the first test instruction is not a file read / write instruction, the command fails.

[0097] If the first test instruction is a file read / write instruction, the following step s65 is executed.

[0098] Step s65: determining whether the first file is abnormal;

[0099] If there is no abnormality in the first file, the command fails.

[0100] If the first file is abnormal, the following step s66 is executed.

[0101] Step s66: restoring the first file according to the first backup file;

[0102] After the restoration of the first file is completed, the following step s67 is executed.

[0103] Step s67: reading the instruction record file, and re-executing the first test instruction in the instruction record file;

[0104] Step s68: Determine whether the re-execution of the first test instruction is successful.

[0105] If the execution is successful, the command is returned successful;

[0106] If the execution fails, the command fails.

[0107] Step s207: Get a reset instruction;

[0108] The last test instruction acquired by the television is, for example, a reset instruction, and the reset instruction is used to restore the processor to a preset initial state.

[0109] Step s208: backing up the first file debugged in the factory mode to an independent partition of the FLASH memory;

[0110] For example, backup to a separate partition of the FLASH memory.

[0111] Step s209: Execute the reset instruction.

[0112] After the reset command is executed, the TV exits the factory test mode.

[0113] The TV test method provided by the embodiment of the present application backs up key files when the TV enters / exits the factory test mode, so that when the test command fails to execute, the abnormal file can be automatically restored through the backup file, and then the serial port command can be re-executed. Through this method, the TV will not fail to test due to partial file rewriting abnormalities caused by factory power outages / abnormal operations, etc., and need to retest or perform abnormal reflux, thereby improving the factory test efficiency of the TV. In addition, during the user's use process, this backup file can also be used to enable the TV to self-recover in an abnormal state.

[0114] The present application also provides a television, for example, see Figure 4 , Figure 4 The structure diagram of the television 1000 provided in the embodiment of the present application is as follows. The television 1000 includes a memory 100 and a processor 200 .

[0115] Among them, the memory 100 is connected to the processor 200, and the processor 200 is used to control the first file that will be read / written in the factory test mode to be backed up to the memory 100 to form a first backup file when entering the factory test mode; then obtain the test instruction and execute the test instruction; if the test instruction fails to be executed, determine whether the first file is abnormal; if the first file is abnormal, restore the first file according to the first backup file; after recovery, re-execute the test instruction.

[0116] The memory 100 and the processor 200 are both provided in a single chip microcomputer of a television, for example. The memory 100 includes, for example, a FLASH memory, which is a form of electrically erasable programmable read-only memory that allows multiple erasures or writes during operation, and is characterized in that the stored information can be retained for a long time without power. It also has the advantages of high access speed and low power consumption. The above-mentioned first backup file is stored in, for example, an independent partition of the FLASH memory, such as the fdata area or WB area of ​​the FLASH memory.

[0117] The TV 1000 provided in the embodiment of the present application backs up key files when entering and exiting the factory test mode, so that when the test command fails to execute, the abnormal file can be automatically restored through the backup file, and then the serial port command can be re-executed. The TV 1000 will not cause test failure due to abnormal rewriting of some files caused by factory power failure / abnormal operation, etc., requiring retesting or abnormal reflow, and the factory test efficiency is high.

[0118] The above is a detailed introduction to the TV testing method and TV provided in the embodiments of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for technicians in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A method for testing a television. It is characterized in that include: When entering the factory test mode, backing up a first file that will be read / written in the factory test mode to form a first backup file; Obtaining a test instruction and executing the test instruction; If the test instruction fails to execute, determining whether the first file is abnormal; If the first file is abnormal, restoring the first file according to the first backup file; Re-execute the test instruction.

2. The method for testing a television according to claim 1, It is characterized in that Before determining whether the first file is abnormal, the method further includes: Determine whether the test instruction is a file read / write instruction; If the test instruction is not a file read / write instruction, then the instruction failure is returned; If the test instruction is a file read / write instruction, it is determined whether the first file is abnormal.

3. The method for testing a television according to claim 1, It is characterized in that Before executing the test instruction, the method further includes: Saving the acquired test instructions to a preset instruction record file; Then re-executing the test instruction includes: Reading the instruction record file; Re-execute the test instruction in the instruction record file.

4. The method for testing a television according to claim 3, It is characterized in that Before saving the acquired test instruction to the instruction record file, the method further includes: Check whether there are old instruction record files stored; If the old instruction record file is stored, deleting the old instruction record file; Create a new command record file.

5. The method for testing a television according to claim 1, It is characterized in that After determining whether the first file is abnormal, the method further includes: If the first file is normal, the command fails.

6. The method for testing a television according to any one of claims 1 to 5, It is characterized in that Before entering factory test mode, it also includes: After power-on, detecting whether a factory mode entry flag file is stored; If the factory mode entry flag file is stored, the factory test mode is entered.

7. The method for testing a television according to claim 6, It is characterized in that If the factory mode entry flag file is not stored, then: Reading a pre-stored second backup file, wherein the second backup file includes files identical to the system key files; Determining whether the stored key system files are abnormal; If the system key files are normal, the computer will boot normally and enter the user system; If the system key file has an abnormality, the system key file is repaired according to the second backup file, and after the repair is completed, the computer is started normally and enters the user system.

8. The method for testing a television according to any one of claims 1 to 4, It is characterized in that Also includes: When a reset instruction is received, backing up the first file debugged in the factory test mode; Execute the reset instruction.

9. A television, It is characterized in that include: Memory; A processor, connected to the memory, configured to: When entering the factory test mode, backing up a first file that will be read / written in the factory test mode to form a first backup file; Obtaining a test instruction and executing the test instruction; If the test instruction fails to execute, determining whether the first file is abnormal; If the first file is abnormal, restoring the first file according to the first backup file; Re-execute the test instruction.

10. The television according to claim 9, It is characterized in that The memory includes a FLASH memory, and the first backup file is stored in an independent partition of the FLASH memory.