Set top box self-test method, device, equipment and medium

Through the loopback and loop-out device and AI model to identify test data in the set-top box, the problem of low accuracy caused by the traditional set-top box testing methods relying on manual, and a more efficient and accurate self-testing process is achieved.

CN119544960AActive Publication Date: 2025-02-28HUNAN GOKE MICROELECTRONICS CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411738811.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-29
Publication Date
2025-02-28
Estimated Expiration
2044-11-29

AI Technical Summary

Technical Problem

The traditional set-top box testing method relies on manual observation, has low accuracy, and the solution using PC plus camera is high cost and the environment is complex.

Method used

The output data of the set-top box to be tested is received through the loop-back loop-out device, and the test data is obtained to obtain the test data, and the test data is identified through an AI model in the set-top box to be tested, and the self-test results are determined based on the identification information and label information.

Benefits of technology

The number of test equipment is reduced, the accuracy of the test is improved, the accuracy of external devices is avoided due to their own consumption, and the identification information is identified through artificial intelligence algorithms, solving the missed test problem caused by traditional testing methods relying on manual.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure BDA0005162139990000101
    Figure BDA0005162139990000101
  • Figure HDA0005162140010000011
    Figure HDA0005162140010000011
  • Figure HDA0005162140010000021
    Figure HDA0005162140010000021
Patent Text Reader

Abstract

The invention provides a set top box self-test method and device, equipment and a medium, and the method comprises the steps: receiving output data of a to-be-tested set top box through a loopback and loopout device, and processing the output data to obtain test data; identifying the test data in the to-be-tested set top box to obtain identification information, and determining a self-test result of the to-be-tested set top box according to the identification information and the label information; wherein the label information is in one-to-one correspondence with the identification information; compared with the prior art, only the loopback and loopback device and the set top box to be tested are utilized, the number of testing devices is reduced, the testing data are directly identified in the set top box to be tested to obtain the identification information, and the self-testing 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 to-be-tested set top box, so that the precision problem caused by self consumption of the external equipment can be effectively prevented, and the test accuracy is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of set-top box testing, and in particular to a set-top box self-testing method, device, equipment and medium. Background Art

[0002] The set-top box is the window for users to access digital television and a display platform for the many functions of digital television. The realization of its functions and the quality of its quality directly affect the user's acceptance of digital television.

[0003] The traditional testing method is to connect a monitor or TV and manually observe whether the currently playing audio and video programs have abnormal phenomena such as freezes, mosaics, screen distortion, audio and video asynchrony, etc., and use this to determine whether the functions of the set-top box meet the development requirements. It relies heavily on manual labor and is prone to missed tests or some problems that are difficult to detect manually, resulting in low test accuracy. In addition, the solution of using a PC (computer) plus a camera to judge the results is costly and the test environment is complex. Summary of the invention

[0004] The invention provides a set-top box self-test method, device, equipment and medium, the purpose of which is to simplify the test equipment and improve the accuracy of the test.

[0005] In order to achieve the above object, the present invention provides a set-top box self-test method, comprising:

[0006] The output data of the set-top box to be tested is received through the loop-back loop-out device, and the output data is processed to obtain test data;

[0007] The test data is identified in the set-top box to be tested to obtain 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; wherein the label information corresponds to the identification information one by one.

[0008] Further, the set-top box to be tested includes a unit to be tested, and before the set-top box to be tested outputs data, it also includes:

[0009] Adding label information to each piece of data in the original multimedia data to obtain labeled data;

[0010] Input the label data to the unit under test.

[0011] Further, the set-top box to be tested further includes a test unit, and the output data of the set-top box to be tested includes the marking data processed by the test unit and the identification information of the set-top box to be tested, and the identification information represents the current characteristic information of the set-top box to be tested. The output data is processed to obtain the test data, including:

[0012] The received processed marking data is encoded by the loop-back loop-out device to obtain a plurality of test data, and the test data is transmitted back to the test unit of the set-top box to be tested.

[0013] Furthermore, before the test data is identified in the set-top box to be tested, it also includes:

[0014] The set-top box to be tested is initialized and verified according to the identification information of the set-top box to be tested.

[0015] Specifically, initialization verification is performed on the set-top box to be tested according to the identification information of the set-top box to be tested, including:

[0016] In the loop-back loop-out device, for each 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] Comparing the parsed identification information with the initial characteristic information of the set-top box to be tested to obtain a first comparison result;

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

[0020] Further, the set-top box to be tested includes an AI model, which identifies the test data in the set-top box to obtain identification information, and the self-test result of the set-top box to be tested according to the identification information and the label information includes:

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

[0022] Comparing the identification information with the label information on the corresponding marked data to obtain a second comparison result;

[0023] The self-test result of the set-top box to be tested is determined according to the second comparison result.

[0024] Further, determining the self-test result of the set-top box to be tested according to the identification information and the tag information includes:

[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; wherein the output data corresponds to the test data one by one;

[0026] The delay mean is obtained based on the difference;

[0027] The self-test result of the set-top box to be tested is determined according to the second comparison result, the delay information of the test data and the delay mean.

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

[0029] A processing module is used to receive output data of the set-top box to be tested through a loop-back loop-out device, and process the output data to obtain test data;

[0030] The test module is used to identify the test data in the set-top box to be tested, obtain identification information, and determine the self-test result of the set-top box to be tested according to the identification information and label information; wherein the label information corresponds to the identification information one by one.

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

[0032] The present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, a set-top box self-test method is implemented.

[0033] The above scheme of the present invention has the following beneficial effects:

[0034] The present invention receives output data of a set-top box to be tested through a loop-back loop-out device, and processes the output data to obtain test data; the test data is identified in the set-top box to be tested to obtain identification information, and the 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 corresponds to the identification information one-to-one; compared with the prior art, the present invention only utilizes two devices, the loop-back loop-out device and the set-top box to be tested, thereby reducing the number of test devices, directly identifying the test data in the set-top box to be tested to obtain identification information, and determining the self-test result of the set-top box to be tested according to the identification information and label information, and obtaining the test result inside the set-top box to be tested, which can effectively prevent the accuracy problem caused by the self-consumption of the external device, thereby improving the accuracy of the test.

[0035] Other beneficial effects of the present invention will be described in detail in the subsequent specific implementation section. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 It is a schematic diagram of a flow chart of an embodiment of the present invention;

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

[0038] Figure 3 Schematic diagram of a set-top box self-test device according to an embodiment of the present invention;

[0039] Figure 4Schematic diagram of the structure of an electronic device in an embodiment of the present invention. DETAILED DESCRIPTION

[0040] In order to make the technical problems, technical solutions and advantages to be solved by the present invention clearer, the following will be described in detail with reference to the accompanying drawings and specific embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0041] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.

[0042] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installation", "connection" and "connection" should be understood in a broad sense, for example, it can be a locking connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0043] In addition, 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] The invention aims at the existing problems and provides a set-top box self-test method.

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

[0046] The output data of the set-top box to be tested is received through the loop-back loop-out device, and the output data is processed to obtain test data;

[0047] The test data is identified in the set-top box to be tested to obtain 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; wherein the label information corresponds to the identification information one by one.

[0048] In the embodiment of the present invention, the set-top box to be tested is equipped with a test application for testing the set-top box to be tested. The test application is used to identify test data, obtain identification information, and determine the self-test result of the set-top box to be tested according to the identification information and label information.

[0049] Since the set-top box has only an HDMI output interface and a USB input interface, in the embodiment of the present invention, the set-top box to be tested sends an HDMI signal to the loop-back loop-out device through the HDMI output interface when playing the original multimedia data. The HDMI signal includes the identification information of the set-top box to be tested and the original multimedia data processed by the set-top box to be tested; the loop-back loop-out device sends the processed multimedia data to the inside of the set-top box to be tested through the USB interface for testing. Figure 2 shown.

[0050] It should be noted that the loop-back loop-out device includes a processor, the input end of the processor is connected to the HDMI output interface of the set-top box to be tested, the output end of the processor is connected to the USB input port of the set-top box to be tested, the input end of the processor is used to receive the output data of the set-top box to be tested, the loop-back loop-out device also includes a frame processing module, which is used to encode the data input into the loop-back loop-out device, and can add identification information to the header of the encoded data for subsequent initialization verification of the set-top box, and the frame processing module can be a soft module or a hard module; when the frame processing module is a soft module, for ease of use, the module is mounted in the processor of the loop-back loop-out acquisition device, and when the frame processing module is a hard module, for ease of use, the input end of the module is connected to the HDMI output interface of the set-top box to be tested, and the output end of the module is connected to the input end of the processor in the loop-back loop-out acquisition device.

[0051] Specifically, the set-top box to be tested includes a unit to be tested, and before the set-top box to be tested outputs data, it also includes:

[0052] Adding label information to each piece of data in the original multimedia data to obtain labeled data;

[0053] Input the label data to the unit under test.

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

[0055] When the original multimedia data is video data, the tag information includes the number of frames, time point, resolution and QR code, and the 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 an audio file, and the audio file includes audio data of a sine wave, a pure high level, and a pure low level with volume levels of 0 dB, -20 dB, and 20 dB distributed at a fixed time;

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

[0058] It should be noted that the frame number refers to the serial number added to each frame of video data, the time point includes the start time and the end time of the video data, the resolution refers to the resolution of each frame of video data or each picture, and the QR code is used to describe the basic information of the video data or the picture data, such as the sequence, the encoding information, etc.; due to the different levels of audio, the actual volume output through the interface is not necessarily the original volume of the audio, at this time it is necessary to find a system volume by adjusting the volume of the set-top box so that the volume output by the interface is consistent with the original volume. For this reason, in order to calibrate the test data, the embodiment of the present invention divides the volume into 0dB, -20dB, and 20dB. A pure high level means that the volume is always the maximum value per unit time, and a pure low level means that the volume is always the minimum value per unit time; an identification point refers to a feature on the picture data.

[0059] Specifically, the set-top box to be tested further includes a test unit, and output data of the set-top box to be tested includes the marking data processed by the test unit and identification information of the set-top box to be tested, the identification information represents the current characteristic information of the set-top box to be tested, and the output data is processed to obtain test data, including:

[0060] The received processed marking data is encoded by the loop-back loop-out device to obtain a plurality of test data, and the test data is transmitted back to the test unit of the set-top box to be tested.

[0061] It should be noted that, in the embodiment of the present invention, the encoding method adopted by the loop-back and loop-out device is a conventional video encoding method, an audio encoding method, or an image encoding method. For example, the video encoding method may be but is not limited to the MPEG4 video encoding method, the audio encoding method may be but is not limited to the pulse code modulation (PCM, Pulse Code Modulation) method, and the image encoding method may be but is not limited to the entropy coding method; the identification information represents the current characteristic information of the set-top box to be tested, such as the resolution, refresh rate, sound format, and number of channels of the current HDMI output screen of the set-top box to be tested, and can also represent the supplier information specific to the set-top box to be tested.

[0062] In the embodiment of the present invention, the test application program for testing the set-top box to be tested is installed in the test unit of the set-top box to be tested.

[0063] Specifically, before the test data is identified in the set-top box to be tested, it also includes:

[0064] The set-top box to be tested is initialized and verified according to the identification information of the set-top box to be tested.

[0065] Specifically, initialization verification is performed on the set-top box to be tested according to the identification information of the set-top box to be tested, including:

[0066] In the loop-back loop-out device, for each 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] Comparing the parsed identification information with the initial characteristic information of the set-top box to be tested to obtain a first comparison result;

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

[0070] In an embodiment of the present invention, the initial feature information and the current feature information of the set-top box to be tested both include timing information Timing for generally referring to the output format, audio frame information Audio Info-Frame, and vendor-specific information vs-if that is specific to the set-top box to be tested, and the length of the identification information is fixed, which refers to the total length of the timing information, the audio frame information, and the vendor-specific information added together.

[0071] In an embodiment of the present invention, the self-test result of the set-top box to be tested can be determined by comparing the identification information with the label information on the corresponding marking data after identifying the test data through the identification model, or by comparing the identification information with the label information on the corresponding marking data and comparing the output time and the return time. The above two methods can also be superimposed to determine the self-test result of the set-top box to be tested. The comparison process of the two methods is described in detail below.

[0072] In the set-top box to be tested that has passed the initialization verification, the decoded test data is identified based on the AI ​​model to obtain identification information; and the test data is restored to the JPG format through decoding.

[0073] Specifically, the set-top box to be tested includes an AI model, which identifies the test data in the set-top box to obtain identification information, and obtains a self-test result of the set-top box to be tested based on the identification information and the label information, including:

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

[0075] Comparing the identification information with the label information on the corresponding marked data to obtain a second comparison result;

[0076] The self-test result of the set-top box to be tested is determined according to the second comparison result.

[0077] It should be noted that the AI ​​model can be pre-set in any unit in the set-top box to be tested. For ease of use, the embodiment of the present invention pre-sets the AI ​​model in the test unit to identify the test data; the AI ​​model is trained by labeled data. Since the test data used is the training set of the large model, the recognition accuracy of the AI ​​large model is theoretically close to 100%.

[0078] Most preferably, the recognition model is a TensorFlow model, which is an open source deep learning framework based on a data flow graph, and can be used to accurately identify the position and category of objects; it should be noted that the TensorFlow model is trained using conventional training methods, and the data used to train the TensorFlow model in the embodiment of the present invention is the same as the actual test data, both of which are output data of the set-top box to be tested.

[0079] In an embodiment of the present 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 of each frame of video data, and the identification information is compared with the label information on the corresponding marked data to obtain a second comparison result, which includes two situations, namely, consistency and inconsistency;

[0080] When the second comparison result is consistent, it is determined that the self-test result of the set-top box to be tested is that the played video data is displayed normally;

[0081] When the second comparison result is inconsistent, it is determined that the self-test result of the set-top box to be tested is that the played video data is displayed abnormally.

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

[0083] In the same time period, the identification information is compared with the label information on the corresponding marked data to obtain a second comparison result, where the second comparison result includes two situations, namely, consistency and inconsistency;

[0084] When the second comparison result is consistent, determining that the self-test result of the set-top box to be tested is that the audio data is played normally;

[0085] When the second comparison result is inconsistent, determining that the self-test result of the set-top box to be tested is abnormal audio data playback;

[0086] Alternatively, in the same time period, the identification information is compared with the label information on the corresponding mark data to obtain the difference between the two. When the difference is not greater than a preset threshold, it is determined that the self-test result of the set-top box to be tested is that the audio data playback is normal; when the difference is greater than the preset threshold, it is determined that the self-test result of the set-top box to be tested is that the audio data playback is abnormal; the preset threshold can be set according to the scenario and needs.

[0087] In an embodiment of the present invention, when the test data is image data, the image data is identified by an AI model to obtain identification information, the identification information includes resolution, identification point, and QR code, and the identification information is compared with the label information on the corresponding mark data to obtain a second comparison result, which includes two situations, namely, consistency and inconsistency;

[0088] When the second comparison result is consistent, it is determined that the self-test result of the set-top box to be tested is that the played picture data is displayed normally;

[0089] When the second comparison result is inconsistent, it is determined that the self-test result of the set-top box to be tested is that the played picture data is displayed abnormally.

[0090] Specifically, the self-test result of the set-top box to be tested is determined according to the identification information and the label 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; wherein the output data corresponds to the test data one by one;

[0092] The delay mean is obtained based on the difference;

[0093] The self-test result of the set-top box to be tested is determined according to the second comparison result, the delay information of the test data and the delay mean.

[0094] In an embodiment of the present invention, when the set-top box to be tested outputs the output data, the output time of each output data is recorded, and the return time of each test data transmitted back to the set-top box to be tested is obtained. The output time and the return time of 300 frames of output data can be taken for difference calculation, and then the delay mean is calculated.

[0095] In order to improve the accuracy of the self-test, the embodiment of the present invention adopts the above two methods to be superimposed to determine the self-test result of the set-top box to be tested. Specifically, three different original multimedia data are used as examples to perform the self-test of the set-top box to be tested. 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 loop-back loop-out device to obtain test data and transmit it back to the test unit of the set-top box to be tested, and the return time of each test data to the set-top box to be tested is recorded; the test unit restores the test data to a video format and calls the trained AI model for recognition to obtain identification information, which may be one or more of the number of frames, resolution and QR code on each frame of video. By scanning the QR code, the basic information of each frame of video is obtained, and the identification information is compared with the label information on the corresponding marked data one by one. If the comparison is consistent, and the difference between the output time and the return time is within the preset difference range of the delay mean, then the self-test result of the set-top box to be tested is that the display of the frame of video data is normal, otherwise, the display of the frame of video data is abnormal.

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

[0098] The loop-back loop-out device encodes the received audio data through the frame processing module, obtains the encoded audio data and transmits it back to the test unit of the set-top box to be tested, and records the return time of the encoded audio data to the set-top box to be tested;

[0099] The test unit restores the encoded audio data to audio PCM format data through the restoration subunit, records the audio PCM format data with the help of the audio collector, and calculates the root mean square value of the audio PCM format data. The calculation expression is:

[0100]

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

[0102] dB=20log 10 (RMS)

[0103] Among them, x i represents the i-th audio data, N represents the total number of audio data, dB represents decibel, and RMS represents the root mean square value of audio PCM format data;

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

[0105] In the same time period, the identification information is compared with the label information on the corresponding marked data to obtain a second comparison result;

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

[0107] When the original multimedia data is picture data, the output time of the output data is recorded;

[0108] The loop-back loop-out device encodes the image data through the frame processing module, transmits the encoded image data back to the test unit in the set-top box to be tested, and records the transmission time of the encoded image data back to the set-top box to be tested;

[0109] The processed image data is restored to the image format and input into the trained recognition model for recognition to obtain recognition information. The recognition information can be one or more of resolution, recognition point and QR code. These recognition information are compared with the label information on the corresponding marked data one by one. If the information is consistent and the difference between the output time and the return time is within the preset difference range of the delay mean, the self-test result of the set-top box to be tested is that the image data is displayed normally. Otherwise, the image data is displayed abnormally.

[0110] It should be noted that if the three test data, namely, video data, audio playback, and picture 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 one of the three test data, namely, video data, audio playback, and picture data, is 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, thereby improving the accuracy of the set-top box self-test.

[0111] The embodiment of the present invention receives output data of a set-top box to be tested through a loop-back loop-out device, and processes the output data to obtain test data; the test data is identified in the set-top box to be tested to obtain identification information, and the 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 corresponds one to one with the identification information; compared with the prior art, the present invention only utilizes two devices, the loop-back loop-out device and the set-top box to be tested, thereby reducing the number of test devices, and directly identifies the test data in the set-top box to be tested to obtain identification information, and determines the self-test result of the set-top box to be tested according to the identification information and label information. The test result is obtained inside the set-top box to be tested, which can effectively prevent the accuracy problem caused by the self-consumption of the external device, thereby improving the accuracy of the test, and further identifies the identification information through an artificial intelligence algorithm for testing, thereby solving the problem that the traditional testing method relies more on manual labor and is prone to missed tests or some test loopholes that are difficult for manual labor to detect.

[0112] like Figure 3 As shown, the embodiment of the present invention further provides a set-top box self-test device 100, and the set-top box self-test device 100 includes:

[0113] The processing module 101 is used to receive the output data of the set-top box to be tested through the loop-back loop-out device, and process the output data to obtain test data;

[0114] The test module 102 is used to identify the test data in the set-top box to be tested, obtain identification information, and determine the self-test result of the set-top box to be tested according to the identification information and the label information; wherein the label information corresponds to the identification information one by one.

[0115] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0116] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by 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 embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0117] The embodiment of the present invention further 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 Only one processor is shown in the figure), a memory D101, and a computer program D102 stored in the memory D101 and executable on the at least one processor D100, wherein the processor D100 implements a set-top box self-test method when executing the computer program D102.

[0118] The terminal device D10 may be a computing device such as a desktop computer, a notebook, a PDA, a server, a server cluster, a cloud server, etc. The terminal device may include, but is not limited to, a processor D100 and a memory D101. Those skilled in the art will appreciate that Figure 4 This is only an example of the terminal device D10 and does not constitute a limitation on the terminal device D10. The terminal device D10 may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.

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

[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 also be an external storage device of the terminal device D10, such as a plug-in hard disk, a smart memory card (SMC, SmartMedia Card), a secure digital (SD, Secure Digital) card, a flash card (Flash Card), etc. equipped on the terminal device D10. Further, the memory D101 may also include both an internal storage unit of the terminal device D10 and an external storage device. The memory D101 is used to store an operating system, an application program, a boot loader (BootLoader), data and other programs, such as the program code of the computer program, etc. The memory D101 may also be used to temporarily store data that has been output or is to be output.

[0121] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0122] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by 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 embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0123] The embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, a set-top box self-test method is implemented.

[0124] If the integrated unit is implemented in the form of 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, the present application implements all or part of the process in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the construction device / terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a disk or an optical disk.

[0125] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A set-top box self-test method, characterized in that: include: The output data of the set-top box to be tested is received through the loop-back 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 corresponds to the identification information one by one.

2. The set-top box self-test method according to claim 1, characterized in that: The set-top box to be tested includes a unit to be tested, and before the set-top box to be tested outputs data, further includes: Adding the label information to each piece of data in the original multimedia data to obtain labeled data; The tag data is input to the unit to be tested.

3. The set-top box self-test method according to claim 2, characterized in that: The set-top box to be tested further includes a testing unit, output data of the set-top box to be tested includes marking data processed by the unit to be tested and identification information of the set-top box to be tested, the identification information represents current feature information of the set-top box to be tested, and the output data is processed to obtain test data, including: The received processed marking data is encoded by the loop-back loop-out device to obtain a plurality of test data, and the test data is transmitted back to the test unit of the set-top box to be tested.

4. The set-top box self-test method according to claim 3, characterized in that: Before the test data is identified in the set-top box to be tested, the method further includes: Initialization verification is performed on the set-top box to be tested according to the identification information of the set-top box to be tested.

5. The set-top box self-test method according to claim 4, characterized in that: The initializing and verifying the set-top box to be tested according to the identification information of the set-top box to be tested includes: In the loop-back loop-out device, for each test data, the identification information is added to the header of the test data to obtain a plurality of initialization verification data; Controlling the test unit to read each piece of initialization verification data and parse out identification information in each piece of initialization verification data; Comparing the parsed identification information with the initial characteristic information of the set-top box to be tested to obtain a first comparison result; If the first comparison result is consistent, the set-top box to be tested passes the initialization verification; if the first comparison result is inconsistent, the set-top box to be tested is controlled to stop self-testing.

6. The set-top box self-test method according to claim 2, characterized in that: The set-top box to be tested includes an AI model, and the test data is identified in the set-top box to obtain identification information, and the self-test result of the set-top box to be tested according to the identification information and the tag information includes: Controlling the AI ​​model to identify the test data to obtain the identification information; Comparing the identification information with the label information on the corresponding marking data to obtain a second comparison result; A self-test result of the set-top box to be tested is determined according to the second comparison result.

7. The set-top box self-test method according to any one of claims 1 to 6, characterized in that: Determining a self-test result of the set-top box to be tested according to the identification information and the label information includes: Calculating the difference between the output time of each output data and the return time of the corresponding test data to the set-top box to be tested; wherein the output data corresponds to the test data one by one; Obtaining a delay mean value according to the difference; The self-test result of the set-top box to be tested is determined according to the second comparison result, the delay information of the test data and the delay mean.

8. A set-top box self-test device, characterized in that: include: A processing module, used for receiving output data of the set-top box to be tested through a loop-back loop-out device, and processing the output data to obtain test data; The test module is used to identify the test data in the set-top box to be tested, obtain identification information, and determine the self-test result of the set-top box to be tested according to the identification information and label information; wherein the label information corresponds to the identification information one by one.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the set-top box self-test method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the set-top box self-test method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Method and device for detecting network port performance of IPTV set-top box

    CN101877658A

  • Method and device for detecting network faults of terminal and system

    CN103974139A

  • Set top box test method, device and system

    CN106954063A

  • Data loopback detection circuit of digital audio interface and digital audio equipment

    CN111082830A

  • Audio equipment testing method and system, electronic equipment and readable storage medium

    CN114679676A