Automatic detection method based on set top box equipment system upgrading
Through automated detection scripts, the feasibility and integrity verification of the upgrade file download of the set-top box equipment is carried out, and the upgrade status is monitored in real time, and the upgraded functions are detected, which solves the problems of ineffective supervision of the upgrade process and insufficient function detection in the existing technology, and improves the Efficiency and accuracy of set-top box system upgrades.
Patent Information
- Application Number
- CN202411221227.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-02
- Publication Date
- 2024-11-12
AI Technical Summary
The existing technology cannot effectively supervise and intelligently control the set-top box system upgrade process, resulting in a decrease in efficiency and stability of the upgraded process, and the inability to detect and feedback the upgraded functions, affecting the optimization of the upgrade process.
The automated detection method is adopted to ensure the feasibility and integrity verification of the upgrade file download of the set-top box equipment by writing automated detection scripts, and the upgrade status is supervised in real time, detect the upgraded functions, and generate a detection report and feedback to relevant personnel.
Effective supervision and intelligent control of the set-top box system upgrade process is achieved, the efficiency and stability of the upgrade is ensured, and the upgrade process is timely optimized, improving the accuracy of the upgrade.
Smart Images

Figure CN118945315A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of set-top box equipment, and more specifically, to an automatic detection method based on set-top box equipment system upgrade. Background Art
[0002] A set-top box is an electronic device used to receive, decode and output digital television signals. As the functions of set-top boxes become more and more powerful, system upgrades become more and more important. In order to ensure the security and effectiveness of the upgrade process, automated detection methods are essential.
[0003] The patent application with reference publication number CN105451042A discloses a file upgrade system and method based on a set-top box, the system includes a file compression module, a file packaging module, a file download module and a file upgrade module, the method includes step 10, compressing the files that need to be compressed in each partition through the PC; step 20, packaging the upgrade files to obtain an upgrade data packet, and adding two fields, a decompression flag and the size of the file after decompression, to the header of the upgrade data packet; step 30, detecting the upgrade signal through the set-top box and downloading the upgrade data packet; step 40, parsing the upgrade data packet header information, decompressing the upgrade data packet that needs to be decompressed to obtain the decompressed upgrade file, burning it into the set-top box FLASH and upgrading it. The present invention solves the problem of excessively large files by compressing and decompressing the upgrade files, reducing the file transmission time, and realizing effective and fast file upgrades;
[0004] However, when detecting the upgrade process of the set-top box device system, the existing technology is unable to determine abnormal situations during the upgrade process of the set-top box system and make corresponding management and control operations, and is unable to achieve effective supervision and intelligent control of the set-top box system upgrade process. It cannot guarantee the efficiency and stability of the set-top box system upgrade process, and cannot detect and analyze the functions of the set-top box after the upgrade. It is impossible to feedback the information found during the detection process that does not meet expectations to relevant personnel, and it is impossible to timely optimize the set-top box system upgrade process, thereby reducing the efficiency and accuracy of the set-top box system upgrade.
[0005] To this end, we propose an automated detection method based on set-top box device system upgrade to address the above issues. Summary of the invention
[0006] The purpose of the present invention is to provide an automated detection method based on set-top box device system upgrade, which solves the problems that the prior art is unable to determine abnormal situations in the set-top box system upgrade process and make corresponding management and control operations, is unable to achieve effective supervision and intelligent control of the set-top box system upgrade process, is unable to ensure the efficiency and stability of the set-top box system upgrade process, is unable to detect and analyze the functions of the set-top box after the upgrade, is unable to feed back information that does not meet expectations found during the detection process to relevant personnel, is unable to timely optimize the set-top box system upgrade process, and reduces the efficiency and accuracy of the set-top box system upgrade.
[0007] The purpose of the present invention can be achieved through the following technical solutions:
[0008] An automatic detection method based on set-top box device system upgrade includes the following steps:
[0009] Step 1: Ensure that the set-top box, receiving antenna, Internet connection and server functions are normal, write a dedicated automated detection script, and install the Python environment and ADB tool;
[0010] Step 2: The automated detection script first connects to the designated upgrade file server, downloads the upgrade file that matches the detected set-top box model, performs download feasibility verification and integrity verification on the downloaded upgrade file in turn, and executes the upgrade operation after the upgrade file verification is completed. The upgrade process of the set-top box system is triggered by the automated detection script, and the upgrade mode is entered and the upgrade is started. The automated detection script performs real-time supervision, evaluation and analysis on the upgrade status of the set-top box system;
[0011] Step 3: After the upgrade is completed, the automated detection script automatically restarts the set-top box and performs detection, evaluation and analysis on the upgraded functions of the set-top box after the restart;
[0012] Step 4: Record the results of automated testing, integrate all test results to generate a test report, and feed back the test report to relevant personnel.
[0013] As a preferred embodiment of the present invention, the automated detection script is written in Python programming language. The automated detection script supports downloading upgrade files from a server and executing upgrade operations. It can simulate user operation behaviors and monitor the upgrade process of the set-top box device system.
[0014] As a preferred implementation of the present invention, the specific process of performing download feasibility check on the downloaded upgrade file is as follows:
[0015] The downloaded upgrade file is stored in the internal storage space of the set-top box. Before downloading, the remaining space of the current internal storage space of the set-top box is detected to determine the current remaining space size, which is calculated by the following formula: SK represents the remaining space in MB, M represents the number of files in the current internal storage space, dk represents the size of the kth file, Dk represents the storage frequency of the kth file, T represents the usage time of the current internal storage space, and F represents the average access speed of the file. Compare and analyze the current remaining space with the size of the downloaded upgrade file;
[0016] If the current remaining space is not less than the size of the downloaded upgrade file, the upgrade file is downloaded directly;
[0017] If the current remaining space is smaller than the size of the downloaded upgrade file, the junk information in the internal storage space will be cleaned up through the cleaning manager, and the upgrade file will be downloaded after the cleaning is completed.
[0018] As a preferred implementation of the present invention, the specific process of performing integrity check on the downloaded upgrade file is as follows:
[0019] The downloaded upgrade file is calculated using the M5 algorithm, and a fixed-length MD5 value is generated based on the calculation result;
[0020] and obtaining the preset MD5 value of the upgrade file stored in the server, and comparing and analyzing the calculated MD5 value with the preset MD5 value;
[0021] If the two values are equal, it indicates that the downloaded upgrade file is complete and has not been tampered with, and the upgrade operation is performed;
[0022] If the two values are not equal, it indicates that the downloaded upgrade file may be damaged or tampered with. In this case, the downloaded upgrade file is deleted, a new upgrade file is downloaded again, and the integrity of the new upgrade file is checked.
[0023] As a preferred embodiment of the present invention, the specific process of real-time monitoring, evaluation and analysis of the upgrade status of the set-top box system is as follows:
[0024] Collect the real-time total upgrade time required for the set-top box system to complete the upgrade, obtain the preset total upgrade time required for the set-top box system to complete the upgrade, calculate the difference between the real-time total upgrade time and the preset total upgrade time and take the absolute value to obtain the real-time total upgrade time difference, mark the real-time total upgrade time difference as ZSC, collect the real-time upgrade progress value of the set-top box system corresponding to the specified time, obtain the preset upgrade progress value of the set-top box system corresponding to the specified time, calculate the difference between the real-time upgrade progress value and the preset upgrade progress value and take the absolute value to obtain the real-time upgrade progress value difference, mark the real-time upgrade progress value difference as SJC, collect the network disconnection time value and the power off time value of the set-top box system from the start of the upgrade to the completion of the upgrade, sum the network disconnection time value and the power off time value to obtain the upgrade interruption time value, and mark the upgrade interruption time value as SZS;
[0025] By formula Obtain an upgrade status assessment value, wherein e1, e2, and e3 are preset proportional coefficients, and the values of e1, e2, and e3 are all greater than zero, and compare and analyze the upgrade status assessment value SZP with the preset upgrade status assessment value threshold value entered and stored internally;
[0026] If the upgrade status evaluation value SZP is greater than the preset upgrade status evaluation value threshold, it is determined that an abnormality occurs during the upgrade of the set-top box system, the upgrade is immediately stopped and relevant abnormal information is recorded, and the relevant abnormal information is sent to the result feedback module.
[0027] As a preferred embodiment of the present invention, the specific process of detecting, evaluating and analyzing the upgraded functions of the set-top box is as follows:
[0028] After the upgrade is completed, the automated detection script automatically restarts the set-top box, collects the running time of the set-top box after the restart, and marks it as the time threshold, divides the time threshold into i sub-time periods, i is a natural number greater than zero, divides the sub-time period into m sub-time nodes, m is a natural number greater than zero, obtains the signal strength of the set-top box in each sub-time node, and constructs a set A of signal strengths, obtains the mean in set A, and marks the mean in set A as the signal strength mean XJ; obtains the bit error rate value of the set-top box in each sub-time node, and constructs a set B of bit error rate values, obtains the mean in set B, and marks the mean in set B as the bit error rate value mean WJ; obtains the bandwidth utilization value of the set-top box in each sub-time node, and constructs a set C of bandwidth utilization values, obtains the mean in set C, and marks the mean in set C as the bandwidth utilization value mean DJ.
[0029] As a preferred implementation of the present invention, the signal strength mean XJ, the bit error rate mean WJ and the bandwidth utilization mean DJ are obtained;
[0030] By formula Obtain a signal reception rating value, wherein f1, f2 and f3 are preset proportional coefficients, and the values of f1, f2 and f3 are all greater than zero, and compare and analyze the signal reception rating value XJP with the preset signal reception rating value threshold value recorded and stored internally;
[0031] If the signal reception evaluation value XJP is greater than the preset signal reception evaluation value threshold, indicating that the signal reception function of the set-top box is abnormal, a signal reception function abnormality signal is generated, and the signal reception function abnormality signal is sent to the result feedback module;
[0032] If the signal reception rating value XJP is less than or equal to the preset signal reception rating value threshold, it indicates that the signal reception function of the set-top box is good, and no signal is generated.
[0033] As a preferred implementation of the present invention, a channel switching rate value within a time threshold is collected, the channel switching rate value represents the ratio between the number of channels switched by the set-top box during the channel switching operation within the time threshold and the switching time corresponding to the channel switching operation performed by the set-top box, and the channel switching rate value is compared and analyzed with a preset channel switching rate value threshold recorded and stored internally;
[0034] If the channel switching rate value is less than the preset channel switching rate value threshold, indicating that the channel switching function of the set-top box is abnormal, a channel switching function abnormality signal is generated, and the channel switching function abnormality signal is sent to the result feedback module;
[0035] If the channel switching rate value is greater than or equal to the preset channel switching rate value threshold, it indicates that the channel switching function of the set-top box is good, and no signal is generated.
[0036] As a preferred implementation of the present invention, a volume adjustment change value within a time threshold is collected, the volume adjustment change value represents the difference between the maximum and minimum effective volume values corresponding to the volume adjustment operation performed by the set-top box within the time threshold, and the volume adjustment change value is compared and analyzed with a preset volume adjustment change value threshold recorded and stored internally;
[0037] If the volume adjustment change value is less than the preset volume adjustment change value threshold, it indicates that the volume adjustment function of the set-top box is abnormal, then a volume adjustment function abnormality signal is generated, and the volume adjustment function abnormality signal is sent to the result feedback module;
[0038] If the volume adjustment change value is greater than or equal to the preset volume adjustment change value threshold, indicating that the volume adjustment function of the set-top box is good, no signal is generated.
[0039] As a preferred embodiment of the present invention, it is applied to a detection device, including a download feasibility verification module, an integrity verification module, an upgrade status supervision module, a function detection and analysis module and a result feedback module;
[0040] The download feasibility verification module is used to perform download feasibility verification on the downloaded upgrade file;
[0041] The integrity check module is used to perform integrity check on the downloaded upgrade file;
[0042] The upgrade status monitoring module is used to perform real-time monitoring, evaluation and analysis on the upgrade status of the set-top box system;
[0043] The function detection and analysis module is used to detect, evaluate and analyze the upgraded functions of the set-top box;
[0044] The result feedback module is used to collect and record the test results, integrate the test results to generate a test report, and feed back the test report to relevant personnel.
[0045] Compared with the prior art, the advantages of the present invention are:
[0046] In the present invention, the upgrade file is verified by downloading a feasibility verification module and an integrity verification module to determine whether the upgrade file is downloadable and complete, so that the upgrade file can be downloaded completely and losslessly, ensuring the normal subsequent upgrade operation of the set-top box system;
[0047] In the present invention, the upgrade status of the set-top box system is monitored in real time through the upgrade status monitoring module to determine whether an abnormality occurs during the upgrade process of the set-top box system. If an abnormality occurs, the set-top box device is controlled accordingly to achieve effective supervision and intelligent control of the set-top box system upgrade process, thereby ensuring the efficiency and stability of the set-top box system upgrade process.
[0048] In the present invention, the function of the set-top box after the upgrade is detected and analyzed by the function detection and analysis module to verify whether the function of the set-top box after the upgrade meets the expectations, and the information found that it does not meet the expectations during the detection process is fed back. The detection results are collected and integrated into a detection report by the result feedback module and sent to relevant personnel, so as to facilitate timely optimization of the set-top box system upgrade process and improve the efficiency and accuracy of the set-top box system upgrade. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 It is a flow chart of the detection method of the present invention;
[0050] Figure 2 is a system block diagram of the present invention;
[0051] Figure 3It is a logical flow diagram of the present invention. DETAILED DESCRIPTION
[0052] The following will combine the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all the embodiments. All other embodiments obtained by ordinary technicians in this field without creative work based on the embodiments of the present invention belong to the scope of protection of the present invention.
[0053] Embodiment 1:
[0054] like Figure 1 and Figure 2 As shown, the present invention proposes an automatic detection method based on set-top box device system upgrade, comprising the following steps:
[0055] Step 1: Ensure that the set-top box, receiving antenna, Internet connection and server functions are normal, write a dedicated automated detection script, and install the Python environment and ADB tool;
[0056] Step 2: The automated detection script first connects to the designated upgrade file server, downloads the upgrade file that matches the detected set-top box model, and performs download feasibility verification and integrity verification on the downloaded upgrade file in turn;
[0057] The specific process of checking the feasibility of the downloaded upgrade file is as follows:
[0058] The downloaded upgrade file is stored in the internal storage space of the set-top box. Before downloading, the remaining space of the current internal storage space of the set-top box is detected to determine the current remaining space size. The remaining space size is calculated using the following formula: SK represents the remaining space in MB, M represents the number of files in the current internal storage space, dk represents the size of the kth file, Dk represents the storage frequency of the kth file, T represents the usage time of the current internal storage space, and F represents the average access speed of the file. Compare and analyze the current remaining space with the size of the downloaded upgrade file;
[0059] If the current remaining space is not less than the size of the downloaded upgrade file, the upgrade file is downloaded directly;
[0060] If the current remaining space is smaller than the size of the downloaded upgrade file, the junk information in the internal storage space will be cleaned up through the cleaning manager, and the upgrade file will be downloaded after the cleaning is completed;
[0061] By checking the feasibility of the upgrade file download, it is ensured that the upgrade file can be successfully downloaded to the internal storage space of the set-top box to avoid direct download failure due to storage problems;
[0062] The specific process of integrity checking the downloaded upgrade file is as follows:
[0063] The downloaded upgrade file is calculated using the M5 algorithm, and a fixed-length MD5 value is generated based on the calculation result;
[0064] and obtaining the preset MD5 value of the upgrade file stored in the server, and comparing and analyzing the calculated MD5 value with the preset MD5 value;
[0065] If the two values are equal, it indicates that the downloaded upgrade file is complete and has not been tampered with, and the upgrade operation is performed;
[0066] If the two values are not equal, it indicates that the downloaded upgrade file may be damaged or tampered with. In this case, delete the downloaded upgrade file, download a new upgrade file, and perform an integrity check on the new upgrade file.
[0067] The M5 algorithm is well known to those skilled in the art, so its specific calculation process will not be elaborated here. The integrity check of the upgrade file is performed to ensure that the upgrade file is not damaged or tampered with, to ensure the availability of the upgrade file, and to ensure the normal subsequent upgrade operation of the set-top box system;
[0068] After the upgrade file verification is completed, the upgrade operation is executed. The upgrade process of the set-top box system is triggered by the automatic detection script, and the upgrade mode is entered and the upgrade begins. The automatic detection script performs real-time supervision, evaluation and analysis on the upgrade status of the set-top box system;
[0069] The specific process of real-time monitoring, evaluation and analysis of the upgrade status of the set-top box system is as follows:
[0070] Collect the real-time total upgrade time required for the set-top box system to complete the upgrade, obtain the preset total upgrade time required for the set-top box system to complete the upgrade, calculate the difference between the real-time total upgrade time and the preset total upgrade time and take the absolute value to obtain the real-time total upgrade time difference, mark the real-time total upgrade time difference as ZSC, collect the real-time upgrade progress value of the set-top box system corresponding to the specified time, obtain the preset upgrade progress value of the set-top box system corresponding to the specified time, calculate the difference between the real-time upgrade progress value and the preset upgrade progress value and take the absolute value to obtain the real-time upgrade progress value difference, mark the real-time upgrade progress value difference as SJC, collect the network disconnection time value and the power off time value of the set-top box system from the start of the upgrade to the completion of the upgrade, sum the network disconnection time value and the power off time value to obtain the upgrade interruption time value, and mark the upgrade interruption time value as SZS;
[0071] By formula Obtain an upgrade status assessment value, wherein e1, e2, and e3 are preset proportional coefficients, and the values of e1, e2, and e3 are all greater than zero. The larger the value of the upgrade status assessment value SZP is, the more abnormal conditions occur in the upgrade process of the set-top box system in general, and compare and analyze the upgrade status assessment value SZP with the preset upgrade status assessment value threshold value recorded and stored internally;
[0072] If the upgrade status evaluation value SZP is greater than the preset upgrade status evaluation value threshold, it is determined that an abnormality occurs during the upgrade process of the set-top box system, and the upgrade is immediately stopped and the relevant abnormal information is recorded, and the relevant abnormal information is sent to the result feedback module to achieve effective supervision and intelligent control of the set-top box system upgrade process, thereby ensuring the efficiency and stability of the set-top box system upgrade process;
[0073] The result feedback module will feed back the relevant abnormal information to the relevant personnel. The relevant personnel will conduct corresponding inspections on the set-top box equipment based on the fed-back abnormal information, solve the problems existing in the set-top box equipment and optimize its upgrade process. After the processing is completed, the set-top box system will be re-upgraded to ensure the efficiency and stability of the set-top box system upgrade process.
[0074] Step 3: After the upgrade is completed, the automated detection script automatically restarts the set-top box and performs detection, evaluation and analysis on the upgraded functions of the set-top box after the restart;
[0075] Step 4: Record the results of automated testing, integrate all test results to generate a test report, and feed back the test report to relevant personnel;
[0076] The automated detection script is written in Python programming language. It supports downloading upgrade files from the server and executing upgrade operations. It can simulate user operation behaviors and monitor the upgrade process of the set-top box device system.
[0077] Embodiment 2: The technical solution of the embodiment of the present invention is different from that of embodiment 1 in that:
[0078] The specific process of testing, evaluating and analyzing the upgraded functions of the set-top box is as follows:
[0079] After the upgrade is completed, the automated detection script automatically restarts the set-top box, collects the running time of the set-top box after the restart, and marks it as the time threshold, divides the time threshold into i sub-time periods, i is a natural number greater than zero, divides the sub-time period into m sub-time nodes, m is a natural number greater than zero, obtains the signal strength of the set-top box in each sub-time node, and constructs a set A of signal strengths, obtains the mean in set A, and marks the mean in set A as the signal strength mean XJ; obtains the bit error rate value of the set-top box in each sub-time node, and constructs a set B of bit error rate values, obtains the mean in set B, and marks the mean in set B as the bit error rate value mean WJ; obtains the bandwidth utilization value of the set-top box in each sub-time node, and constructs a set C of bandwidth utilization values, obtains the mean in set C, and marks the mean in set C as the bandwidth utilization value mean DJ;
[0080] By formula A signal reception rating value is obtained, wherein f1, f2 and f3 are all preset proportional coefficients, and the values of f1, f2 and f3 are all greater than zero. The larger the value of the signal reception rating value XJP is, the worse the function of the set-top box to receive signals is. The signal reception rating value XJP is compared and analyzed with the preset signal reception rating value threshold value recorded and stored internally;
[0081] If the signal reception evaluation value XJP is greater than the preset signal reception evaluation value threshold, indicating that the signal reception function of the set-top box is abnormal, a signal reception function abnormality signal is generated, and the signal reception function abnormality signal is sent to the result feedback module;
[0082] If the signal receiving function of the set-top box is abnormal, it will affect the normal operation of the set-top box. The abnormal signal of the signal receiving function will be sent to the relevant personnel through the result feedback module. The relevant personnel will check the set-top box equipment accordingly according to the feedback information, solve the problems of the set-top box equipment and optimize its upgrade process. After that, the set-top box system will be re-upgraded and the functions of the upgraded set-top box will be re-tested.
[0083] If the signal reception rating value XJP is less than or equal to the preset signal reception rating value threshold, it indicates that the signal reception function of the set-top box is good, and no signal is generated.
[0084] The channel switching rate value within the time threshold is collected. The channel switching rate value represents the ratio between the number of channels switched by the set-top box during the channel switching operation within the time threshold and the switching time corresponding to the channel switching operation performed by the set-top box. The smaller the channel switching rate value, the worse the channel switching function of the set-top box is in general. The channel switching rate value is compared and analyzed with the preset channel switching rate value threshold recorded and stored internally.
[0085] If the channel switching rate value is less than the preset channel switching rate value threshold, indicating that the channel switching function of the set-top box is abnormal, a channel switching function abnormality signal is generated, and the channel switching function abnormality signal is sent to the result feedback module;
[0086] If the channel switching function of the set-top box is abnormal, it will affect the normal operation of the set-top box. The abnormal signal of the channel switching function will be sent to the relevant personnel through the result feedback module. The relevant personnel will check the set-top box equipment accordingly according to the feedback information, solve the problems of the set-top box equipment and optimize its upgrade process. After that, the set-top box system will be re-upgraded and the functions of the upgraded set-top box will be re-tested.
[0087] If the channel switching rate value is greater than or equal to the preset channel switching rate value threshold, it indicates that the channel switching function of the set-top box is good, and no signal is generated.
[0088] The volume adjustment change value within the time threshold is collected, and the volume adjustment change value represents the difference between the maximum value and the minimum value of the effective volume corresponding to the volume adjustment operation performed by the set-top box within the time threshold. The smaller the volume adjustment change value, the worse the volume adjustment function of the set-top box is in general. The volume adjustment change value is compared and analyzed with the preset volume adjustment change value threshold recorded and stored internally;
[0089] If the volume adjustment change value is less than the preset volume adjustment change value threshold, it indicates that the volume adjustment function of the set-top box is abnormal, then a volume adjustment function abnormality signal is generated, and the volume adjustment function abnormality signal is sent to the result feedback module;
[0090] If the volume adjustment function of the set-top box is abnormal, it will affect the normal operation of the set-top box. The abnormal volume adjustment function signal will be sent to relevant personnel through the result feedback module. The relevant personnel will check the set-top box device accordingly based on the feedback information, solve the problems of the set-top box device and optimize its upgrade process. After that, the set-top box system will be re-upgraded and the functions of the upgraded set-top box will be re-tested.
[0091] If the volume adjustment change value is greater than or equal to the preset volume adjustment change value threshold, indicating that the volume adjustment function of the set-top box is good, no signal is generated.
[0092] Embodiment 3: The technical solution of the embodiment of the present invention is different from that of Embodiment 1 and Embodiment 2 in that:
[0093] Applied to testing equipment, including download feasibility verification module, integrity verification module, upgrade status supervision module, function detection and analysis module and result feedback module;
[0094] The download feasibility verification module, the integrity verification module, the upgrade status supervision module, the function detection and analysis module and the result feedback module are sequentially connected in communication, and the result feedback module is also connected in communication with the upgrade status supervision module;
[0095] The download feasibility verification module is used to perform download feasibility verification on the downloaded upgrade file;
[0096] The integrity check module is used to perform integrity check on the downloaded upgrade file;
[0097] The upgrade status monitoring module is used to conduct real-time monitoring, evaluation and analysis of the upgrade status of the set-top box system;
[0098] The function detection and analysis module is used to detect, evaluate and analyze the functions of the set-top box after upgrading;
[0099] The result feedback module is used to collect and record the test results, integrate the test results to generate a test report, and feed back the test report to relevant personnel;
[0100] The result feedback module sends the test report to relevant personnel. According to the problems existing during the set-top box system upgrade and the problems detected after the set-top box upgrade is completed, the relevant personnel will inspect and maintain the set-top box equipment, solve the problems existing in the set-top box equipment, and optimize and improve the upgrade process and detection methods of the set-top box system to improve the efficiency, stability and accuracy of the set-top box system upgrade.
[0101] The working principle of the present invention is as follows: when in use, the upgrade status of the set-top box system is monitored in real time through the upgrade status monitoring module to determine whether an abnormality occurs during the upgrade process of the set-top box system. If an abnormality occurs, the set-top box device is controlled accordingly to achieve effective supervision and intelligent control of the set-top box system upgrade process, ensure the efficiency and stability of the set-top box system upgrade process, and detect and analyze the upgraded functions of the set-top box through the function detection and analysis module to verify whether the upgraded functions of the set-top box meet expectations. Information that is found to be inconsistent with expectations during the detection process is fed back, and the detection results are collected and integrated into a detection report through the result feedback module and sent to relevant personnel, so as to facilitate timely optimization of the set-top box system upgrade process and improve the efficiency and accuracy of the set-top box system upgrade.
[0102] The above is only a preferred specific implementation manner of the present invention; but the protection scope of the present invention is not limited thereto; any technician familiar with the technical field within the technical scope disclosed by the present invention; any equivalent replacement or change based on the technical solution and improved concept of the present invention shall be covered by the protection scope of the present invention.
Claims
1. An automated detection method based on set-top box device system upgrade, characterized in that: The following steps are involved: Step 1: Ensure that the set-top box, receiving antenna, Internet connection and server functions are normal, write a dedicated automated detection script, and install the Python environment and ADB tool; Step 2: The automated detection script first connects to the designated upgrade file server, downloads the upgrade file that matches the detected set-top box model, performs download feasibility verification and integrity verification on the downloaded upgrade file in turn, and executes the upgrade operation after the upgrade file verification is completed. The upgrade process of the set-top box system is triggered by the automated detection script, and the upgrade mode is entered and the upgrade is started. The automated detection script performs real-time supervision, evaluation and analysis on the upgrade status of the set-top box system; Step 3: After the upgrade is completed, the automated detection script automatically restarts the set-top box and performs detection, evaluation and analysis on the upgraded functions of the set-top box after the restart; Step 4: Record the results of automated testing, integrate all test results to generate a test report, and feed back the test report to relevant personnel.
2. The automatic detection method based on set-top box device system upgrade according to claim 1, characterized in that: The automated detection script is written in Python programming language. The automated detection script supports downloading upgrade files from a server and executing upgrade operations. It can simulate user operation behaviors and monitor the upgrade process of the set-top box device system.
3. The automatic detection method based on set-top box device system upgrade according to claim 1, characterized in that: The specific process of checking the feasibility of the downloaded upgrade file is as follows: The downloaded upgrade file is stored in the internal storage space of the set-top box. Before downloading, the remaining space of the current internal storage space of the set-top box is detected to determine the current remaining space size, which is calculated by the following formula: SK represents the remaining space in MB, M represents the number of files in the current internal storage space, and d k Indicates the size of the kth file, D k represents the storage frequency of the kth file, T represents the usage time of the current internal storage space, F represents the average access speed of the file, and the current remaining space is compared and analyzed with the size of the downloaded upgrade file; If the current remaining space is not less than the size of the downloaded upgrade file, the upgrade file is downloaded directly; If the current remaining space is smaller than the size of the downloaded upgrade file, the junk information in the internal storage space will be cleaned up through the cleaning manager, and the upgrade file will be downloaded after the cleaning is completed.
4. The automatic detection method based on set-top box device system upgrade according to claim 3 is characterized in that: The specific process of integrity checking the downloaded upgrade file is as follows: The downloaded upgrade file is calculated using the M5 algorithm, and a fixed-length MD5 value is generated based on the calculation result; and obtaining the preset MD5 value of the upgrade file stored in the server, and comparing and analyzing the calculated MD5 value with the preset MD5 value; If the two values are equal, it indicates that the downloaded upgrade file is complete and has not been tampered with, and the upgrade operation is performed; If the two values are not equal, it indicates that the downloaded upgrade file may be damaged or tampered with. In this case, the downloaded upgrade file is deleted, a new upgrade file is downloaded again, and the integrity of the new upgrade file is checked.
5. The automatic detection method based on set-top box device system upgrade according to claim 1, characterized in that: The specific process of real-time monitoring, evaluation and analysis of the upgrade status of the set-top box system is as follows: Collect the real-time total upgrade time required for the set-top box system to complete the upgrade, obtain the preset total upgrade time required for the set-top box system to complete the upgrade, calculate the difference between the real-time total upgrade time and the preset total upgrade time and take the absolute value to obtain the real-time total upgrade time difference, mark the real-time total upgrade time difference as ZSC, collect the real-time upgrade progress value of the set-top box system corresponding to the specified time, obtain the preset upgrade progress value of the set-top box system corresponding to the specified time, calculate the difference between the real-time upgrade progress value and the preset upgrade progress value and take the absolute value to obtain the real-time upgrade progress value difference, mark the real-time upgrade progress value difference as SJC, collect the network disconnection time value and the power off time value of the set-top box system from the start of the upgrade to the completion of the upgrade, sum the network disconnection time value and the power off time value to obtain the upgrade interruption time value, and mark the upgrade interruption time value as SZS; By formula Obtain an upgrade status assessment value, wherein e1, e2, and e3 are preset proportional coefficients, and the values of e1, e2, and e3 are all greater than zero, and compare and analyze the upgrade status assessment value SZP with the preset upgrade status assessment value threshold value stored in the internal input; If the upgrade status evaluation value SZP is greater than the preset upgrade status evaluation value threshold, it is determined that an abnormality occurs during the upgrade of the set-top box system, the upgrade is immediately stopped and relevant abnormal information is recorded, and the relevant abnormal information is sent to the result feedback module.
6. The automatic detection method based on set-top box device system upgrade according to claim 1, characterized in that: The specific process of testing, evaluating and analyzing the upgraded functions of the set-top box is as follows: After the upgrade is completed, the automated detection script automatically restarts the set-top box, collects the running time of the set-top box after the restart, and marks it as the time threshold, divides the time threshold into i sub-time periods, i is a natural number greater than zero, divides the sub-time period into m sub-time nodes, m is a natural number greater than zero, obtains the signal strength of the set-top box in each sub-time node, and constructs a set A of signal strengths, obtains the mean in set A, and marks the mean in set A as the signal strength mean XJ; obtains the bit error rate value of the set-top box in each sub-time node, and constructs a set B of bit error rate values, obtains the mean in set B, and marks the mean in set B as the bit error rate value mean WJ; obtains the bandwidth utilization value of the set-top box in each sub-time node, and constructs a set C of bandwidth utilization values, obtains the mean in set C, and marks the mean in set C as the bandwidth utilization value mean DJ.
7. The automatic detection method based on set-top box device system upgrade according to claim 6, characterized in that: The signal strength mean XJ, bit error rate mean WJ and bandwidth utilization mean DJ are obtained; By formula Obtain a signal reception rating value, wherein f1, f2 and f3 are preset proportional coefficients, and the values of f1, f2 and f3 are all greater than zero, and compare and analyze the signal reception rating value XJP with the preset signal reception rating value threshold value recorded and stored internally; If the signal reception evaluation value XJP is greater than the preset signal reception evaluation value threshold, indicating that the signal reception function of the set-top box is abnormal, a signal reception function abnormality signal is generated, and the signal reception function abnormality signal is sent to the result feedback module; If the signal reception rating value XJP is less than or equal to the preset signal reception rating value threshold, it indicates that the signal reception function of the set-top box is good, and no signal is generated.
8. The automatic detection method based on set-top box device system upgrade according to claim 7, characterized in that: The channel switching rate value within the time threshold is collected, and the channel switching rate value represents the ratio between the number of channels switched by the set-top box during the channel switching operation within the time threshold and the switching time corresponding to the channel switching operation performed by the set-top box, and the channel switching rate value is compared and analyzed with the preset channel switching rate value threshold value recorded and stored internally; If the channel switching rate value is less than the preset channel switching rate value threshold, indicating that the channel switching function of the set-top box is abnormal, a channel switching function abnormality signal is generated, and the channel switching function abnormality signal is sent to the result feedback module; If the channel switching rate value is greater than or equal to the preset channel switching rate value threshold, it indicates that the channel switching function of the set-top box is good, and no signal is generated.
9. The automatic detection method based on set-top box device system upgrade according to claim 8, characterized in that: Collecting a volume adjustment change value within a time threshold, the volume adjustment change value represents the difference between the maximum and minimum effective volume values corresponding to the volume adjustment operation performed by the set-top box within the time threshold, and comparing and analyzing the volume adjustment change value with a preset volume adjustment change value threshold recorded and stored internally; If the volume adjustment change value is less than the preset volume adjustment change value threshold, it indicates that the volume adjustment function of the set-top box is abnormal, then a volume adjustment function abnormality signal is generated, and the volume adjustment function abnormality signal is sent to the result feedback module; If the volume adjustment change value is greater than or equal to the preset volume adjustment change value threshold, indicating that the volume adjustment function of the set-top box is good, no signal is generated.
10. An automated detection method based on set-top box device system upgrade according to any one of claims 1 to 9, characterized in that: Applied to testing equipment, including download feasibility verification module, integrity verification module, upgrade status supervision module, function detection and analysis module and result feedback module; The download feasibility verification module is used to perform download feasibility verification on the downloaded upgrade file; The integrity check module is used to perform integrity check on the downloaded upgrade file; The upgrade status monitoring module is used to perform real-time monitoring, evaluation and analysis on the upgrade status of the set-top box system; The function detection and analysis module is used to detect, evaluate and analyze the upgraded functions of the set-top box; The result feedback module is used to collect and record the test results, integrate the test results to generate a test report, and feed back the test report to relevant personnel.
Citation Information
Patent Citations
Set top box based file upgrading system and method
CN105451042A
Abnormal state detection method in OTA upgrading process and related equipment
CN116795596A
Set top box upgrading method and device and storage medium
CN117979099A
Remote upgrading method and system based on cloud printer
CN118194272A
Vehicle function upgrading control method and device and vehicle end control equipment
CN118550271A
Cited By
Software remote upgrading method and system for intelligent instruments and meters
CN120353485A
Task processing method and device, electronic equipment, storage medium and program product
CN122526660A
