A method and device for upgrading and optimizing a set-top box, electronic equipment and storage medium

By analyzing the set-top box's bitstream output and program switching data sequence, and utilizing big data and sliding window algorithms, the upgrade time is determined. This addresses the impact and failure risks of IPTV set-top box upgrades on user experience, optimizes the upgrade process, and improves user experience and network resource utilization.

CN119135994BActive Publication Date: 2026-04-07CHINA TELECOM CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-08
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

The existing IPTV set-top box upgrade method affects users' immediate use upon startup, carries the risk of upgrade failure, and consumes network resources, affecting the normal use of other network services.

Method used

By acquiring the set-top box bitstream output data sequence and program switching data sequence within a preset sliding window, and using big data collection and sliding window algorithms to analyze user habits, the system determines the set-top box upgrade time, avoids peak user usage periods, and sets preset upgrade frequency thresholds and upgrade effect evaluation modules.

Benefits of technology

To improve user experience satisfaction, avoid upgrade failures, reduce network resource consumption, and optimize the upgrade process without affecting users' normal use of IPTV services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119135994B_ABST
    Figure CN119135994B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a set-top box upgrading optimization method and device, electronic equipment and a storage medium. The method comprises: acquiring a code stream output data sequence and a program switching data sequence of the set-top box within a preset sliding window; determining a set-top box upgrading time based on the code stream output data sequence and the program switching data sequence within the preset sliding window; and upgrading the set-top box according to the set-top box upgrading time. Based on big data collection and sliding window algorithm, the set-top box upgrading time is determined by analyzing the time sequence data of the code stream output and program switching of the set-top box, the IPTV set-top box is upgraded in software version without affecting the normal IPTV service use of the user, the satisfaction of the user with the IPTV service experience is improved, and the risk of upgrading failure of the set-top box when starting up can also be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of big data processing, and in particular to a set-top box upgrading optimization method, a set-top box upgrading optimization device, a corresponding electronic device, and a corresponding computer readable storage medium. BACKGROUND

[0002] IPTV (Internet Protocol Television) is a new technology that uses a broadband cable television network to integrate Internet, multimedia, and communication technologies to provide interactive services including digital television to home users.

[0003] With the development of the three-network integration, IPTV can provide more abundant content and expand more practical functions, such as providing more abundant on-demand, content review, special topics, applications, communities, and interactive information services in life in addition to live channels of IPTV.

[0004] With the gradual upgrading of IPTV services, there is a need for software version upgrading of IPTV set-top boxes to provide better audio-visual experience for users. However, in the related art of set-top box upgrading, the upgrading is usually started when the set-top box is started, which will affect the immediate use of the user, and may cause the set-top box to fail to work normally due to the upgrading failure at the start. SUMMARY

[0005] In view of the above problems, the present application is proposed to provide a set-top box upgrading optimization method, a set-top box upgrading optimization device, a corresponding electronic device, and a corresponding computer readable storage medium that overcome the above problems or at least partially solve the above problems.

[0006] The present application discloses a set-top box upgrading optimization method, which comprises:

[0007] Obtaining a code stream output data sequence and a program switching data sequence of the set-top box in a preset sliding window;

[0008] Determining a set-top box upgrading time based on the code stream output data sequence and the program switching data sequence in the preset sliding window;

[0009] Upgrading and optimizing the set-top box according to the set-top box upgrading time.

[0010] Optionally, the program switching data sequence is time sequence data for indicating the number of program switching times, and the obtaining of the code stream output data sequence and the program switching data sequence of the set-top box in the preset sliding window comprises:

[0011] acquire real-time data collected by the set-top box, and transmit the real-time data to a preset message queue;

[0012] structure and label the real-time data in the preset message queue to obtain a code stream output data sequence of the set-top box in a preset time period and time series data for indicating a program switching number;

[0013] slide the preset sliding window on the time series data to obtain a code stream output data sequence of the set-top box in the preset sliding window and a program switching data sequence.

[0014] Optionally, the determination of the set-top box upgrade time based on the code stream output data sequence and the program switching data sequence in the preset sliding window comprises:

[0015] acquiring a code stream output sum of the code stream output data sequence in the preset sliding window and a program switching number sum of the program switching data sequence in the preset sliding window;

[0016] determining the set-top box upgrade time based on the code stream output sum and the program switching number sum.

[0017] Optionally, each data point of the code stream output data sequence corresponds to each program switching number of the program switching data sequence.

[0018] a window size of the preset sliding window is used to determine a target start data point and a target end data point in the data sequence; wherein the code stream output sum is a sum of code stream output data from the target start data point to the target end data point, and the program switching number sum is a sum of program switching numbers from the target start data point to the target end data point.

[0019] Optionally, the determination of the set-top box upgrade time based on the code stream output sum and the program switching number sum comprises:

[0020] if the code stream output sum is less than a preset first threshold value and the program switching number sum is less than a preset second threshold value, determining a time period and / or a time point corresponding to the preset sliding window as the set-top box upgrade time.

[0021] Optionally, the set-top box upgrade time is a set-top box upgrade time point and / or a set-top box upgrade time period; and the upgrade optimization of the set-top box according to the set-top box upgrade time comprises:

[0022] initiating a software version upgrade request for the set-top box at the set-top box upgrade time point;

[0023] And / or, during the set-top box upgrade period, repeatedly initiate software version upgrade requests to the set-top box until the software version upgrade requests reach a preset upgrade count threshold, and the set-top box is used to respond to the software version upgrade requests to perform upgrade optimization.

[0024] Optionally, after the set-top box upgrade and optimization are successful, the following may also be included:

[0025] The upgrade effect of the set-top box after successful upgrade and optimization will be evaluated;

[0026] If the upgrade achieves the expected results, the current software version of the set-top box will be maintained.

[0027] And / or, if the upgrade effect does not achieve the expected effect, the current software version of the set-top box will be rolled back to a previous version.

[0028] This invention also discloses an upgrade and optimization device for a set-top box, the device comprising:

[0029] The data sequence acquisition module is used to acquire the bitstream output data sequence and program switching data sequence of the set-top box within a preset sliding window;

[0030] The upgrade time determination module is used to determine the set-top box upgrade time based on the bitstream output data sequence and the program switching data sequence within a preset sliding window;

[0031] The upgrade and optimization module is used to upgrade and optimize the set-top box according to the set-top box upgrade time.

[0032] Optionally, the program switching data sequence is time-series data used to indicate the number of program switching times, and the data sequence acquisition module includes:

[0033] The data sequence acquisition submodule is used to acquire real-time data collected by the set-top box and transmit the real-time data to a preset message queue; perform structuring and tagging processing on the real-time data in the preset message queue to obtain the set-top box's bitstream output data sequence and time series data for indicating the number of program switching within a preset time period; slide the preset sliding window on the time series data to obtain the set-top box's bitstream output data sequence and program switching data sequence within the preset sliding window.

[0034] Optionally, the upgrade time determination module includes:

[0035] The upgrade time determination submodule is used to obtain the total bitstream output of the bitstream output data sequence within a preset sliding window, and to obtain the total number of program switching times of the program switching data sequence within the preset sliding window; based on the total bitstream output and the total number of program switching times, the set-top box upgrade time is determined.

[0036] Optionally, the data points of each bitstream output data in the bitstream output data sequence correspond to the number of program switching in the program switching data sequence;

[0037] The window size of the preset sliding window is used to determine the target start data point and the target end data point in the data sequence; wherein, the total bitstream output is the sum of the bitstream output data from the target start data point to the target end data point, and the total number of program switching is the sum of the number of program switching from the target start data point to the target end data point.

[0038] Optionally, the upgrade time determination submodule includes:

[0039] The upgrade time determination unit is used to determine the time period and / or time point corresponding to the preset sliding window as the set-top box upgrade time when the total output bitstream is less than a preset first threshold and the total number of program switching times is less than a preset second threshold.

[0040] Optionally, the set-top box upgrade time refers to the set-top box upgrade time point and / or the set-top box upgrade time period; the upgrade optimization module includes:

[0041] The upgrade and optimization submodule is used to initiate a software version upgrade request to the set-top box at the set-top box upgrade time point; and / or, repeatedly initiate a software version upgrade request to the set-top box during the set-top box upgrade period until the software version upgrade request reaches a preset upgrade number threshold, and the set-top box is used to respond to the software version upgrade request to perform upgrade and optimization.

[0042] Optionally, after the set-top box upgrade and optimization are successful, the device further includes:

[0043] The upgrade effect evaluation module is used to evaluate the upgrade effect of the set-top box after successful upgrade optimization; if the upgrade effect achieves the expected effect, the current software version of the set-top box is maintained; and / or, if the upgrade effect does not achieve the expected effect, the current software version of the set-top box is rolled back to a historical version.

[0044] This invention also discloses an electronic device, including: a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements any of the set-top box upgrade and optimization methods.

[0045] This invention also discloses a computer-readable storage medium storing a computer program, which, when executed by a processor, implements any of the set-top box upgrade and optimization methods.

[0046] The embodiments of the present invention have the following advantages:

[0047] In this embodiment of the invention, by acquiring the set-top box's bitstream output data sequence and program switching data sequence within a preset sliding window, the set-top box upgrade time is determined based on these data sequences. Then, the set-top box is upgraded and optimized according to the determined upgrade time. Based on big data acquisition and a sliding window algorithm, the upgrade time is determined by analyzing the time series data of the set-top box's bitstream output and program switching. This allows for software version upgrades of the IPTV set-top box without affecting normal IPTV service usage, improving user satisfaction with the IPTV service experience and avoiding the risk of upgrade failure during startup. Attached Figure Description

[0048] Figure 1 This is a flowchart illustrating the steps of an embodiment of an upgrade and optimization method for a set-top box according to the present invention.

[0049] Figure 2 This is a flowchart illustrating the steps of another embodiment of the set-top box upgrade and optimization method of the present invention;

[0050] Figure 3 This is a schematic diagram of the set-top box upgrade and optimization process provided in an embodiment of the present invention;

[0051] Figure 4 This is a schematic diagram of the framework of the set-top box upgrade and optimization system provided in an embodiment of the present invention;

[0052] Figure 5 This is a structural block diagram of an embodiment of an upgrade and optimization device for a set-top box according to the present invention. Detailed Implementation

[0053] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0054] The development of IPTV depends on the development of broadband. The higher the broadband coverage, the faster the speed, and the better the stability, the more widely IPTV can be popularized.

[0055] A set-top box (STB) is a device that connects a television set to an external signal source. It converts digital television signals into analog signals, enabling traditional analog television sets to receive and display digital television programs. With the gradual upgrading of IPTV services, IPTV set-top boxes require software upgrades to provide users with a better audio-visual experience.

[0056] In set-top box upgrade technologies, the upgrade process is typically set to begin when the set-top box is powered on. However, this method can disrupt immediate user experience. Specifically, if the upgrade process occurs when a user powers on the set-top box and is ready to use it, the upgrade may take a considerable amount of time, affecting the user's ability to immediately watch programs or use related functions, resulting in a poor user experience. Furthermore, this upgrade method carries the risk of failure. Network interruptions, power outages, or other unforeseen circumstances can cause the upgrade to fail, rendering the set-top box unusable and potentially requiring professional repair, thus impacting normal user operation. Finally, this upgrade method consumes network resources. Simultaneously powering on a large number of set-top boxes for upgrades can put significant pressure on network bandwidth, affecting the normal use of other network services.

[0057] This invention, based on big data acquisition and a sliding window algorithm, analyzes the time-series data of the set-top box's bitstream output and program switching to determine the time points when the set-top box is powered on but not in use, thus determining the optimal upgrade time and obtaining the optimal upgrade solution for the IPTV set-top box. This upgrade upgrades the IPTV set-top box software version without affecting the user's normal IPTV service usage, improving user satisfaction with the IPTV service experience. The upgrade optimization solution provided by this invention does not occupy the user's immediate IPTV service usage time, avoiding the need for immediate program viewing or related function use, and thus not affecting the user experience, thereby improving user satisfaction. Furthermore, this invention can set a preset upgrade count threshold to solve the problem of repeated upgrades due to upgrade failures, leading to poor user experience. Additionally, an upgrade effect evaluation module can be designed to evaluate the effect before and after the set-top box upgrade, determining whether a software version rollback is necessary, further improving the user experience. Furthermore, the upgrade and optimization scheme provided in this embodiment of the invention will not occupy the user's real-time use time of IPTV services, and can be upgraded in batches as much as possible based on the upgrade time determined by different set-top boxes. This can avoid the problem of a large number of set-top boxes being turned on for upgrades at the same time, which would put great pressure on network bandwidth and would not affect the normal use of other network services.

[0058] Reference Figure 1 The diagram illustrates a flowchart of an embodiment of a set-top box upgrade and optimization method according to the present invention, which may specifically include the following steps:

[0059] Step S101: Obtain the bitstream output data sequence and program switching data sequence of the set-top box within the preset sliding window;

[0060] The set-top box's output bitstream data refers to the data that the set-top box converts into a bitstream format suitable for transmission and playback from digital video signals. The set-top box can provide high-quality video and audio content through this bitstream output data, and supports rich user interaction and multilingual experiences.

[0061] Program switching data refers to the number of times a user switches programs, that is, the number of times a user switches from one channel or program to another. The program switching count records user program switching behavior, and based on this count, user switching habits while watching television can be analyzed.

[0062] For the time-series data output of the bitstream, that is, the bitstream output data sequence, the bitstream output data can be associated with time information. In the bitstream output data sequence, the video and audio data output by the set-top box can be output sequentially according to the time information.

[0063] For time-series data of program switching counts, i.e. program switching data sequence, the number of program switching counts can be associated with time information. In the program switching data sequence, the number of program switching counts operated by the user can be output sequentially according to the time information.

[0064] The preset sliding window size can be used to determine the target start and end data points in the data sequence. Typically, the preset sliding window can be slid across the time series data to obtain the set-top box's bitstream output data sequence and program switching data sequence within the preset sliding window. Based on the obtained bitstream output data sequence and program switching data sequence, the relevant bitstream output data and program switching counts of the corresponding data points within the preset sliding window can be analyzed.

[0065] Step S102: Determine the set-top box upgrade time based on the bitstream output data sequence and program switching data sequence within the preset sliding window;

[0066] The set-top box upgrade time is the time when the set-top box is turned on but not in use. This is the optimal upgrade solution for IPTV set-top boxes, allowing the software version of the set-top box to be upgraded without affecting the user's normal IPTV service.

[0067] In some embodiments of the present invention, the main approach is to analyze the bitstream output data sequence and program switching data sequence within a preset sliding window based on big data collection and sliding window algorithm, determine the time point when the set-top box is turned on but not used, determine the set-top box upgrade time, and obtain the optimal upgrade scheme for the IPTV set-top box.

[0068] Step S103: Upgrade and optimize the set-top box according to the set-top box upgrade time.

[0069] The determined set-top box upgrade time can be either a specific upgrade time point or a set-top box upgrade time period, depending on the window size of the preset sliding window.

[0070] The upgrade scheme based on the determined set-top box upgrade time can be manifested as upgrading and optimizing the set-top box during the upgrade time. Since the set-top box upgrade time is the time when the set-top box is turned on but not used, the upgrade and optimization scheme provided by the embodiments of the present invention will not occupy the user's immediate use time of IPTV services, can avoid the user's need to watch programs or use related functions immediately, will not affect the user experience, and is conducive to improving the user experience.

[0071] In this embodiment of the invention, by acquiring the set-top box's bitstream output data sequence and program switching data sequence within a preset sliding window, the set-top box upgrade time is determined based on these data sequences. Then, the set-top box is upgraded and optimized according to the determined upgrade time. Based on big data acquisition and a sliding window algorithm, the upgrade time is determined by analyzing the time series data of the set-top box's bitstream output and program switching. This allows for software version upgrades of the IPTV set-top box without affecting normal IPTV service usage, improving user satisfaction with the IPTV service experience and avoiding the risk of upgrade failure during startup.

[0072] Reference Figure 2 The diagram illustrates a flowchart of another embodiment of the set-top box upgrade and optimization method of the present invention, which may specifically include the following steps:

[0073] Step S201: Obtain the real-time data collected by the set-top box and transmit the real-time data to a preset message queue;

[0074] In this embodiment of the invention, based on big data collection and sliding window algorithm, the time series data of the set-top box's bitstream output and program switching can be analyzed to determine the time points when the set-top box is turned on but not used, and thus determine the set-top box upgrade time.

[0075] In some embodiments of the present invention, the big data collection process can be manifested as acquiring real-time data collected by a set-top box. For example... Figure 3 As shown, this can be specifically manifested in the collection and processing of real-time user behavior data through probes on the IPTV platform. Real-time data may include, but is not limited to, the video bitrate output by the set-top box, the number of program / channel switching times, latency, packet loss rate, etc. The processing of real-time data can be manifested in transmitting the real-time data collected by the set-top box to a preset message queue, and then performing business indicator calculations and cleaning on the data in the preset message queue, so as to perform subsequent processing on the cleaned data in the preset message queue.

[0076] It should be noted that the data cleaning performed can be a simple data filtering process, and the data obtained after cleaning is not related to time information.

[0077] Step S202: The real-time data in the preset message queue is structured and tagged to obtain the set-top box's bitstream output data sequence and time series data used to indicate the number of program switching within the preset time period;

[0078] In order to analyze the collected big data based on the sliding window algorithm, in some embodiments of the present invention, the time series data of the relevant data can be obtained by structuring and tagging the data, associating the bitstream output data and program switching times with time information.

[0079] Optionally, the real-time data in the preset message queue can be structured and tagged to obtain the set-top box's bitstream output data sequence and time series data used to indicate the number of program switching within a preset time period.

[0080] In practical applications, such as Figure 3 As shown, data clusters, such as Hadoop or Spark clusters, can be used to compute and store user data, forming structured and tagged data. Specifically, this can be achieved by using Hadoop / Spark clusters to store and preprocess behavior logs, output stream information, and QoS (Quality of Service) performance data of various IPTV users. During the structuring and tagging of the data, the Hadoop or Spark clusters can perform batch processing. Preprocessing can include data extraction, data filtering, data cleaning, data association, and data validation.

[0081] For example, the specific steps for batch processing in a Hadoop / Spark cluster to achieve data structuring and labeling may include: First, data extraction, which involves extracting data related to IPTV user behavior, output bitstream information, and QoS performance from the raw data; then, data filtering, data cleaning, data association, and data verification processes may be performed. Specifically, data filtering may involve removing invalid or redundant data and retaining valuable data; data cleaning may involve error correction, deduplication, and formatting to ensure data quality; data association may involve linking data from different sources to establish relationships between data; and data verification may involve validating the processed data to ensure its accuracy and completeness.

[0082] Optionally, the basis for data storage can be determined according to specific needs, with time being a common basis. For example, data can be stored in a distributed file system in chronological order, or timestamps can be used to mark data for quick retrieval and analysis of data within a specific time period. Optionally, data can also be stored based on other factors such as user ID and channel; however, this embodiment of the invention does not impose any limitations on this.

[0083] In this embodiment of the invention, by structuring the data, the bitstream output data and program switching times can be associated with time information, thereby enabling accurate querying and analysis of data at a specific time point.

[0084] Step S203: Slide a preset sliding window on the time series data to obtain the set-top box's bitstream output data sequence and program switching data sequence within the preset sliding window;

[0085] The structured and tagged data can be used to indicate the bitstream output data and the number of program switching times at the corresponding time.

[0086] After obtaining the set-top box's bitstream output data sequence and the time series data used to indicate the number of program switching times within a preset time period, a preset sliding window can be slid across the time series data to obtain the set-top box's bitstream output data sequence and program switching data sequence within the preset sliding window. This allows for analysis of user data using a sliding window algorithm model to determine the set-top box upgrade time.

[0087] Step S204: Determine the set-top box upgrade time based on the bitstream output data sequence and program switching data sequence within the preset sliding window;

[0088] The analysis of user data using a sliding window algorithm model can be represented by analyzing the bitstream output data sequence and program switching data sequence within a preset sliding window to determine the time points when the set-top box is turned on but not used, thereby determining the set-top box upgrade time.

[0089] The data points of each bitstream output data in the bitstream output data sequence can correspond to the number of program switching in the program switching data sequence. Optionally, the total bitstream output of the bitstream output data sequence within a preset sliding window and the total number of program switching in the program switching data sequence within the preset sliding window can be obtained to determine the set-top box upgrade time based on the total bitstream output and the total number of program switching.

[0090] Specifically, the preset sliding window size can be used to determine the target start data point and the target end data point in the data sequence. For example, assuming the preset sliding window size is ω, if ω = 3, it means that the preset sliding window contains 3 data points, that is, it contains the target start data point in the data sequence and ω-1 = 2 data points following the target start data point.

[0091] The total bitstream output can refer to the total bitstream output data from the target start data point to the target end data point; the total number of program switching can refer to the total number of program switching from the target start data point to the target end data point.

[0092] In practical applications, in the embodiments of the present invention, the number of program switches is mainly used to assist in judging the usage status of the set-top box. Specifically, the number of program switches can be combined with the bitstream output data to help determine whether the set-top box is in the state of being powered on but not in use, so as to determine the time point when the set-top box is powered on but not in use.

[0093] In a specific implementation, if the total bitstream output within a preset sliding window is less than a preset first threshold, and the total number of program switches is less than a preset second threshold, it can be considered that the set-top box may not be used during this time period. At this time, the time period and / or time point corresponding to the preset sliding window can be determined as the set-top box upgrade time. By analyzing the time series data of the bitstream output data and the time series data of the number of program switches, the user's usage habits can be better understood, so as to more accurately select the best time point for set-top box upgrade and avoid upgrading when the user frequently switches programs, which affects the user experience.

[0094] Exemplarily, assume that the bitstream output data sequence is c j , and the program switch data sequence is s j . The size of the sliding window is ω (assumed to be 3 data points). The condition for judging that the set-top box is powered on but not in use is that the total bitstream output is less than a preset first threshold Tc (assumed to be 10MB), and the total number of program switches is less than a preset second threshold Ts (assumed to be 1 time).

[0095] Optionally, a window function window(i) can be defined to represent the total bitstream output and the total number of program switches within the sliding window starting from the jth data point. Here, the jth data point usually refers to the jth data point in the time series data, and this data point can correspond to the stored bitstream output data and the number of program switches. The specific calculation formula can be as follows:

[0096]

[0097] where i + ω - 1 < n, and i can take 1, 2, 3,... in sequence until a certain condition is met.

[0098] Then, it can be judged in sequence whether the data in each window meets the condition that the set-top box is powered on but not in use, that is:

[0099]

[0100] where i + ω - 1 < n.

[0101] If certain conditions are met, such as the total output bitrate being less than the aforementioned first preset threshold of 10MB and the total program switching being less than the aforementioned second preset threshold of 1, then it can be assumed that the set-top box may be in a powered-on but unused state during the time period corresponding to that window. In this way, based on the time-series data of video bitrate output and program switching, a sliding window algorithm can be used to determine the set-top box's usage status at different time periods, thereby selecting the optimal time to upgrade the IPTV set-top box.

[0102] Optionally, a preset sliding window of a preset window size can be continuously slid across the time series data to obtain the sum of the bitstream output and the sum of the number of program switching for each data point within the window in the manner described above.

[0103] For example, suppose data is recorded every 5 minutes for a total of 1 hour, resulting in 12 data points. If the preset sliding window size is 15 minutes (3 data points), then this window can be started sliding on the time series data. Starting from the first data point, the window moves forward by one data point each time, and then the total bitstream output and the total number of program switching times are calculated for the data in each window.

[0104] In this embodiment of the invention, the set-top boxes can be divided into several batches for upgrade based on the time periods during which they may be powered on but not in use, as determined by the sliding window algorithm. For example, the set-top boxes can be divided into different batches according to time sequence, and the set-top boxes can be upgraded at the optimal upgrade time point for each batch. This can avoid the problem of a large number of set-top boxes being powered on and upgraded at the same time, which would put a lot of pressure on network bandwidth and affect the normal use of other network services.

[0105] Step S205: Upgrade and optimize the set-top box according to the set-top box upgrade time.

[0106] In one scenario, after determining the set-top box upgrade time based on the time series data of video stream output and program switching, and by using a sliding window algorithm to judge the set-top box's usage status at different time periods, an upgrade command can be pushed to the set-top box, and the set-top box can be upgraded and optimized according to the upgrade time.

[0107] In another scenario, if the set-top box remains powered on and in use, the IPTV platform will display a pop-up window asking the user whether an upgrade is required when the user outputs a power-off command using a remote control or other device. If no selection is made, the upgrade will be performed by default.

[0108] The upgrade scheme based on the determined set-top box upgrade time can be manifested as upgrading and optimizing the IPTV set-top box at the set-top box upgrade time, that is, selecting the optimal time point. Since the set-top box upgrade time is the time when the set-top box is turned on but not used, the upgrade and optimization scheme provided by the embodiments of the present invention will not occupy the user's immediate use time of IPTV services, can avoid the user's need to watch programs or use related functions immediately, will not affect the user experience, and is conducive to improving the user experience.

[0109] like Figure 3 As shown, the IPTV platform can initiate an upgrade request for the set-top box. Optionally, the set-top box upgrade time can be a specific upgrade point or a time period, depending on the size of the preset sliding window. For example, when the preset sliding window size is greater than 1, it typically contains 3 data points from the data sequence, each with 3 time information points, thus representing a time period containing 3 time points. When the preset sliding window size is equal to 1, it contains 1 data point from the data sequence, each with 1 time information point, thus representing the set-top box upgrade point.

[0110] It should be noted that, since a preset sliding window of a preset window size can be continuously slid across the time series data, there can be multiple optimal time points / time periods that can be selected. In this regard, the embodiments of the present invention do not impose any limitations.

[0111] In practical applications, the IPTV platform can initiate software version upgrade requests to the set-top box during the set-top box upgrade time and / or the set-top box upgrade period. The set-top box then responds to the software version upgrade requests and performs upgrades and optimizations.

[0112] As one example, the IPTV platform can initiate a software version upgrade request to the set-top box at the set-top box upgrade time. As another example, the IPTV platform can repeatedly initiate a software version upgrade request to the set-top box during the set-top box upgrade period until the software version upgrade request reaches a preset upgrade count threshold. By setting the preset upgrade count threshold, the problem of repeated upgrades due to upgrade failures, which leads to poor user experience, can be solved.

[0113] Optionally, when initiating a software version upgrade request for the set-top box through the IPTV platform, it can be determined whether the set-top box device is compatible with the software version to be upgraded. If the set-top box device is compatible with the software version to be upgraded, the software version upgrade and optimization operation can be performed on the set-top box.

[0114] Optionally, during the IPTV platform's upgrade and optimization of the set-top box, a pop-up window can appear on the set-top box screen to notify the user that an upgrade is in progress. Even if the set-top box is likely powered on but not in use, this pop-up ensures the user is aware that an upgrade is being performed, preventing unauthorized actions that could disrupt or interrupt the upgrade process. The pop-up notification informs the user of the set-top box's current status, avoiding the misconception that the box is malfunctioning or has other problems. Furthermore, even if the set-top box is powered on but not in use, the possibility of the user needing to use it during the upgrade process cannot be completely ruled out. The pop-up provides the user with a choice, such as the option to pause the upgrade or wait for it to complete before resuming use. In short, displaying an "upgrade in progress" pop-up is designed to increase user awareness and control over the upgrade process, ensuring its smooth execution.

[0115] Optionally, assuming the preset upgrade threshold is 5 times, if the set-top box fails to upgrade 5 times, the IPTV platform can mark the user's set-top box as unable to upgrade and stop upgrading the set-top box to prevent the upgrade process from causing lag to the user's video service.

[0116] In a preferred embodiment of the present invention, if the set-top box upgrade is successful, the upgrade effect of the set-top box after successful upgrade and optimization can be evaluated. Optionally, if the upgrade effect of the set-top box achieves the expected effect, the current software version of the set-top box can be maintained; and / or, if the upgrade effect does not achieve the expected effect, the current software version of the set-top box can be rolled back to a historical version.

[0117] For example, this can be manifested by comparing video latency and packet loss rate before and after the upgrade. When evaluating the effect of the set-top box upgrade, if the video latency and packet loss rate are unsatisfactory after the upgrade, meaning the upgrade effect has not met expectations, then it is possible to revert to the original version. Specifically, if the video latency increases or the packet loss rate rises after the upgrade, leading to a decline in the user experience, then a version rollback can be considered to restore the previously more stable and satisfactory usage.

[0118] In this embodiment of the invention, based on big data collection and sliding window algorithm, the time series data of the set-top box's bitstream output and program switching are analyzed to determine the set-top box upgrade time. Without affecting the user's normal IPTV service, the software version of the IPTV set-top box is upgraded, improving the user's satisfaction with the IPTV service experience, and at the same time avoiding the risk of upgrade failure when the set-top box is turned on.

[0119] Reference Figure 4The diagram shows a framework schematic of the set-top box upgrade and optimization system provided in an embodiment of the present invention. The set-top box upgrade and optimization system 4 includes a data access module 410, a data computing center module 411, an upgrade module 412, and an upgrade effect evaluation module 413.

[0120] Optionally, the data access module 410 is mainly responsible for transmitting real-time data collected by the user's set-top box (including the set-top box output video stream, channel switching times, latency, packet loss rate, etc.) to a preset message queue through the IPTV probe system, performing business indicator calculations and cleaning on the data in the preset message queue, and finally transmitting it to the data calculation center module.

[0121] The data computing center module 411 is mainly used to store and batch process the behavior logs of various users, film and television program information data and data collected by the data access module, so as to realize the structuring and tagging of data, thereby obtaining the time series data of the set-top box's bitstream output and program switching.

[0122] The upgrade module 412 is mainly responsible for analyzing the time series data of the set-top box's bitstream output and program switching, determining the time points when the set-top box is powered on but not in use, initiating a software version upgrade request to the set-top box through the platform, and determining whether the device is compatible with the software version by setting an upgrade number threshold, ultimately realizing the upgrade of the device's software version.

[0123] The upgrade effect evaluation module 413 is mainly used to evaluate the upgrade effect of the set-top box, and evaluate the effect after the set-top box is successfully upgraded. Specifically, it can compare the video latency and packet loss rate before and after the upgrade, and then determine whether to revert the current software version of the set-top box to the original version.

[0124] It should be noted that, as Figure 4 The set-top box upgrade and optimization system 4 shown can achieve, based on its various modules, the following: Figures 1 to 3 The set-top box upgrade and optimization scheme shown in this embodiment of the invention will not be described in detail here.

[0125] In this embodiment of the invention, based on big data collection and a sliding window algorithm, the time-series data of the set-top box's bitstream output and program switching are analyzed to determine the time points when the set-top box is powered on but not used, thus determining the optimal upgrade time for the IPTV set-top box. This allows for a software version upgrade of the IPTV set-top box without affecting the user's normal IPTV service usage, improving user satisfaction with the IPTV service experience. The upgrade optimization scheme provided by this embodiment does not occupy the user's immediate IPTV service usage time, avoiding the need for immediate program viewing or related function use, and thus does not affect the user experience, improving overall user satisfaction. Furthermore, this embodiment can set a preset upgrade count threshold to solve the problem of repeated upgrades due to upgrade failures, leading to poor user experience. Additionally, an upgrade effect evaluation module can be designed to evaluate the effect before and after the set-top box upgrade, determining whether a software version rollback is necessary, further improving the user experience. Furthermore, the upgrade and optimization scheme provided in this embodiment of the invention will not occupy the user's real-time use time of IPTV services, and can be upgraded in batches as much as possible based on the upgrade time determined by different set-top boxes. This can avoid the problem of a large number of set-top boxes being turned on for upgrades at the same time, which would put great pressure on network bandwidth and would not affect the normal use of other network services.

[0126] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.

[0127] Reference Figure 5 The diagram illustrates a structural block diagram of an embodiment of a set-top box upgrade and optimization device according to the present invention, which may specifically include the following modules:

[0128] The data sequence acquisition module 501 is used to acquire the bitstream output data sequence and program switching data sequence of the set-top box within a preset sliding window;

[0129] The upgrade time determination module 502 is used to determine the set-top box upgrade time based on the bitstream output data sequence and the program switching data sequence within a preset sliding window;

[0130] The upgrade and optimization module 503 is used to upgrade and optimize the set-top box according to the set-top box upgrade time.

[0131] In some embodiments of the present invention, the program switching data sequence is time-series data used to indicate the number of program switching times, and the data sequence acquisition module 501 may include the following sub-modules:

[0132] The data sequence acquisition submodule is used to acquire real-time data collected by the set-top box and transmit the real-time data to a preset message queue; perform structuring and tagging processing on the real-time data in the preset message queue to obtain the set-top box's bitstream output data sequence and time series data for indicating the number of program switching within a preset time period; slide the preset sliding window on the time series data to obtain the set-top box's bitstream output data sequence and program switching data sequence within the preset sliding window.

[0133] In some embodiments of the present invention, the upgrade time determination module 502 may include the following sub-modules:

[0134] The upgrade time determination submodule is used to obtain the total bitstream output of the bitstream output data sequence within a preset sliding window, and to obtain the total number of program switching times of the program switching data sequence within the preset sliding window; based on the total bitstream output and the total number of program switching times, the set-top box upgrade time is determined.

[0135] In some embodiments of the present invention, the data points of each bitstream output data in the bitstream output data sequence correspond to the number of program switching times in the program switching data sequence;

[0136] The window size of the preset sliding window is used to determine the target start data point and the target end data point in the data sequence; wherein, the total bitstream output is the sum of the bitstream output data from the target start data point to the target end data point, and the total number of program switching is the sum of the number of program switching from the target start data point to the target end data point.

[0137] In some embodiments of the present invention, the upgrade time determination submodule may include the following units:

[0138] The upgrade time determination unit is used to determine the time period and / or time point corresponding to the preset sliding window as the set-top box upgrade time when the total output bitstream is less than a preset first threshold and the total number of program switching times is less than a preset second threshold.

[0139] In some embodiments of the present invention, the set-top box upgrade time is a set-top box upgrade time point and / or a set-top box upgrade time period; the upgrade optimization module 503 may include the following sub-modules:

[0140] The upgrade and optimization submodule is used to initiate a software version upgrade request to the set-top box at the set-top box upgrade time point; and / or, repeatedly initiate a software version upgrade request to the set-top box during the set-top box upgrade period until the software version upgrade request reaches a preset upgrade number threshold, and the set-top box is used to respond to the software version upgrade request to perform upgrade and optimization.

[0141] In some embodiments of the present invention, after the set-top box upgrade and optimization are successful, the embodiments of the present invention may further include the following modules:

[0142] The upgrade effect evaluation module is used to evaluate the upgrade effect of the set-top box after successful upgrade optimization; if the upgrade effect achieves the expected effect, the current software version of the set-top box is maintained; and / or, if the upgrade effect does not achieve the expected effect, the current software version of the set-top box is rolled back to a historical version.

[0143] In this embodiment of the invention, the set-top box upgrade and optimization device obtains the set-top box's bitstream output data sequence and program switching data sequence within a preset sliding window. Based on these data sequences, it determines the set-top box upgrade time and then upgrades and optimizes the set-top box according to the determined upgrade time. Based on big data acquisition and a sliding window algorithm, by analyzing the time series data of the set-top box's bitstream output and program switching, the upgrade time is determined. This allows for software version upgrades of the IPTV set-top box without affecting normal IPTV service usage, improving user satisfaction with the IPTV service experience and avoiding the risk of upgrade failure during startup.

[0144] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.

[0145] This invention also provides an electronic device, comprising:

[0146] It includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, it implements the various processes of the above-described set-top box upgrade and optimization method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0147] This invention also provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the various processes of the above-described set-top box upgrade and optimization method embodiments and achieves the same technical effect. To avoid repetition, it will not be described again here.

[0148] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.

[0149] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, apparatus, or computer program products. Therefore, embodiments of the present invention can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, embodiments of the present invention can take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0150] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0151] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0152] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, causing a series of operational steps to be performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0153] Although preferred embodiments of the present invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present invention.

[0154] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes said element.

[0155] The above provides a detailed description of the set-top box upgrade and optimization method, the set-top box upgrade and optimization device, the corresponding electronic device, and the corresponding computer-readable storage medium provided by the present invention. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A method for upgrading and optimizing a set-top box, characterized in that, The method includes: Obtain the bitstream output data sequence and program switching data sequence of the set-top box within the preset sliding window; The set-top box upgrade time is determined based on the bitstream output data sequence and the program switching data sequence within the preset sliding window. The set-top box is upgraded and optimized according to its upgrade time. The process of determining the set-top box upgrade time based on the bitstream output data sequence and the program switching data sequence within a preset sliding window includes: Obtain the total bitstream output of the bitstream output data sequence within the preset sliding window, and obtain the total number of program switching times of the program switching data sequence within the preset sliding window; The set-top box upgrade time is determined based on the total output bitstream and the total number of program switching times. The process of determining the set-top box upgrade time based on the sum of the bitstream outputs and the sum of the program switching times includes: If the total output bitstream is less than a preset first threshold and the total number of program switching times is less than a preset second threshold, the time period and / or time point corresponding to the preset sliding window is determined as the set-top box upgrade time.

2. The method according to claim 1, characterized in that, The program switching data sequence is time-series data used to indicate the number of program switching times. The step of obtaining the set-top box's bitstream output data sequence and program switching data sequence within a preset sliding window includes: Acquire the real-time data collected by the set-top box and transmit the real-time data to a preset message queue; The real-time data in the preset message queue is structured and tagged to obtain the set-top box's bitstream output data sequence and time series data used to indicate the number of program switching within a preset time period; By sliding the preset sliding window over the time series data, the bitstream output data sequence and program switching data sequence of the set-top box within the preset sliding window are obtained.

3. The method according to claim 1, characterized in that, The data points of each bitstream output data in the bitstream output data sequence correspond to the number of times each program is switched in the program switching data sequence; The window size of the preset sliding window is used to determine the target start data point and the target end data point in the data sequence; wherein, the total bitstream output is the sum of the bitstream output data from the target start data point to the target end data point, and the total number of program switching is the sum of the number of program switching from the target start data point to the target end data point.

4. The method according to claim 1, characterized in that, The set-top box upgrade time refers to the set-top box upgrade time point and / or the set-top box upgrade time period; the upgrade and optimization of the set-top box based on the set-top box upgrade time includes: At the set-top box upgrade time point, a software version upgrade request is initiated for the set-top box; And / or, during the set-top box upgrade period, repeatedly initiate software version upgrade requests to the set-top box until the software version upgrade requests reach a preset upgrade count threshold, and the set-top box is used to respond to the software version upgrade requests to perform upgrade optimization.

5. The method according to claim 4, characterized in that, After the set-top box upgrade and optimization are successful, the following are also included: The upgrade effect of the set-top box after successful upgrade and optimization will be evaluated; If the upgrade achieves the expected results, the current software version of the set-top box will be maintained. And / or, if the upgrade effect does not achieve the expected effect, the current software version of the set-top box will be rolled back to a previous version.

6. An upgrade and optimization device for a set-top box, characterized in that, The device includes: The data sequence acquisition module is used to acquire the bitstream output data sequence and program switching data sequence of the set-top box within a preset sliding window; The upgrade time determination module is used to determine the set-top box upgrade time based on the bitstream output data sequence and the program switching data sequence within a preset sliding window; An upgrade and optimization module is used to upgrade and optimize the set-top box according to the set-top box upgrade time. The upgrade time determination module includes: The upgrade time determination submodule is used to obtain the total bitstream output of the bitstream output data sequence within a preset sliding window, and to obtain the total number of program switching times of the program switching data sequence within the preset sliding window; based on the total bitstream output and the total number of program switching times, the set-top box upgrade time is determined. The upgrade time determination submodule includes: The upgrade time determination unit is used to determine the time period and / or time point corresponding to the preset sliding window as the set-top box upgrade time if the total output of the bit stream is less than a preset first threshold and the total number of program switching times is less than a preset second threshold.

7. An electronic device, characterized in that, include: A processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements the upgrade and optimization method for the set-top box as described in any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, which, when executed by a processor, implements the upgrade and optimization method for the set-top box as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Method, device and equipment for controlling software for auto-updating

    CN102110000A

  • Code stream broadcast system, code stream broadcast method and software over the air upgrade method

    CN102427552A