A set-top box self-test method, apparatus, device, and medium

By using loopback and loop-out devices and AI models to process and identify data within the set-top box, the problem of low accuracy caused by reliance on manual testing in traditional set-top box testing is solved, achieving automated and efficient self-testing.

CN119544960BActive Publication Date: 2026-05-19HUNAN GOKE MICROELECTRONICS CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HUNAN GOKE MICROELECTRONICS CO LTD
Filing Date
2024-11-29
Publication Date
2026-05-19

AI Technical Summary

Technical Problem

Traditional set-top box testing methods rely on manual observation, which has low accuracy, and the PC plus camera solution is costly and has a complex testing environment.

Method used

The device receives data output from the set-top box via a loopback-loop-out mechanism, adds tag information, and uses an AI model to process and identify the data within the set-top box to determine the self-test results.

Benefits of technology

It reduces the number of testing devices, improves testing accuracy, avoids accuracy problems introduced by external devices, and achieves automated self-testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119544960B_ABST
    Figure CN119544960B_ABST
Patent Text Reader

Abstract

The application provides a set-top box self-test method, device and medium, wherein output data of a set-top box to be tested is received by a loopback loop-out device, and the output data is processed to obtain test data; the test data is identified in the set-top box to be tested to obtain identification information, and a self-test result of the set-top box to be tested is determined according to the identification information and label information; wherein the label information and the identification information correspond to each other; compared with the prior art, the application only uses two devices, i.e., the loopback loop-out device and the set-top box to be tested, thereby reducing the number of test devices; the test data is directly identified in the set-top box to be tested to obtain the identification information, and the self-test result of the set-top box to be tested is determined according to the identification information and the label information; the test result is obtained in the set-top box to be tested, thereby effectively preventing the precision problem caused by the self-consumption of external devices, and improving the test accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of set-top box testing technology, and in particular to a set-top box self-testing method, apparatus, equipment, and medium. Background Technology

[0002] The set-top box is the window through which users access digital television and a platform showcasing its many functions. The quality and functionality of the set-top box directly affect users' acceptance of digital television.

[0003] Traditional testing methods involve connecting a monitor or television and manually observing the currently playing audio and video programs to determine if there are any abnormalities such as stuttering, pixelation, screen tearing, or audio-video desynchronization. This is used to determine whether the set-top box's functions meet development requirements. This method relies heavily on manual labor, making it prone to missed tests or problems that are not easily detected by humans, resulting in low test accuracy. Furthermore, using a PC and camera for result evaluation is costly and creates a complex testing environment. Summary of the Invention

[0004] This invention provides a set-top box self-testing method, apparatus, device, and medium, the purpose of which is to improve the accuracy of testing while simplifying the testing equipment.

[0005] To achieve the above objectives, the present invention provides a set-top box self-testing method, comprising:

[0006] The loopback and loop-out device receives the output data from the set-top box under test and processes the output data to obtain the test data.

[0007] The test data is identified within the set-top box under test to obtain identification information, and the self-test result of the set-top box under test is determined based on the identification information and tag information; wherein, the tag information corresponds one-to-one with the identification information.

[0008] Furthermore, the set-top box under test includes the unit under test, and before the set-top box under test outputs data, it also includes:

[0009] Tag information is added to each data item in the original multimedia data to obtain labeled data;

[0010] Input the labeled data into the unit to be tested.

[0011] Furthermore, the set-top box under test also includes a test unit. The output data of the set-top box under test includes labeled data processed by the test unit and identification information of the set-top box under test. The identification information represents the current characteristic information of the set-top box under test. The output data is processed to obtain test data, including:

[0012] The received processed marker data is encoded by the loopback and loop-out device to obtain multiple test data, and the test data is transmitted back to the test unit of the set-top box under test.

[0013] Furthermore, before the test data is identified within the set-top box under test, the following steps are also included:

[0014] The set-top box under test is initialized and verified based on its identification information.

[0015] Furthermore, the set-top box under test is initialized and verified based on its identification information, including:

[0016] Within the loopback and loopout device, for each piece of test data, identification information is added to the header of the test data to obtain multiple initialization verification data;

[0017] The control test unit reads each piece of initialization verification data and parses out the identification information in each piece of initialization verification data;

[0018] The parsed identification information is compared with the initial feature information of the set-top box under test to obtain the first comparison result;

[0019] If the first comparison result is consistent, the set-top box under test passes the initialization verification; if the first comparison result is inconsistent, the set-top box under test is controlled to stop the self-test.

[0020] Furthermore, the set-top box under test includes an AI model that identifies test data within the set-top box to obtain identification information. Based on this identification information and tag information, the set-top box's self-test results include:

[0021] Control the AI ​​model to identify test data and obtain identification information;

[0022] The identification information is compared with the label information on the corresponding marker data to obtain the second comparison result;

[0023] The self-test results of the set-top box under test are determined based on the second comparison results.

[0024] Furthermore, the self-test results of the set-top box under test are determined based on the identification and tag information, including:

[0025] Calculate the difference between the output time of each output data and the return time of the corresponding test data to the set-top box under test; where the output data and test data correspond one-to-one.

[0026] The delayed mean is obtained from the difference;

[0027] The self-test results of the set-top box under test are determined based on the second comparison results, the latency information of the test data, and the average latency.

[0028] The present invention also provides a set-top box self-testing device, comprising:

[0029] The processing module is used to receive the output data of the set-top box under test through the loopback and loopout device, and process the output data to obtain test data;

[0030] The testing module is used to identify test data within the set-top box under test, obtain identification information, and determine the self-test results of the set-top box under test based on the identification information and tag information; wherein, the tag information corresponds one-to-one with the identification information.

[0031] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement a set-top box self-test method.

[0032] The present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements a set-top box self-testing method.

[0033] The above-described solution of the present invention has the following beneficial effects:

[0034] This invention receives output data from the set-top box under test (UTC) via a loopback-loop-out device, processes the output data to obtain test data, identifies the test data within the UTC to obtain identification information, and determines the self-test result of the UTC based on the identification information and tag information. The tag information corresponds one-to-one with the identification information. Compared with existing technologies, this invention utilizes only the loopback-loop-out device and the UTC, reducing the number of testing devices. It directly identifies the test data within the UTC to obtain identification information, and determines the self-test result based on the identification information and tag information. Obtaining the test result within the UTC effectively prevents accuracy issues caused by the self-consumption of external devices, thereby improving test accuracy.

[0035] Other beneficial effects of the present invention will be described in detail in the following detailed description section. Attached Figure Description

[0036] Figure 1 This is a flowchart illustrating an embodiment of the present invention;

[0037] Figure 2 This is a schematic diagram of hardware connections in an embodiment of the present invention;

[0038] Figure 3 This is a schematic diagram of the set-top box self-testing device in an embodiment of the present invention;

[0039] Figure 4This is a schematic diagram of the structure of an electronic device in an embodiment of the present invention. Detailed Implementation

[0040] To make the technical problems, solutions, and advantages of this invention clearer, a detailed description will be provided below with reference to the accompanying drawings and specific embodiments. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0041] In the description of this invention, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing the invention and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.

[0042] In the description of this invention, it should be noted that, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a locking connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in this invention based on the specific circumstances.

[0043] Furthermore, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0044] This invention addresses existing problems by providing a self-testing method for set-top boxes.

[0045] like Figure 1 As shown, an embodiment of the present invention provides a set-top box self-testing method, including:

[0046] The loopback and loop-out device receives the output data from the set-top box under test and processes the output data to obtain the test data.

[0047] The test data is identified within the set-top box under test to obtain identification information, and the self-test result of the set-top box under test is determined based on the identification information and tag information; wherein, the tag information corresponds one-to-one with the identification information.

[0048] In this embodiment of the invention, the set-top box under test is equipped with a test application for testing the set-top box under test. The test application is used to identify the test data, obtain identification information, and determine the self-test result of the set-top box under test based on the identification information and tag information.

[0049] Since the set-top box only has an HDMI output interface and a USB input interface, in this embodiment of the invention, when the set-top box under test is playing original multimedia data, it sends an HDMI signal to the loopback-out device via the HDMI output interface. This HDMI signal includes the identification information of the set-top box under test and the original multimedia data processed by the set-top box. The loopback-out device then sends the processed multimedia data to the set-top box under test via the USB interface for testing. Figure 2 As shown.

[0050] It should be noted that the loopback / loopout device includes a processor. The processor's input is connected to the HDMI output interface of the set-top box under test, and its output is connected to the USB input port of the set-top box under test. The processor's input is used to receive the output data from the set-top box under test. The loopback / loopout device also includes a frame processing module, which encodes the data input to the loopback / loopout device and can append identification information to the header of the encoded data for subsequent initialization verification of the set-top box. This frame processing module can be a software module or a hardware module. When the frame processing module is a software module, for ease of use, it is integrated into the processor of the loopback / loopout acquisition device. When the frame processing module is a hardware module, for ease of use, its input is connected to the HDMI output interface of the set-top box under test, and its output is connected to the input of the processor in the loopback / loopout acquisition device.

[0051] Specifically, the set-top box under test includes the unit under test, and before the set-top box under test outputs data, it also includes:

[0052] Tag information is added to each data item in the original multimedia data to obtain labeled data;

[0053] Input the labeled data into the unit to be tested.

[0054] It should be noted that the tag information can be pre-placed outside the set-top box under test or inside any unit of the set-top box under test. That is, the tag information can also be pre-stored in any storage unit inside the set-top box, or even stored outside the set-top box. It is only necessary that the tag information can be read when the test unit performs self-test. In order to facilitate fast reading, the tag information is pre-placed inside the test unit in this embodiment of the invention. The tag information is used to mark each piece of multimedia data in the original multimedia data. The original multimedia data can be video data, audio data, and image data.

[0055] When the original multimedia data is video data, the tag information includes frame number, time point, resolution and QR code. This tag information is added to the video data frame by frame in chronological order.

[0056] When the original multimedia data is audio data, the tag information is audio file, which includes audio data with a volume of 0dB, -20dB, and 20dB, pure high level, and pure low level, distributed at a fixed time.

[0057] When the original multimedia data is image data, the tag information includes resolution, identification points, and QR code, and this tag information is added to each image.

[0058] It should be noted that frame number refers to the sequence number added to each frame of video data; time points include the start and end times of the video data; resolution refers to the resolution of each frame of video data or each image; QR code is used to describe basic information of video data or image data, such as sequence and encoding information; since the actual volume output through the interface may not be the original volume of the audio under different audio levels, it is necessary to adjust the volume of the set-top box to find a system volume so that the volume output by the interface is consistent with the original volume. Therefore, in order to calibrate the test data, this embodiment of the invention divides the volume into 0dB, -20dB, and 20dB. Pure high level means that the volume is always at its maximum value per unit time, and pure low level means that the volume is always at its minimum value per unit time; recognition point refers to the feature on the image data.

[0059] Specifically, the set-top box under test also includes a test unit. The output data of the set-top box under test includes labeled data processed by the test unit and identification information of the set-top box under test. The identification information represents the current characteristic information of the set-top box under test. The output data is processed to obtain test data, including:

[0060] The received processed marker data is encoded by the loopback and loop-out device to obtain multiple test data, and the test data is transmitted back to the test unit of the set-top box under test.

[0061] It should be noted that, in this embodiment of the invention, the loopback / loopout device uses a conventional video encoding method, audio encoding method, or image encoding method. For example, the video encoding method may be, but is not limited to, MPEG4 video encoding method; the audio encoding method may be, but is not limited to, Pulse Code Modulation (PCM); and the image encoding method may be, but is not limited to, entropy encoding method. The identification information represents the current characteristic information of the set-top box under test, such as the resolution, refresh rate, sound format, and number of channels of the current HDMI output screen of the set-top box under test. It can also represent the supplier information specific to the set-top box under test.

[0062] In this embodiment of the invention, the test application for testing the set-top box under test is mounted in the test unit of the set-top box under test.

[0063] Specifically, before the test data is identified within the set-top box under test, the process also includes:

[0064] The set-top box under test is initialized and verified based on its identification information.

[0065] Specifically, the set-top box under test is initialized and verified based on its identification information, including:

[0066] Within the loopback and loopout device, for each piece of test data, identification information is added to the header of the test data to obtain multiple initialization verification data;

[0067] The control test unit reads each piece of initialization verification data and parses out the identification information in each piece of initialization verification data;

[0068] The parsed identification information is compared with the initial feature information of the set-top box under test to obtain the first comparison result;

[0069] If the first comparison result is consistent, the set-top box under test passes the initialization verification; if the first comparison result is inconsistent, the set-top box under test is controlled to stop the self-test.

[0070] In this embodiment of the invention, the initial feature information and current feature information of the set-top box under test both include timing information (Timing) for generically referring to the output format, audio frame information (Audio Info-Frame), and vendor-specific information (vs-if) specific to the set-top box under test. The length of the identification information is fixed, which refers to the total length of the timing information, audio frame information, and vendor-specific information.

[0071] In this embodiment of the invention, the self-test result of the set-top box under test can be determined by identifying the test data through an identification model and then comparing the identification information with the tag information on the corresponding tag data. Alternatively, the self-test result of the set-top box under test can be determined by comparing the identification information with the tag information on the corresponding tag data and by comparing the output time and the return time. The above two methods can also be combined to determine the self-test result of the set-top box under test. The comparison process of the two methods is described in detail below.

[0072] Within the set-top box that has passed initialization verification, the AI ​​model identifies the decoded test data to obtain identification information; the test data is then restored to JPG format through decoding.

[0073] Specifically, the set-top box under test includes an AI model that identifies test data within the set-top box to obtain identification information. Based on the identification information and tag information, the set-top box's self-test results include:

[0074] Control the AI ​​model to identify test data and obtain identification information;

[0075] The identification information is compared with the label information on the corresponding marker data to obtain the second comparison result;

[0076] The self-test results of the set-top box under test are determined based on the second comparison results.

[0077] It should be noted that the AI ​​model can be pre-placed inside any unit of the set-top box under test. In this embodiment of the invention, for ease of use, the AI ​​model is pre-placed inside the test unit for recognizing test data. The AI ​​model is trained using labeled data. Since the test data used is the training set of the large model, theoretically the recognition accuracy of the large AI model is close to 100%.

[0078] The preferred method is to use a TensorFlow model for recognition. TensorFlow is an open-source deep learning framework based on data flow graphs, which can be applied to the accurate recognition of object location and category. It should be noted that the TensorFlow model is trained using conventional training methods. In this embodiment of the invention, the data used to train the TensorFlow model is the same as the actual test data, which is the output data of the set-top box under test.

[0079] In this embodiment of the invention, when the test data is video data, the video data is identified by an AI model to obtain identification information. The identification information includes the frame number, time point, resolution and QR code on each frame of video data. The identification information is compared with the tag information on the corresponding tag data to obtain a second comparison result. The second comparison result includes two cases: consistent and inconsistent.

[0080] When the second comparison results are consistent, it is determined that the self-test result of the set-top box under test is that the video data being played is normal;

[0081] When the second comparison results are inconsistent, it is determined that the self-test result of the set-top box under test is that the video data being played is abnormal.

[0082] In this embodiment of the invention, when the test data is audio data, the audio data is identified by an AI model to obtain identification information, which includes volume level and trend of change, wherein the volume level is 0dB, -20dB, 20dB, and the trend of change is sine wave, pure high level, and pure low level.

[0083] During the same time period, the identification information and the label information on the corresponding marker data are compared to obtain a second comparison result. The second comparison result includes two cases: consistent and inconsistent.

[0084] When the second comparison results are consistent, the self-test result of the set-top box under test is determined to be that the audio data playback is normal.

[0085] When the second comparison results are inconsistent, the self-test result of the set-top box under test is determined to be abnormal audio data playback;

[0086] Alternatively, within the same time period, the identification information and the tag information on the corresponding marked data are compared to obtain the difference between the two. When the difference is not greater than a preset threshold, the self-test result of the set-top box under test is determined to be normal audio data playback; when the difference is greater than the preset threshold, the self-test result of the set-top box under test is determined to be abnormal audio data playback. The preset threshold can be set according to the scenario and requirements.

[0087] In this embodiment of the invention, when the test data is image data, the image data is identified by an AI model to obtain identification information, which includes resolution, identification points, and QR code. The identification information is compared with the label information on the corresponding marked data to obtain a second comparison result. The second comparison result includes two cases: consistent and inconsistent.

[0088] When the second comparison results are consistent, it is determined that the self-test result of the set-top box under test is that the displayed image data is normal.

[0089] When the second comparison results are inconsistent, it is determined that the self-test result of the set-top box under test is that the displayed image data is abnormal.

[0090] Specifically, the self-test results of the set-top box under test are determined based on identification and tag information, including:

[0091] Calculate the difference between the output time of each output data and the return time of the corresponding test data to the set-top box under test; where the output data and test data correspond one-to-one.

[0092] The delayed mean is obtained from the difference;

[0093] The self-test results of the set-top box under test are determined based on the second comparison results, the latency information of the test data, and the average latency.

[0094] In this embodiment of the invention, when the set-top box under test outputs the output data, the output time of each output data is recorded, and the return time of each test data is obtained back to the set-top box under test. The difference between the output time and the return time of 300 frames of output data can be calculated to obtain the average delay.

[0095] To improve the accuracy of self-testing, this embodiment of the invention uses a combination of the two methods described above to determine the self-test results of the set-top box under test. Specifically, the self-testing of the set-top box under test is performed using three different types of raw multimedia data as examples, and the process is as follows:

[0096] When the original multimedia data is video data, the output time of the output data is recorded, and the output data is processed through a loopback-loopout device to obtain test data, which is then sent back to the test unit of the set-top box under test. The return time of each test data to the set-top box under test is recorded. The test unit restores the test data to video format and retrieves the trained AI model for recognition to obtain recognition information. The recognition information can be one or more of the following: frame number, resolution, and QR code on each video frame. By scanning the QR code, the basic information of each video frame is obtained. This recognition information is compared one by one with the tag information on the corresponding tag data. If the comparison is consistent, and the difference between the output time and the return time is within the preset difference range of the average delay, then the self-test result of the set-top box under test is that the video data of that frame is displayed normally; otherwise, the video data of that frame is displayed abnormally.

[0097] When the original multimedia data is audio data, record the output time of the output data;

[0098] The loopback and loopout device encodes the received audio data through the frame processing module, obtains the encoded audio data, and sends it back to the test unit of the set-top box under test. It also records the transmission time of the encoded audio data back to the set-top box under test.

[0099] The test unit restores the encoded audio data to PCM format data through the restoration subunit, records the PCM format data using an audio acquisition device, and calculates the root mean square value of the PCM format data. The calculation expression is as follows:

[0100]

[0101] The formula for converting audio PCM format data into decibels (dB) to represent volume is:

[0102] dB = 20log 10 (RMS)

[0103] Where, x i Let N represent the i-th audio data, and let N represent the total number of audio data. dB represents decibels, and RMS represents the root mean square value of the audio PCM format data.

[0104] The root mean square value of the audio PCM format data is converted into decibels to represent the volume level. The AI ​​model is then used to identify the volume level and the trend of change. The volume level is 0dB, -20dB, and 20dB, and the trend of change is a sine wave, pure high level, and pure low level.

[0105] Within the same time period, the identification information and the label information on the corresponding marked data are compared to obtain a second comparison result;

[0106] If the second comparison results are consistent, and the difference between the output time and the return time is within the preset difference range of the mean delay, the self-test result of the set-top box under test is determined to be normal audio data playback; otherwise, the self-test result of the set-top box under test is determined to be abnormal audio data playback.

[0107] When the original multimedia data is image data, record the output time of the output data;

[0108] The loopback and loopout device encodes the image data through the frame processing module, and then sends the encoded image data back to the test unit in the set-top box under test, recording the transmission time of the encoded image data back to the set-top box under test.

[0109] The processed image data is restored to its original image format and input into the trained recognition model for recognition. The recognition information can be one or more of the following: resolution, recognition points, and QR code. This recognition information is compared with the label information on the corresponding labeled data. If the information is consistent and the difference between the output time and the return time is within the preset difference range of the mean delay, then the self-test result of the set-top box under test is that the image data is displayed normally; otherwise, the image data is displayed abnormally.

[0110] It should be noted that if the video data, audio playback, and image data are all displayed or played normally, the self-test result of the set-top box under test is that the set-top box under test is qualified; if any of the three test data are displayed or played abnormally, the self-test result of the set-top box under test is that the set-top box under test is unqualified. This can improve the accuracy of the set-top box self-test.

[0111] This invention receives output data from the set-top box under test (UTC) via a loopback-loop-out device, processes the output data to obtain test data, identifies the test data within the UTC to obtain identification information, and determines the self-test result of the UTC based on the identification information and tag information. The tag information corresponds one-to-one with the identification information. Compared to existing technologies, this invention utilizes only the loopback-loop-out device and the UTC, reducing the number of testing devices. It directly identifies the test data within the UTC to obtain identification information, and determines the self-test result based on the identification information and tag information. Obtaining the test result within the UTC effectively prevents accuracy issues caused by the wear and tear of external devices, thereby improving test accuracy. Furthermore, it uses artificial intelligence algorithms to identify identification information for testing, solving the problems of traditional testing methods relying heavily on manual labor and being prone to missed tests or test loopholes that are difficult for humans to detect.

[0112] like Figure 3 As shown, this embodiment of the invention also provides a set-top box self-testing device 100, which includes:

[0113] The processing module 101 is used to receive the output data of the set-top box under test through the loopback and loopout device, and process the output data to obtain test data.

[0114] The test module 102 is used to identify test data in the set-top box under test, obtain identification information, and determine the self-test result of the set-top box under test based on the identification information and tag information; wherein, the tag information corresponds one-to-one with the identification information.

[0115] It should be noted that the information interaction and execution process between the above-mentioned devices / units are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, and they will not be repeated here.

[0116] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0117] This invention also provides an electronic device, such as... Figure 4 As shown, the terminal device D10 of this embodiment includes: at least one processor D100 ( Figure 4 The diagram shows only one processor, a memory D101, and a computer program D102 stored in the memory D101 and executable on the at least one processor D100. When the processor D100 executes the computer program D102, it implements a set-top box self-test method.

[0118] The terminal device D10 can be a desktop computer, laptop, handheld computer, server, server cluster, or cloud server, etc. This terminal device may include, but is not limited to, a processor D100 and a memory D101. Those skilled in the art will understand that... Figure 4 This is merely an example of terminal device D10 and does not constitute a limitation on terminal device D10. It may include more or fewer components than shown in the figure, or combine certain components, or different components, such as input / output devices, network access devices, etc.

[0119] The processor D100 can be a central processing unit (CPU), or it can be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor.

[0120] In some embodiments, the memory D101 may be an internal storage unit of the terminal device D10, such as a hard disk or memory of the terminal device D10. In other embodiments, the memory D101 may be an external storage device of the terminal device D10, such as a plug-in hard disk, smart media card (SMC), secure digital card (SD), flash card, etc., equipped on the terminal device D10. Furthermore, the memory D101 may include both internal and external storage units of the terminal device D10. The memory D101 is used to store the operating system, applications, bootloader, data, and other programs, such as the program code of the computer program. The memory D101 can also be used to temporarily store data that has been output or will be output.

[0121] It should be noted that the information interaction and execution process between the above-mentioned devices / units are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, and they will not be repeated here.

[0122] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0123] This invention also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements a set-top box self-testing method.

[0124] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include at least: any entity or device capable of carrying the computer program code to a building device / terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks.

[0125] The above description represents the preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. A self-testing method for a set-top box, characterized in that, include: The output data of the set-top box under test is received through a loopback-loopout device, and the output data is encoded to obtain test data. The output data of the set-top box under test includes the marked data processed by the test unit and the identification information of the set-top box under test. The identification information represents the current characteristic information of the set-top box under test. The test data is identified within the set-top box under test to obtain identification information, and the self-test result of the set-top box under test is determined based on the identification information and tag information; wherein, the tag information corresponds one-to-one with the identification information; The process includes, before identifying the test data within the set-top box under test, the following steps: The set-top box under test is initialized and verified based on its identification information. The initialization verification of the set-top box under test based on its identification information includes: Within the loopback and loopout device, for each piece of test data, the identification information is added to the header of the test data to obtain multiple initialization verification data; The test unit is controlled to read each piece of initialization verification data and parse out the identification information in each piece of initialization verification data; The parsed identification information is compared with the initial feature information of the set-top box under test to obtain the first comparison result; If the first comparison result is consistent, the set-top box under test passes the initialization verification; if the first comparison result is inconsistent, the set-top box under test is controlled to stop the self-test. The set-top box under test includes a test unit, and before the set-top box under test outputs data, it also includes: The tag information is added to each piece of data in the original multimedia data to obtain tagged data; the tag information is used to tag each piece of multimedia data in the original multimedia data; The labeled data is input into the test unit of the set-top box under test.

2. The set-top box self-testing method according to claim 1, characterized in that, The set-top box under test further includes a testing unit. The output data of the set-top box under test includes labeled data processed by the testing unit and identification information of the set-top box under test. The identification information represents the current characteristic information of the set-top box under test. The output data is encoded to obtain test data, including: The received processed marker data is encoded by the loopback and loopout device to obtain multiple test data, and the test data is transmitted back to the test unit of the set-top box under test.

3. The set-top box self-testing method according to claim 1, characterized in that, The set-top box under test includes an AI model. Within the set-top box, the test data is identified to obtain identification information. Based on the identification information and tag information, the self-test result of the set-top box under test is determined, including: The AI ​​model is controlled to identify the test data to obtain the identification information; The identification information is compared with the tag information on the corresponding tag data to obtain a second comparison result; The self-test result of the set-top box under test is determined based on the second comparison result.

4. The set-top box self-testing method according to claim 3, characterized in that, The self-test result of the set-top box under test is determined based on the identification information and tag information, including: Calculate the difference between the output time of each output data and the return time of the corresponding test data to the set-top box under test; wherein, the output data and the test data correspond one-to-one. The mean delay is obtained based on the difference; The self-test result of the set-top box under test is determined based on the second comparison result, the delay information of the test data, and the average delay.

5. A set-top box self-testing device, used to execute the set-top box self-testing method according to any one of claims 1-4, characterized in that, include: The processing module is used to receive the output data of the set-top box under test through the loopback and loopout device, and to encode the output data to obtain test data; The testing module is used to identify the test data in the set-top box under test, obtain identification information, and determine the self-test result of the set-top box under test based on the identification information and tag information; wherein the tag information corresponds one-to-one with the identification information.

6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the set-top box self-test method as described in any one of claims 1 to 4.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the set-top box self-test method as described in any one of claims 1 to 4.