A set-top box fault analysis method and system
Through the statistics and division of set-top box fault records, signal, hardware and display fault analysis is performed, which solves the problems of inaccurate fault analysis and low efficiency in the existing technology, and achieves more efficient fault location and analysis.
Patent Information
- Application Number
- CN202410961400.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-07-18
AI Technical Summary
Existing set-top box fault analysis methods lack clear fault cycle division and analysis sequence, resulting in a lack of accuracy and low efficiency in analysis results.
By obtaining the fault records of multiple sample set-top boxes, we can count the number of faults, divide the first and second fault cycles, define the basic data for fault judgment, conduct signal, hardware and display fault analysis, and comprehensively encode feedback.
It improves the accuracy and efficiency of fault analysis, enables targeted analysis of signal, hardware and display faults, and reduces the difficulty of fault location.
Smart Images

Figure CN118503003B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of electronic products and relates to a fault analysis technology, in particular to a set-top box fault analysis method and system. Background Art
[0002] A set-top box is an electronic device that converts received digital TV signals into signals that can be displayed by the TV. It usually receives and processes digital signals, and then outputs images and sounds through the video and audio interfaces provided by the TV.
[0003] The existing set-top box fault analysis method has the following defects:
[0004] 1. In the prior art, there is no clear fault cycle division to analyze different types of faults, which easily leads to inaccurate analysis results and increases the difficulty of fault location;
[0005] 2. When performing fault analysis, the order of analyzing different types of faults is usually random, and the order of fault analysis is not determined according to the frequency of occurrence of different types of faults, resulting in low fault analysis efficiency;
[0006] To this end, we propose a set-top box fault analysis method and system. Summary of the invention
[0007] In view of the deficiencies in the prior art, the present invention aims to provide a set-top box fault analysis method and system. The present invention obtains set-top box fault records corresponding to multiple sample set-top boxes to perform fault quantity statistics, obtains first fault cycle division data, obtains set-top box fault records corresponding to a target set-top box to perform fault statistics to obtain second fault cycle division data, obtains display test sample data, defines the first fault cycle division data, the second fault cycle division data and the display test sample data as basic fault judgment data, marks the target set-top box as a first fault type target set-top box or a second fault type target set-top box, and uses the first fault cycle division data to judge the first fault type target set-top box. The target set-top boxes are prioritized for fault cycles, and the second fault cycle division data is used to prioritize the fault cycles of the target set-top boxes of the second fault type to obtain fault cycle priority sorting data; signal fault analysis is performed on the target set-top boxes according to the fault cycle priority sorting data to obtain signal fault judgment data; hardware fault analysis is performed on the target set-top boxes according to the fault cycle priority sorting data to obtain hardware fault data; display fault analysis is performed on the target set-top boxes according to the fault cycle priority sorting data to obtain display fault judgment data; comprehensive fault coding is performed based on the signal fault judgment data, the hardware fault data and the display fault judgment data, and the comprehensive fault coding is fed back.
[0008] In order to achieve the above object, the present invention adopts the following technical solution: a set-top box fault analysis method, which also includes the following specific steps:
[0009] Step S1: acquiring set-top box fault records corresponding to a plurality of sample set-top boxes to perform fault quantity statistics to obtain first fault cycle division data, acquiring set-top box fault records corresponding to a target set-top box to perform fault statistics to obtain second fault cycle division data, acquiring display test sample data, and defining the first fault cycle division data, the second fault cycle division data and the display test sample data as basic data for fault judgment;
[0010] Step S2: marking the target set-top box as a first fault type target set-top box or a second fault type target set-top box, using the first fault cycle division data to perform fault cycle priority sorting on the first fault type target set-top box, and using the second fault cycle division data to perform fault cycle priority sorting on the second fault type target set-top box, to obtain fault cycle priority sorting data;
[0011] Step S3X: performing signal fault analysis on the target set-top box according to the fault cycle priority sorting data to obtain signal fault judgment data;
[0012] Step S3Y: performing hardware fault analysis on the target set-top box according to the fault cycle priority ranking data to obtain hardware fault data;
[0013] Step S3Z: performing display fault analysis on the target set-top box according to the fault cycle priority ranking data to obtain display fault judgment data;
[0014] Step S4: Perform comprehensive fault coding according to the signal fault judgment data, the hardware fault data and the display fault judgment data, and feed back the comprehensive fault coding.
[0015] Furthermore, the step S1 further includes the following specific steps:
[0016] Step S11: obtaining first fault cycle division data;
[0017] Step S12: obtaining second fault cycle division data;
[0018] The details are as follows:
[0019] Step S121: Obtain target set-top box fault records, and obtain the occurrence times of signal type faults, hardware type faults, and display type faults according to the target set-top box fault records, to obtain target signal type fault counts, target hardware type fault counts, and target display type fault counts;
[0020] Step S122: defining the target signal type fault number, the target hardware type fault number and the target display type fault number as second fault cycle division data;
[0021] Step S13: Acquire a test sample image;
[0022] The details are as follows:
[0023] Step S131: obtaining the highest playback resolution and the lowest playback resolution that can be achieved when the test sample image is played through a set-top box, and obtaining a playback resolution range;
[0024] Step S132: obtaining the highest playback contrast and the lowest playback contrast that can be achieved when the test sample image is played through the set-top box, and obtaining the playback contrast range;
[0025] Step S133: obtaining the highest playback brightness and the lowest playback brightness that can be achieved when the test sample image is played through the set-top box, and obtaining the playback brightness range;
[0026] Step S134: obtaining the highest color saturation and the lowest color saturation that can be achieved when the test sample image is played through the set-top box, and obtaining the playback color saturation range;
[0027] Step S135: defining the test sample image, the playback resolution interval, the playback contrast interval, the playback brightness interval, and the playback color saturation interval corresponding to the test sample image as display test sample data;
[0028] Step S14: defining the first fault cycle division data, the second fault cycle division data and the display test sample data as fault judgment basic data.
[0029] Furthermore, the step S11 further includes the following specific steps:
[0030] Step S111: Select mk set-top boxes of the same model as the target set-top box as sample set-top boxes, obtain the fault record corresponding to each sample set-top box, and obtain mk sample set-top box fault records;
[0031] Step S112: Classify the faults appearing in the mk sample set-top box fault records into signal type faults, hardware type faults and display type faults, wherein the fault analysis period corresponding to the signal type faults is the signal fault analysis period, the fault analysis period corresponding to the hardware type faults is the hardware fault analysis period, and the fault analysis period corresponding to the display type faults is the display fault analysis period.
[0032] Furthermore, the step S2 further includes the following specific steps:
[0033] Step S21: acquiring fault judgment basic data, and acquiring first fault cycle division data and second fault cycle division data respectively according to the fault judgment basic data;
[0034] Step S22: marking a set-top box fault troubleshooting cycle each time the set-top box is turned on, and dividing the set-top box fault troubleshooting cycle into a first fault analysis cycle, a second fault analysis cycle, and a third fault analysis cycle in chronological order;
[0035] Step S23: Obtain target set-top box fault records, and mark target set-top boxes that have not experienced faults as first fault type target set-top boxes according to the fault records, and mark target set-top boxes that have experienced faults as second fault type target set-top boxes;
[0036] Step S24: performing fault cycle priority sorting on the target set-top boxes of the first fault type to obtain a first fault cycle priority sorting;
[0037] Step S25: performing fault cycle priority sorting on the target set-top boxes of the second fault type to obtain a second fault cycle priority sorting;
[0038] The details are as follows:
[0039] Step S251: obtaining second fault cycle division data, and obtaining target signal type fault numbers, target hardware type fault numbers, and target display type fault numbers according to the second fault cycle division data;
[0040] Step S252: Arrange the target signal type fault number, the target hardware type fault number, and the target display type fault number in descending order according to the numerical value, and match the sorting result with the first fault analysis cycle, the second fault analysis cycle, and the third fault analysis cycle to obtain the second fault cycle priority sorting;
[0041] Step S26: define the first failure cycle priority ranking and the second failure cycle priority ranking as failure cycle priority ranking data.
[0042] Furthermore, the step S24 further includes the following specific steps:
[0043] Step S241: obtaining first fault cycle division data, obtaining the number of signal type faults, the number of hardware type faults and the number of display type faults according to the first fault cycle division data, arranging the number of signal type faults, the number of hardware type faults and the number of display type faults in descending order according to the numerical values, matching the number of signal type faults, the number of hardware type faults and the number of display type faults with the first fault analysis cycle, the second fault analysis cycle and the third fault analysis cycle according to the sorting result, and obtaining the first fault cycle priority sorting;
[0044] Step S242: Match the fault analysis cycle corresponding to the number of type faults ranked in the first priority with the first fault analysis cycle, match the fault analysis cycle corresponding to the number of type faults ranked in the second priority with the second fault analysis cycle, and match the fault analysis cycle corresponding to the number of type faults ranked in the third priority with the third fault analysis cycle.
[0045] Furthermore, the step S3X further includes the following specific steps:
[0046] Step S3X1: In the signal fault analysis cycle, mark Gm signal fault monitoring points respectively and name them as G1 to Gm signal fault monitoring points respectively;
[0047] Step S3X2: respectively obtain the signal strength values corresponding to the signal fault monitoring points G1 to Gm of the target set-top box, obtain the signal strength values G1 to Gm, compare the signal strength values G1 to Gm, and name the signal strength value with the smallest value as the periodic signal strength valley value;
[0048] Step S3X3: respectively obtain the signal-to-noise ratio values corresponding to the signal fault monitoring points G1 to Gm of the target set-top box, obtain the signal-to-noise ratio values G1 to Gm, average the signal-to-noise ratio values G1 to Gm, and obtain the periodic signal-to-noise ratio average value;
[0049] Step S3X4: respectively obtain the bit error rates corresponding to the signal fault monitoring points G1 to Gm of the target set-top box to obtain the bit error rates G1 to Gm, and average the bit error rates G1 to Gm to obtain the period average bit error rate;
[0050] Step S3X5: Calculate the periodic signal strength valley value, the periodic signal-to-noise ratio average value, and the periodic average bit error rate to obtain a signal fault judgment coefficient;
[0051] The signal fault judgment coefficient is calculated, and the specific formula configuration is as follows:
[0052] ;
[0053] Among them, Xqx is the signal fault judgment coefficient, Xqg is the periodic signal strength valley value, Xzb is the periodic signal-to-noise ratio average value, Wml is the periodic average bit error rate, a1 and a2 are the set proportional coefficients and a1 and a2 are both greater than 0;
[0054] Step S3X6: Obtain a signal fault judgment coefficient threshold, compare the signal fault judgment coefficient with the signal fault judgment coefficient threshold, and obtain signal fault judgment data;
[0055] Step S3X61: respectively obtain the periodic signal strength valley threshold, the periodic signal-to-noise ratio threshold, and the periodic average bit error rate threshold;
[0056] Step S3X62: Calculate the signal fault judgment coefficient threshold by using the periodic signal strength valley threshold, the periodic signal-to-noise ratio threshold, and the periodic average bit error rate threshold;
[0057] Step S3X63: When the signal fault judgment coefficient is less than or equal to the signal fault judgment coefficient threshold, it is determined that the target set-top box has a signal fault;
[0058] Step S3X64: When the signal fault judgment coefficient is greater than the signal fault judgment coefficient threshold, it is determined that there is no signal fault in the target set-top box.
[0059] Furthermore, the step S3Y further includes the following specific steps:
[0060] Step S3Y1: In the hardware fault analysis cycle, the hardware devices involved in the operation of the target set-top box are marked as hardware devices m1 to mm, a hardware device test script is written to perform functional tests on the hardware devices m1 to mm, and a test report is generated;
[0061] Step S3Y2: Perform fault judgment on the hardware device according to the test report to obtain hardware fault judgment data;
[0062] Step S3Y3: If any hardware device in the test report is faulty, it is determined that the target set-top box has a hardware fault;
[0063] Step S3Y4: perform fault matching on the hardware devices m1 to mm according to the test report, obtain the name of the faulty hardware device, and obtain the hardware device fault code;
[0064] Step S3Y5: If there is no hardware failure in the test report, it is determined that the target set-top box does not have a hardware failure;
[0065] Step S3Y6: Define the hardware fault judgment data and the hardware device fault code as hardware fault data.
[0066] Furthermore, the step S3Z further includes the following specific steps:
[0067] Obtaining basic fault judgment data, and obtaining display test sample data respectively according to the basic fault judgment data;
[0068] Acquire test sample images according to the display test sample data, and in the display fault analysis cycle, the target set-top box plays the test sample images respectively, and marks the test sample images Z1 to Ze in the test sample images;
[0069] Perform qualification tests on the Z1th to Zeth test sample images respectively, and count the number of test sample images that have passed the test to obtain the number of first test result images, calculate the ratio of the number of first test result images to Ze, and obtain the image test qualification rate;
[0070] Obtaining the image test benchmark pass rate, comparing the image test pass rate with the image test benchmark pass rate, and obtaining display fault judgment data;
[0071] The details are as follows:
[0072] When the image test pass rate is greater than or equal to the image test benchmark pass rate, it is determined that the target set-top box does not have a display fault;
[0073] When the image test pass rate is less than the image test reference pass rate, it is determined that the target set-top box has a display fault.
[0074] Furthermore, the step S4 further includes the following specific steps:
[0075] Step S41: Acquire signal fault judgment data, hardware fault data and display fault judgment data;
[0076] Step S42: performing fault coding on the target set-top box according to the signal fault judgment data to obtain a signal fault code;
[0077] The details are as follows:
[0078] Step S421: When the target set-top box has a signal failure, the signal failure code is written as XF;
[0079] Step S422: When there is no signal failure in the target set-top box, the signal failure code is written as XT;
[0080] Step S43: performing fault coding on the target set-top box according to the hardware fault data to obtain a hardware fault code;
[0081] The details are as follows:
[0082] Step S431: Acquire hardware fault judgment data and hardware device fault code according to hardware fault data;
[0083] Step S432: When the target set-top box has a hardware fault, the hardware fault code is written as YF (hardware fault code);
[0084] Step S433: When the target set-top box does not have a hardware fault, the hardware fault code is written as YT;
[0085] Step S44: fault-encoding the target set-top box according to the display fault judgment data to obtain a display fault code;
[0086] The details are as follows:
[0087] Step S441: When the target set-top box has a display fault, the display fault code is written as SF;
[0088] Step S442: When the target set-top box does not have a display fault, the display fault code is written as ST;
[0089] Step S45: Integrate the signal fault code, hardware fault code and display fault code in the format of "signal fault code-hardware fault code-display fault code" to obtain a comprehensive fault code, and feed the comprehensive fault code back to the display.
[0090] A set-top box fault analysis system, comprising:
[0091] Data acquisition module: used to acquire the first fault cycle division data, the second fault cycle division data and the display test sample data to obtain the basic data for fault judgment;
[0092] Data processing module: used to process the basic data of fault judgment and obtain the fault cycle priority ranking data;
[0093] Signal fault module: used to analyze the signal fault of the target set-top box according to the fault cycle priority sorting data to obtain signal fault judgment data;
[0094] Hardware fault module: used to analyze the hardware fault of the target set-top box according to the fault cycle priority sorting data to obtain hardware fault data;
[0095] Display fault module: used to analyze the display fault of the target set-top box according to the fault cycle priority sorting data to obtain display fault judgment data;
[0096] Fault feedback module: used to perform comprehensive fault coding based on signal fault judgment data, hardware fault data and display fault judgment data, and to feed back the comprehensive fault coding.
[0097] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are:
[0098] 1. The present invention can effectively improve the accuracy and pertinence of the fault analysis results by dividing the signal fault analysis cycle, the hardware fault analysis cycle and the display fault analysis cycle to carry out signal fault analysis, hardware fault analysis and display fault analysis in a targeted manner;
[0099] 2. The present invention can further improve the fault analysis efficiency by acquiring fault cycle priority sorting data to sort the signal fault analysis cycle, the hardware fault analysis cycle and the display fault analysis cycle. BRIEF DESCRIPTION OF THE DRAWINGS
[0100] In order to facilitate understanding by those skilled in the art, the present invention is further described below with reference to the accompanying drawings.
[0101] Figure 1 It is a diagram of the implementation steps of the present invention;
[0102] Figure 2 is the overall system block diagram of the present invention;
[0103] Figure 3 The figure is a schematic diagram of the appearance of the set-top box in the present invention. DETAILED DESCRIPTION
[0104] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are only 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.
[0105] Embodiment 1
[0106] See also Figure 2 The present invention provides a technical solution: a set-top box fault analysis system, comprising a data acquisition module, a data processing module, a signal fault module, a hardware fault module, a display fault module, a fault feedback module and a server, wherein the data acquisition module, the data processing module, the signal fault module, the hardware fault module, the display fault module and the fault feedback module are respectively connected to the server, and the server controls the data acquisition module, the data processing module, the signal fault module, the hardware fault module, the display fault module and the fault feedback module respectively;
[0107] The data acquisition module respectively acquires basic data for fault judgment;
[0108] See also Figure 3 , select mk set-top boxes of the same model as the target set-top box as sample set-top boxes, obtain the fault records corresponding to each sample set-top box, and obtain mk sample set-top box fault records;
[0109] The faults occurring in the mk sample set-top box fault records are divided into signal type faults, hardware type faults and display type faults, wherein the fault analysis period corresponding to the signal type fault is the signal fault analysis period, the fault analysis period corresponding to the hardware type fault is the hardware fault analysis period, and the fault analysis period corresponding to the display type fault is the display fault analysis period;
[0110] The number of faults corresponding to the signal type faults is counted through the fault record data of the sample set-top box to obtain the number of signal type faults;
[0111] The number of hardware type faults corresponding to the hardware type faults is counted through the sample set-top box fault record data to obtain the number of hardware type faults;
[0112] The number of occurrences of the faults corresponding to the display type faults is counted through the fault record data of the sample set-top box to obtain the number of display type faults;
[0113] The number of signal type faults, the number of hardware type faults and the number of display type faults are defined as first fault cycle division data;
[0114] It should be noted here that:
[0115] In this application, a signal type failure specifically refers to a situation where a problem occurs in the signal received or sent by the device, causing the device to be unable to communicate or work normally. The corresponding typical failures include but are not limited to the inability to receive signals, signal interruption, and signal loss;
[0116] Hardware failure refers to the failure of the internal or external physical components of the device, which may cause the device to fail to work properly. Typical failures include but are not limited to power failure, memory failure, and processor failure.
[0117] Display failure refers to a problem with the device's display or screen, which results in the inability to display information normally or poor display effects. Typical failures include but are not limited to screen flickering and screen noise.
[0118] Obtain target set-top box fault records, and obtain the number of occurrences of signal type faults, hardware type faults, and display type faults according to the target set-top box fault records, to obtain a target signal type fault count, a target hardware type fault count, and a target display type fault count;
[0119] defining the target signal type fault number, the target hardware type fault number and the target display type fault number as second fault cycle division data;
[0120] Get a test sample image;
[0121] Obtain the highest playback resolution and the lowest playback resolution that can be achieved when the test sample image is played through a set-top box, and obtain a playback resolution range;
[0122] Obtaining the highest and lowest playback contrast ratios that can be achieved when the test sample image is played through a set-top box, and obtaining a playback contrast range;
[0123] Obtain the highest and lowest playback brightness that can be achieved when the test sample image is played through a set-top box, and obtain the playback brightness range;
[0124] Obtain the highest color saturation and the lowest color saturation that can be achieved when the test sample image is played through a set-top box, and obtain the playback color saturation range;
[0125] The test sample image, the playback resolution interval, the playback contrast interval, the playback brightness interval, and the playback color saturation interval corresponding to the test sample image are defined as display test sample data;
[0126] The first fault cycle division data, the second fault cycle division data and the display test sample data are defined as fault judgment basic data;
[0127] The data acquisition module acquires the basic data for fault judgment and transmits it to the data processing module and the fault display module;
[0128] The data processing module processes the basic data for fault judgment to obtain the fault cycle priority ranking data;
[0129] Acquire basic fault judgment data, and respectively acquire first fault cycle division data and second fault cycle division data according to the basic fault judgment data;
[0130] After each start-up of the set-top box, a set-top box fault troubleshooting cycle is marked, and the set-top box fault troubleshooting cycle is divided into a first fault analysis cycle, a second fault analysis cycle, and a third fault analysis cycle in chronological order;
[0131] It should be noted here that:
[0132] In the present application, the specific time length values corresponding to the first fault analysis cycle, the second fault analysis cycle, and the third fault analysis cycle are based on the actual fault analysis time, and are not specifically limited here;
[0133] Obtaining target set-top box fault records, marking target set-top boxes that have not experienced faults as first fault type target set-top boxes according to the fault records, and marking target set-top boxes that have experienced faults as second fault type target set-top boxes;
[0134] Performing fault cycle priority sorting on the first fault type target set-top boxes to obtain a first fault cycle priority sorting;
[0135] The details are as follows:
[0136] Obtain first fault cycle division data, obtain the number of signal type faults, the number of hardware type faults, and the number of display type faults according to the first fault cycle division data, arrange the number of signal type faults, the number of hardware type faults, and the number of display type faults in descending order according to the numerical values, match the number of signal type faults, the number of hardware type faults, and the number of display type faults with the first fault analysis cycle, the second fault analysis cycle, and the third fault analysis cycle according to the sorting result, and obtain the first fault cycle priority sorting;
[0137] Match the fault analysis cycle corresponding to the number of type faults ranked first with the first fault analysis cycle, match the fault analysis cycle corresponding to the number of type faults ranked second with the second fault analysis cycle, and match the fault analysis cycle corresponding to the number of type faults ranked third with the third fault analysis cycle;
[0138] For example: if the number of signal type faults ranks first, the first fault analysis cycle is matched to the signal fault analysis cycle; if the number of hardware type faults ranks second, the second fault analysis cycle is matched to the hardware fault analysis cycle; if the number of display type faults ranks third, the third fault analysis cycle is matched to the display fault analysis cycle;
[0139] It should be noted here that:
[0140] If the number of signal type faults, the number of hardware type faults, and the number of display type faults in the mk sample set-top box fault records are arranged in descending order according to the numerical value, and there is a tie, then obtain mk+1 sample set-top box fault records, arrange them in descending order according to the numerical value, and repeat this process until there is no tie;
[0141] Performing fault cycle priority sorting on the second fault type target set-top boxes to obtain a second fault cycle priority sorting;
[0142] The details are as follows:
[0143] Acquire second fault cycle division data, and respectively acquire a target signal type fault number, a target hardware type fault number, and a target display type fault number according to the second fault cycle division data;
[0144] Repeat the above process of obtaining the priority ranking of the first fault cycle, arrange the target signal type fault number, the target hardware type fault number and the target display type fault number in descending order according to the numerical value, and match the sorting result with the first fault analysis cycle, the second fault analysis cycle and the third fault analysis cycle to obtain the second fault cycle priority ranking;
[0145] It should be noted here that:
[0146] If the target signal type fault number, the target hardware type fault number, and the target display type fault number are arranged in descending order according to the numerical value, if there is a tie in the numerical value, the sorting order of the first fault cycle priority sorting is used;
[0147] defining a first failure cycle priority ranking and a second failure cycle priority ranking as failure cycle priority ranking data;
[0148] The data processing module acquires the fault cycle priority ranking data and transmits it to the signal fault module, the hardware fault module and the display fault module. The signal fault module, the hardware fault module and the display fault module respectively perform display fault analysis, signal fault analysis and hardware fault analysis in the corresponding fault analysis cycle according to the fault cycle priority ranking data;
[0149] The signal fault module performs signal fault analysis on the target set-top box in the signal fault analysis period according to the fault cycle priority ranking data to obtain signal fault judgment data;
[0150] In the signal fault analysis cycle, Gm signal fault monitoring points are marked respectively and named as G1 to Gm signal fault monitoring points respectively;
[0151] It should be noted here that:
[0152] Gm is the number value corresponding to the signal fault monitoring point, and Gm is an integer greater than 0;
[0153] The signal strength values of the target set-top box corresponding to the signal fault monitoring points G1 to Gm are obtained by the first monitoring program, and the signal strength values of G1 to Gm are compared, and the signal strength value with the smallest value is named as the periodic signal strength valley value;
[0154] The second monitoring program is used to obtain the signal-to-noise ratio values of the target set-top box corresponding to the signal fault monitoring points G1 to Gm, respectively, to obtain the signal-to-noise ratio values G1 to Gm, and the signal-to-noise ratio values G1 to Gm are averaged to obtain the periodic signal-to-noise ratio average value;
[0155] The bit error rates of the target set-top box corresponding to the signal fault monitoring points G1 to Gm are respectively obtained by a third monitoring program to obtain the bit error rates G1 to Gm, and the bit error rates G1 to Gm are averaged to obtain the period average bit error rate;
[0156] It should be noted here that:
[0157] In the present application, the first monitoring program is a signal strength monitor, the second monitoring program is a signal-to-noise ratio monitor, and the third monitoring program is a bit error monitor;
[0158] The signal fault judgment coefficient is obtained by calculating the periodic signal strength valley value, the periodic signal-to-noise ratio average value and the periodic average bit error rate;
[0159] The signal fault judgment coefficient is calculated, and the specific formula configuration is as follows:
[0160] ;
[0161] Among them, Xqx is the signal fault judgment coefficient, Xqg is the periodic signal strength valley value, Xzb is the periodic signal-to-noise ratio average value, Wml is the periodic average bit error rate, a1 and a2 are the set proportional coefficients and a1 and a2 are both greater than 0;
[0162] Obtaining a signal fault judgment coefficient threshold, comparing the signal fault judgment coefficient with the signal fault judgment coefficient threshold, and obtaining signal fault judgment data;
[0163] respectively obtaining a periodic signal strength valley threshold, a periodic signal-to-noise ratio threshold, and a periodic average bit error rate threshold;
[0164] The signal fault judgment coefficient threshold is obtained by calculating the periodic signal strength valley threshold, the periodic signal-to-noise ratio threshold and the periodic average bit error rate threshold;
[0165] The signal fault judgment coefficient threshold is calculated, and the specific formula configuration is as follows:
[0166] ;
[0167] Among them, Xqxy is the signal fault judgment coefficient threshold, Xqgy is the periodic signal strength valley threshold, Xzby is the periodic signal-to-noise ratio threshold, Wmly is the periodic average bit error rate threshold, a1 and a2 are the set proportional coefficients and a1 and a2 are both greater than 0;
[0168] When the signal failure judgment coefficient is less than or equal to the signal failure judgment coefficient threshold, it is determined that the target set-top box has a signal failure;
[0169] When the signal failure judgment coefficient is greater than the signal failure judgment coefficient threshold, it is determined that there is no signal failure in the target set-top box;
[0170] The signal fault module acquires the signal fault judgment data and transmits it to the fault feedback module;
[0171] The hardware fault module performs hardware fault analysis on the target set-top box in the hardware fault analysis period according to the fault cycle priority sorting data to obtain hardware fault data;
[0172] In the hardware fault analysis cycle, the hardware devices involved in the operation of the target set-top box are marked as hardware devices m1 to mm, and a hardware device test script is written to perform functional tests on hardware devices m1 to mm, and a test report is generated;
[0173] It should be noted here that:
[0174] mm is the quantity value corresponding to the hardware device, and mm is an integer greater than 0;
[0175] The hardware device test script is as follows:
[0176] # Set-top box hardware test script example
[0177] # Import required libraries
[0178] import hardware_test_tool
[0179] # Initialize the test environment
[0180] hardware_test_tool.init()
[0181] # Check hardware connection status
[0182] if hardware_test_tool.check_connection():
[0183] print("Hardware connection is normal")
[0184] else:
[0185] print("Hardware connection abnormality, please check")
[0186] # Perform CPU and memory performance tests
[0187] cpu_usage = hardware_test_tool.test_cpu_performance()
[0188] memory_usage = hardware_test_tool.test_memory_performance()
[0189] # Perform functional tests (remote control, channel switching, program playback)
[0190] if hardware_test_tool.test_functionality():
[0191] print("Functional test passed")
[0192] else:
[0193] print("Functional test failed")
[0194] # Perform video and audio tests
[0195] video_quality = hardware_test_tool.test_video_quality()
[0196] audio_quality = hardware_test_tool.test_audio_quality()
[0197] # Execute external interface test
[0198] if hardware_test_tool.test_external_interfaces():
[0199] print("External interface test passed")
[0200] else:
[0201] print("External interface test failed")
[0202] # Generate test report
[0203] hardware_test_tool.generate_report(cpu_usage,memory_usage, video_quality, audio_quality)
[0204] According to the test report, the hardware equipment is judged for faults and hardware fault judgment data is obtained;
[0205] If any hardware device in the test report is faulty, it is determined that the target set-top box has a hardware fault;
[0206] Then, according to the test report, the hardware devices m1 to mm are matched for faults, and the names of the faulty hardware devices are obtained to obtain the hardware device fault codes;
[0207] If there is no hardware failure in any of the hardware devices in the test report, it is determined that there is no hardware failure in the target set-top box;
[0208] The hardware fault judgment data and the hardware device fault code are defined as hardware fault data;
[0209] The hardware fault module acquires the hardware fault data and transmits it to the fault feedback module;
[0210] The display fault module performs display fault analysis on the target set-top box in the display fault analysis period according to the fault cycle priority sorting data to obtain display fault judgment data;
[0211] Obtaining basic fault judgment data, and obtaining display test sample data respectively according to the basic fault judgment data;
[0212] Acquire test sample images according to the display test sample data, and in the display fault analysis cycle, the target set-top box plays the test sample images respectively, and marks the test sample images Z1 to Ze in the test sample images;
[0213] It should be noted here that:
[0214] Ze is the quantity value corresponding to the test sample image, and Ze is an integer greater than 0;
[0215] The Z1 test sample image is tested for eligibility as follows:
[0216] When the target set-top box plays the Z1th test sample image, the resolution, contrast, brightness and color saturation of the image in the display connected to the target set-top box are respectively obtained, and are marked as the z1th resolution, the z1th contrast, the z1th brightness and the z1th color saturation respectively;
[0217] Obtaining a playback resolution range, a playback contrast range, a playback brightness range, and a playback color saturation range according to display test sample data;
[0218] When the z1th resolution, z1th contrast, z1th brightness and z1th color saturation are respectively within the playback resolution range, playback contrast range, playback brightness range and playback color saturation range, the z1th test sample image passes the test;
[0219] When any one of the z1th resolution, z1th contrast, z1th brightness and z1th color saturation is not within the playback resolution range, playback contrast range, playback brightness range and playback color saturation range, the z1th test sample image test fails;
[0220] It should be noted here that:
[0221] The Z1th test sample image passed the test including the interval boundary;
[0222] Repeat the process of performing qualification test on the Z1th test sample image, perform qualification test on the Z2th to Zeth test sample images respectively, obtain the number of qualified test sample images, obtain the number of first test result images, calculate the ratio of the number of first test result images to Ze, and obtain the image test qualification rate;
[0223] Obtaining the image test benchmark pass rate, comparing the image test pass rate with the image test benchmark pass rate, and obtaining display fault judgment data;
[0224] The details are as follows:
[0225] When the image test pass rate is greater than or equal to the image test benchmark pass rate, it is determined that the target set-top box does not have a display fault;
[0226] When the image test pass rate is less than the image test benchmark pass rate, it is determined that the target set-top box has a display fault;
[0227] The display fault module acquires the display fault judgment data and transmits it to the fault feedback module;
[0228] The fault feedback module performs comprehensive fault coding according to the signal fault judgment data, the hardware fault data and the display fault judgment data, and feeds back the comprehensive fault coding;
[0229] Obtain signal fault judgment data, hardware fault data and display fault judgment data;
[0230] Perform fault coding on the target set-top box according to the signal fault judgment data to obtain a signal fault code;
[0231] The details are as follows:
[0232] When the target set-top box has a signal failure, the signal failure code is written as XF;
[0233] When there is no signal failure in the target set-top box, the signal failure code is written as XT;
[0234] Perform fault coding on the target set-top box according to the hardware fault data to obtain a hardware fault code;
[0235] The details are as follows:
[0236] Acquire hardware fault judgment data and hardware device fault code according to hardware fault data;
[0237] When the target set-top box has a hardware fault, the hardware fault code is written as YF (hardware fault code);
[0238] When the target set-top box does not have a hardware fault, the hardware fault code is written as YT;
[0239] It should be noted here that:
[0240] If there is a fault in the mi-th hardware device and the mj-th hardware device in the target set-top box, the hardware fault code is: YF (mimj);
[0241] Perform fault coding on the target set-top box according to the display fault judgment data to obtain a display fault code;
[0242] The details are as follows:
[0243] When the target set-top box has a display fault, the display fault code is written as SF;
[0244] When the target set-top box does not have a display fault, the display fault code is written as ST;
[0245] The signal fault code, hardware fault code and display fault code are integrated in the format of "signal fault code-hardware fault code-display fault code" to obtain a comprehensive fault code, and the comprehensive fault code is fed back to the display.
[0246] In this application, if corresponding calculation formulas appear, the above calculation formulas are all dimensionless and take their numerical calculations. The weight coefficients, proportional coefficients and other coefficients in the formulas are set to a result value obtained by quantifying each parameter. The size of the weight coefficient and the proportional coefficient can be determined as long as it does not affect the proportional relationship between the parameter and the result value.
[0247] Embodiment 2
[0248] See also Figure 1 Based on another concept of the same invention, a set-top box fault analysis method is now proposed, comprising the following steps:
[0249] Step S1: respectively obtaining basic fault judgment data;
[0250] Step S11: obtaining first fault cycle division data;
[0251] The details are as follows:
[0252] Step S111: Select mk set-top boxes of the same model as the target set-top box as sample set-top boxes, obtain the fault record corresponding to each sample set-top box, and obtain mk sample set-top box fault records;
[0253] Step S112: Classify the faults occurring in the mk sample set-top box fault records into signal type faults, hardware type faults and display type faults, wherein the fault analysis period corresponding to the signal type faults is the signal fault analysis period, the fault analysis period corresponding to the hardware type faults is the hardware fault analysis period, and the fault analysis period corresponding to the display type faults is the display fault analysis period;
[0254] The details are as follows:
[0255] Step S1121: Counting the number of occurrences of signal type faults corresponding to the fault record data of the sample set-top box to obtain the number of signal type faults;
[0256] Step S1122: Counting the number of occurrences of hardware type faults corresponding to the fault record data of the sample set-top box to obtain the number of hardware type faults;
[0257] Step S1123: Counting the number of occurrences of the display type faults corresponding to the sample set-top box fault record data to obtain the number of display type faults;
[0258] Step S113: defining the number of signal type faults, the number of hardware type faults and the number of display type faults as first fault cycle division data;
[0259] Step S12: obtaining second fault cycle division data;
[0260] The details are as follows:
[0261] Step S121: Obtain target set-top box fault records, and obtain the occurrence times of signal type faults, hardware type faults, and display type faults according to the target set-top box fault records, to obtain target signal type fault counts, target hardware type fault counts, and target display type fault counts;
[0262] Step S122: defining the target signal type fault number, the target hardware type fault number and the target display type fault number as second fault cycle division data;
[0263] Step S13: Acquire a test sample image;
[0264] The details are as follows:
[0265] Step S131: obtaining the highest playback resolution and the lowest playback resolution that can be achieved when the test sample image is played through a set-top box, and obtaining a playback resolution range;
[0266] Step S132: obtaining the highest playback contrast and the lowest playback contrast that can be achieved when the test sample image is played through the set-top box, and obtaining the playback contrast range;
[0267] Step S133: obtaining the highest playback brightness and the lowest playback brightness that can be achieved when the test sample image is played through the set-top box, and obtaining the playback brightness range;
[0268] Step S134: obtaining the highest color saturation and the lowest color saturation that can be achieved when the test sample image is played through the set-top box, and obtaining the playback color saturation range;
[0269] Step S135: defining the test sample image, the playback resolution interval, the playback contrast interval, the playback brightness interval, and the playback color saturation interval corresponding to the test sample image as display test sample data;
[0270] Step S14: defining the first fault cycle division data, the second fault cycle division data and the display test sample data as fault judgment basic data;
[0271] Step S2: Processing the basic data for fault judgment to obtain fault cycle priority ranking data;
[0272] Step S21: acquiring fault judgment basic data, and acquiring first fault cycle division data and second fault cycle division data respectively according to the fault judgment basic data;
[0273] Step S22: marking a set-top box fault troubleshooting cycle each time the set-top box is turned on, and dividing the set-top box fault troubleshooting cycle into a first fault analysis cycle, a second fault analysis cycle, and a third fault analysis cycle in chronological order;
[0274] Step S23: Obtain target set-top box fault records, and mark target set-top boxes that have not experienced faults as first fault type target set-top boxes according to the fault records, and mark target set-top boxes that have experienced faults as second fault type target set-top boxes;
[0275] Step S24: performing fault cycle priority sorting on the target set-top boxes of the first fault type to obtain a first fault cycle priority sorting;
[0276] The details are as follows:
[0277] Step S241: obtaining first fault cycle division data, obtaining the number of signal type faults, the number of hardware type faults and the number of display type faults according to the first fault cycle division data, arranging the number of signal type faults, the number of hardware type faults and the number of display type faults in descending order according to the numerical values, matching the number of signal type faults, the number of hardware type faults and the number of display type faults with the first fault analysis cycle, the second fault analysis cycle and the third fault analysis cycle according to the sorting result, and obtaining the first fault cycle priority sorting;
[0278] Step S242: matching the fault analysis cycle corresponding to the number of type faults ranked in the first order with the first fault analysis cycle, matching the fault analysis cycle corresponding to the number of type faults ranked in the second order with the second fault analysis cycle, and matching the fault analysis cycle corresponding to the number of type faults ranked in the third order with the third fault analysis cycle;
[0279] Step S25: performing fault cycle priority sorting on the target set-top boxes of the second fault type to obtain a second fault cycle priority sorting;
[0280] The details are as follows:
[0281] Step S251: obtaining second fault cycle division data, and obtaining target signal type fault numbers, target hardware type fault numbers, and target display type fault numbers according to the second fault cycle division data;
[0282] Step S252: Repeat the above process of obtaining the priority ranking of the first fault cycle, arrange the target signal type fault number, the target hardware type fault number and the target display type fault number in descending order according to the numerical value, and match the sorting result with the first fault analysis cycle, the second fault analysis cycle and the third fault analysis cycle to obtain the priority ranking of the second fault cycle;
[0283] Step S26: defining the first fault cycle priority ranking and the second fault cycle priority ranking as fault cycle priority ranking data;
[0284] Step S3X: performing signal fault analysis on the target set-top box in the signal fault analysis period according to the fault cycle priority ranking data to obtain signal fault judgment data;
[0285] Step S3X1: In the signal fault analysis cycle, mark Gm signal fault monitoring points respectively and name them as G1 to Gm signal fault monitoring points respectively;
[0286] Step S3X2: respectively obtain the signal strength values corresponding to the signal fault monitoring points G1 to Gm of the target set-top box, obtain the signal strength values G1 to Gm, compare the signal strength values G1 to Gm, and name the signal strength value with the smallest value as the periodic signal strength valley value;
[0287] Step S3X3: respectively obtain the signal-to-noise ratio values corresponding to the signal fault monitoring points G1 to Gm of the target set-top box, obtain the signal-to-noise ratio values G1 to Gm, average the signal-to-noise ratio values G1 to Gm, and obtain the periodic signal-to-noise ratio average value;
[0288] Step S3X4: respectively obtain the bit error rates corresponding to the signal fault monitoring points G1 to Gm of the target set-top box to obtain the bit error rates G1 to Gm, and average the bit error rates G1 to Gm to obtain the period average bit error rate;
[0289] Step S3X5: Calculate the periodic signal strength valley value, the periodic signal-to-noise ratio average value, and the periodic average bit error rate to obtain a signal fault judgment coefficient;
[0290] The signal fault judgment coefficient is calculated, and the specific formula configuration is as follows:
[0291] ;
[0292] Among them, Xqx is the signal fault judgment coefficient, Xqg is the periodic signal strength valley value, Xzb is the periodic signal-to-noise ratio average value, Wml is the periodic average bit error rate, a1 and a2 are the set proportional coefficients and a1 and a2 are both greater than 0;
[0293] Step S3X6: Obtain a signal fault judgment coefficient threshold, compare the signal fault judgment coefficient with the signal fault judgment coefficient threshold, and obtain signal fault judgment data;
[0294] Step S3X61: respectively obtain the periodic signal strength valley threshold, the periodic signal-to-noise ratio threshold, and the periodic average bit error rate threshold;
[0295] Step S3X62: Calculate the signal fault judgment coefficient threshold by using the periodic signal strength valley threshold, the periodic signal-to-noise ratio threshold, and the periodic average bit error rate threshold;
[0296] Step S3X63: When the signal fault judgment coefficient is less than or equal to the signal fault judgment coefficient threshold, it is determined that the target set-top box has a signal fault;
[0297] Step S3X64: When the signal fault judgment coefficient is greater than the signal fault judgment coefficient threshold, it is determined that there is no signal fault in the target set-top box;
[0298] Step S3Y: performing hardware fault analysis on the target set-top box in the hardware fault analysis period according to the fault cycle priority ranking data to obtain hardware fault data;
[0299] Step S3Y1: In the hardware fault analysis cycle, the hardware devices involved in the operation of the target set-top box are marked as hardware devices m1 to mm, a hardware device test script is written to perform functional tests on the hardware devices m1 to mm, and a test report is generated;
[0300] Step S3Y2: Perform fault judgment on the hardware device according to the test report to obtain hardware fault judgment data;
[0301] Step S3Y3: If any hardware device in the test report is faulty, it is determined that the target set-top box has a hardware fault;
[0302] Step S3Y4: perform fault matching on the hardware devices m1 to mm according to the test report, obtain the name of the faulty hardware device, and obtain the hardware device fault code;
[0303] Step S3Y5: If there is no hardware failure in the test report, it is determined that the target set-top box does not have a hardware failure;
[0304] Step S3Y6: defining the hardware fault judgment data and the hardware device fault code as hardware fault data;
[0305] Step S3Z: performing display fault analysis on the target set-top box in the display fault analysis period according to the fault cycle priority ranking data to obtain display fault judgment data;
[0306] Step S3Z1: Acquire basic fault judgment data, and acquire display test sample data respectively according to the basic fault judgment data;
[0307] Step S3Z2: acquiring test sample images according to the display test sample data, and within the display fault analysis cycle, the target set-top box plays the test sample images respectively, and marks the test sample images Z1 to Ze in the test sample images;
[0308] Step S3Z3: when the target set-top box plays the Z1th test sample image, respectively obtain the resolution, contrast, brightness and color saturation of the image in the display connected to the target set-top box, and mark them as the z1th resolution, the z1th contrast, the z1th brightness and the z1th color saturation respectively;
[0309] Step S3Z4: obtaining a playback resolution interval, a playback contrast interval, a playback brightness interval, and a playback color saturation interval according to the display test sample data;
[0310] Step S3Z5: When the z1th resolution, the z1th contrast, the z1th brightness and the z1th color saturation are respectively within the playback resolution range, the playback contrast range, the playback brightness range and the playback color saturation range, the z1th test sample image passes the test;
[0311] Step S3Z6: When any one of the z1-th resolution, z1-th contrast, z1-th brightness and z1-th color saturation is not within the playback resolution range, playback contrast range, playback brightness range and playback color saturation range, the z1-th test sample image test fails;
[0312] Step S3Z7: Repeat the process of performing qualification test on the Z1th test sample image, perform qualification test on the Z2th to Zeth test sample images respectively, obtain the number of qualified test sample images, obtain the number of first test result images, calculate the ratio of the number of first test result images to Ze, and obtain the image test qualification rate;
[0313] Step S3Z8: Obtain the image test benchmark pass rate, compare the image test pass rate with the image test benchmark pass rate, and obtain display fault judgment data;
[0314] The details are as follows:
[0315] Step S3Z81: when the image test pass rate is greater than or equal to the image test benchmark pass rate, it is determined that the target set-top box does not have a display fault;
[0316] Step S3Z82: When the image test pass rate is less than the image test reference pass rate, it is determined that the target set-top box has a display fault;
[0317] It should be noted here that:
[0318] In this application, the order of step S3X, step S3Y, and step S3Z needs to be determined according to the numerical values of the signal type fault number, hardware type fault number, and display type fault number corresponding to the target set-top box;
[0319] For example: when the signal type fault number value is greater than the hardware type fault number value, and the hardware type fault number value is greater than the display type fault number value, then step S3X has a higher priority than step S3Y, and step S3X has a higher priority than step S3Z;
[0320] Step S4: performing comprehensive fault coding according to the signal fault judgment data, the hardware fault data and the display fault judgment data, and feeding back the comprehensive fault coding;
[0321] Step S41: Acquire signal fault judgment data, hardware fault data and display fault judgment data;
[0322] Step S42: performing fault coding on the target set-top box according to the signal fault judgment data to obtain a signal fault code;
[0323] The details are as follows:
[0324] Step S421: When the target set-top box has a signal failure, the signal failure code is written as XF;
[0325] Step S422: When there is no signal failure in the target set-top box, the signal failure code is written as XT;
[0326] Step S43: performing fault coding on the target set-top box according to the hardware fault data to obtain a hardware fault code;
[0327] The details are as follows:
[0328] Step S431: Acquire hardware fault judgment data and hardware device fault code according to hardware fault data;
[0329] Step S432: When the target set-top box has a hardware fault, the hardware fault code is written as YF (hardware fault code);
[0330] Step S433: When the target set-top box does not have a hardware fault, the hardware fault code is written as YT;
[0331] Step S44: fault-encoding the target set-top box according to the display fault judgment data to obtain a display fault code;
[0332] The details are as follows:
[0333] Step S441: When the target set-top box has a display fault, the display fault code is written as SF;
[0334] Step S442: When the target set-top box does not have a display fault, the display fault code is written as ST;
[0335] Step S45: Integrate the signal fault code, hardware fault code and display fault code in the format of "signal fault code-hardware fault code-display fault code" to obtain a comprehensive fault code, and feed the comprehensive fault code back to the display.
[0336] The preferred embodiments of the present invention disclosed above are only used to help explain the present invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to only specific implementation methods. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can understand and use the present invention well. The present invention is limited only by the claims and their full scope and equivalents.
Claims
1. A set-top box fault analysis method, It is characterized in that include: Step S1: acquiring set-top box fault records corresponding to a plurality of sample set-top boxes to perform fault quantity statistics to obtain first fault cycle division data, acquiring set-top box fault records corresponding to a target set-top box to perform fault statistics to obtain second fault cycle division data, acquiring display test sample data, and defining the first fault cycle division data, the second fault cycle division data and the display test sample data as basic data for fault judgment; Step S2: marking the target set-top box as a first fault type target set-top box or a second fault type target set-top box, using the first fault cycle division data to perform fault cycle priority sorting on the first fault type target set-top box, and using the second fault cycle division data to perform fault cycle priority sorting on the second fault type target set-top box, to obtain fault cycle priority sorting data; The step S2 further includes the following specific steps: Step S21: acquiring fault judgment basic data, and acquiring first fault cycle division data and second fault cycle division data respectively according to the fault judgment basic data; Step S22: marking a set-top box fault troubleshooting cycle each time the set-top box is turned on, and dividing the set-top box fault troubleshooting cycle into a first fault analysis cycle, a second fault analysis cycle, and a third fault analysis cycle in chronological order; Step S23: Obtain target set-top box fault records, and mark target set-top boxes that have not experienced faults as first fault type target set-top boxes according to the fault records, and mark target set-top boxes that have experienced faults as second fault type target set-top boxes; Step S24: performing fault cycle priority sorting on the target set-top boxes of the first fault type to obtain a first fault cycle priority sorting; Step S25: performing fault cycle priority sorting on the target set-top boxes of the second fault type to obtain a second fault cycle priority sorting; The details are as follows: Step S251: obtaining second fault cycle division data, and obtaining target signal type fault numbers, target hardware type fault numbers, and target display type fault numbers according to the second fault cycle division data; Step S252: Arrange the target signal type fault number, the target hardware type fault number, and the target display type fault number in descending order according to the numerical value, and match the sorting result with the first fault analysis cycle, the second fault analysis cycle, and the third fault analysis cycle to obtain the second fault cycle priority sorting; Step S26: defining the first fault cycle priority ranking and the second fault cycle priority ranking as fault cycle priority ranking data; The step S24 further includes the following specific steps: Step S241: obtaining first fault cycle division data, obtaining the number of signal type faults, the number of hardware type faults and the number of display type faults according to the first fault cycle division data, arranging the number of signal type faults, the number of hardware type faults and the number of display type faults in descending order according to the numerical values, matching the number of signal type faults, the number of hardware type faults and the number of display type faults with the first fault analysis cycle, the second fault analysis cycle and the third fault analysis cycle according to the sorting result, and obtaining the first fault cycle priority sorting; Step S242: matching the fault analysis cycle corresponding to the number of type faults ranked in the first order with the first fault analysis cycle, matching the fault analysis cycle corresponding to the number of type faults ranked in the second order with the second fault analysis cycle, and matching the fault analysis cycle corresponding to the number of type faults ranked in the third order with the third fault analysis cycle; Step S3X: performing signal fault analysis on the target set-top box according to the fault cycle priority ranking data to obtain signal fault judgment data; Step S3Y: performing hardware fault analysis on the target set-top box according to the fault cycle priority ranking data to obtain hardware fault data; Step S3Z: performing display fault analysis on the target set-top box according to the fault cycle priority ranking data to obtain display fault judgment data; Step S4: Perform comprehensive fault coding according to the signal fault judgment data, the hardware fault data and the display fault judgment data, and feed back the comprehensive fault coding.
2. A set-top box fault analysis method according to claim 1, It is characterized in that The step S1 further includes the following specific steps: Step S11: obtaining first fault cycle division data; Step S12: obtaining second fault cycle division data; The details are as follows: Step S121: Obtain target set-top box fault records, and obtain the occurrence times of signal type faults, hardware type faults, and display type faults according to the target set-top box fault records, to obtain target signal type fault counts, target hardware type fault counts, and target display type fault counts; Step S122: defining the target signal type fault number, the target hardware type fault number and the target display type fault number as second fault cycle division data; Step S13: Acquire a test sample image; The details are as follows: Step S131: obtaining the highest playback resolution and the lowest playback resolution that can be achieved when the test sample image is played through a set-top box, and obtaining a playback resolution range; Step S132: obtaining the highest playback contrast and the lowest playback contrast that can be achieved when the test sample image is played through the set-top box, and obtaining the playback contrast range; Step S133: obtaining the highest playback brightness and the lowest playback brightness that can be achieved when the test sample image is played through the set-top box, and obtaining the playback brightness range; Step S134: obtaining the highest color saturation and the lowest color saturation that can be achieved when the test sample image is played through the set-top box, and obtaining the playback color saturation range; Step S135: defining the test sample image, the playback resolution interval, the playback contrast interval, the playback brightness interval, and the playback color saturation interval corresponding to the test sample image as display test sample data; Step S14: defining the first fault cycle division data, the second fault cycle division data and the display test sample data as fault judgment basic data.
3. A set-top box fault analysis method according to claim 2, It is characterized in that The step S11 further includes the following specific steps: Step S111: Select mk set-top boxes of the same model as the target set-top box as sample set-top boxes, obtain the fault record corresponding to each sample set-top box, and obtain mk sample set-top box fault records; Step S112: Classify the faults appearing in the mk sample set-top box fault records into signal type faults, hardware type faults and display type faults, wherein the fault analysis period corresponding to the signal type faults is the signal fault analysis period, the fault analysis period corresponding to the hardware type faults is the hardware fault analysis period, and the fault analysis period corresponding to the display type faults is the display fault analysis period.
4. A set-top box fault analysis method according to claim 1, It is characterized in that The step S3X further includes the following specific steps: Step S3X1: In the signal fault analysis cycle, mark Gm signal fault monitoring points respectively and name them as G1 to Gm signal fault monitoring points respectively; Step S3X2: respectively obtain the signal strength values corresponding to the signal fault monitoring points G1 to Gm of the target set-top box, obtain the signal strength values G1 to Gm, compare the signal strength values G1 to Gm, and name the signal strength value with the smallest value as the periodic signal strength valley value; Step S3X3: respectively obtain the signal-to-noise ratio values corresponding to the signal fault monitoring points G1 to Gm of the target set-top box, obtain the signal-to-noise ratio values G1 to Gm, average the signal-to-noise ratio values G1 to Gm, and obtain the periodic signal-to-noise ratio average value; Step S3X4: respectively obtain the bit error rates corresponding to the signal fault monitoring points G1 to Gm of the target set-top box to obtain the bit error rates G1 to Gm, and average the bit error rates G1 to Gm to obtain the period average bit error rate; Step S3X5: Calculate the periodic signal strength valley value, the periodic signal-to-noise ratio average value, and the periodic average bit error rate to obtain a signal fault judgment coefficient; The signal fault judgment coefficient is calculated, and the specific formula configuration is as follows: ; Among them, Xqx is the signal fault judgment coefficient, Xqg is the periodic signal strength valley value, Xzb is the periodic signal-to-noise ratio average value, Wml is the periodic average bit error rate, a1 and a2 are the set proportional coefficients and a1 and a2 are both greater than 0; Step S3X6: Obtain a signal fault judgment coefficient threshold, compare the signal fault judgment coefficient with the signal fault judgment coefficient threshold, and obtain signal fault judgment data; Step S3X61: respectively obtain the periodic signal strength valley threshold, the periodic signal-to-noise ratio threshold, and the periodic average bit error rate threshold; Step S3X62: Calculate the signal fault judgment coefficient threshold by using the periodic signal strength valley threshold, the periodic signal-to-noise ratio threshold, and the periodic average bit error rate threshold; Step S3X63: When the signal fault judgment coefficient is less than or equal to the signal fault judgment coefficient threshold, it is determined that the target set-top box has a signal fault; Step S3X64: When the signal fault judgment coefficient is greater than the signal fault judgment coefficient threshold, it is determined that there is no signal fault in the target set-top box.
5. A set-top box fault analysis method according to claim 1, It is characterized in that The step S3Y further includes the following specific steps: Step S3Y1: In the hardware fault analysis cycle, the hardware devices involved in the operation of the target set-top box are marked as hardware devices m1 to mm, a hardware device test script is written to perform functional tests on the hardware devices m1 to mm, and a test report is generated; Step S3Y2: Perform fault judgment on the hardware device according to the test report to obtain hardware fault judgment data; Step S3Y3: If any hardware device in the test report is faulty, it is determined that the target set-top box has a hardware fault; Step S3Y4: perform fault matching on the hardware devices m1 to mm according to the test report, obtain the name of the faulty hardware device, and obtain the hardware device fault code; Step S3Y5: If there is no hardware failure in the test report, it is determined that the target set-top box does not have a hardware failure; Step S3Y6: Define the hardware fault judgment data and the hardware device fault code as hardware fault data.
6. A set-top box fault analysis method according to claim 1, It is characterized in that The step S3Z further includes the following specific steps: Obtaining basic fault judgment data, and obtaining display test sample data respectively according to the basic fault judgment data; Acquire test sample images according to the display test sample data, and in the display fault analysis cycle, the target set-top box plays the test sample images respectively, and marks the test sample images Z1 to Ze in the test sample images; Perform qualification tests on the Z1th to Zeth test sample images respectively, and count the number of test sample images that have passed the test to obtain the number of first test result images, calculate the ratio of the number of first test result images to Ze, and obtain the image test qualification rate; Obtaining the image test benchmark pass rate, comparing the image test pass rate with the image test benchmark pass rate, and obtaining display fault judgment data; The details are as follows: When the image test pass rate is greater than or equal to the image test benchmark pass rate, it is determined that the target set-top box does not have a display fault; When the image test pass rate is less than the image test reference pass rate, it is determined that the target set-top box has a display fault.
7. A set-top box fault analysis method according to claim 1, It is characterized in that The step S4 further includes the following specific steps: Step S41: Acquire signal fault judgment data, hardware fault data and display fault judgment data; Step S42: performing fault coding on the target set-top box according to the signal fault judgment data to obtain a signal fault code; The details are as follows: Step S421: When the target set-top box has a signal failure, the signal failure code is written as XF; Step S422: When there is no signal failure in the target set-top box, the signal failure code is written as XT; Step S43: performing fault coding on the target set-top box according to the hardware fault data to obtain a hardware fault code; The details are as follows: Step S431: Acquire hardware fault judgment data and hardware device fault code according to hardware fault data; Step S432: When the target set-top box has a hardware fault, the hardware fault code is written as YF; Step S433: When the target set-top box does not have a hardware fault, the hardware fault code is written as YT; Step S44: fault-encoding the target set-top box according to the display fault judgment data to obtain a display fault code; The details are as follows: Step S441: When the target set-top box has a display fault, the display fault code is written as SF; Step S442: When the target set-top box does not have a display fault, the display fault code is written as ST; Step S45: Integrate the signal fault code, the hardware fault code and the display fault code in the format of signal fault code-hardware fault code-display fault code to obtain a comprehensive fault code, and feed the comprehensive fault code back to the display.
8. A set-top box fault analysis system, applicable to a set-top box fault analysis method according to any one of claims 1 to 7, It is characterized in that The fault analysis system comprises: Data acquisition module: used to acquire the first fault cycle division data, the second fault cycle division data and the display test sample data to obtain the basic data for fault judgment; Data processing module: used to process the basic data of fault judgment and obtain the fault cycle priority ranking data; Signal fault module: used to analyze the signal fault of the target set-top box according to the fault cycle priority sorting data to obtain signal fault judgment data; Hardware fault module: used to analyze the hardware fault of the target set-top box according to the fault cycle priority sorting data to obtain hardware fault data; Display fault module: used to analyze the display fault of the target set-top box according to the fault cycle priority sorting data to obtain display fault judgment data; Fault feedback module: used to perform comprehensive fault coding based on signal fault judgment data, hardware fault data and display fault judgment data, and to feed back the comprehensive fault coding.
