WO2017219872A1 - 机顶盒的升级、换台方法及系统 - Google Patents

机顶盒的升级、换台方法及系统 Download PDF

Info

Publication number
WO2017219872A1
WO2017219872A1 PCT/CN2017/087650 CN2017087650W WO2017219872A1 WO 2017219872 A1 WO2017219872 A1 WO 2017219872A1 CN 2017087650 W CN2017087650 W CN 2017087650W WO 2017219872 A1 WO2017219872 A1 WO 2017219872A1
Authority
WO
WIPO (PCT)
Prior art keywords
upgrade
data
upgrade data
top box
address information
Prior art date
Application number
PCT/CN2017/087650
Other languages
English (en)
French (fr)
Inventor
高涛
Original Assignee
深圳创维数字技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳创维数字技术有限公司 filed Critical 深圳创维数字技术有限公司
Publication of WO2017219872A1 publication Critical patent/WO2017219872A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/458Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations
    • H04N21/4586Content update operation triggered locally, e.g. by comparing the version of software modules in a DVB carousel to the version stored locally
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/458Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations

Definitions

  • the present disclosure relates to the field of digital television, for example, to an upgrade, a method and system for upgrading a set top box.
  • Digital TV set-top boxes have experienced more than a decade of development, and the digital set-top box market is in great demand due to the digital tide.
  • China has a huge production capacity of set-top boxes.
  • the production scale of China's digital set-top boxes alone reached 82.36 million units, and in 2011 it reached 98.1 million units.
  • digital TV set-top boxes created about 250 million sets of market demand for set-top boxes.
  • 85% of cable TV users in China were converted to digital TV users.
  • With the increase of urbanization rate in China the set-top box market will also be extended.
  • the set-top box combines various technologies such as computer, communication, multimedia, network and smart card, and its function is more and more powerful and intelligent.
  • the smart set-top box has functions related to family information, and it is easy to realize function expansion.
  • the functions of the set-top box can include: high-speed Internet (Internet) access, receiving digital TV programs, Video-On-Demand (VOD), Audio-on-Demand (AOD), video games, Internet Protocol (Internet Protocol). , lP) telephone, videophone and conference TV, distance education, telemedicine, multi-screen interaction, etc.
  • Over-The-Air refers to the user terminal can directly install and update software on the user terminal through the receiving and downloading mode of the signal channel, also called air upgrade.
  • the digital set-top box air upgrade technology can upgrade the software system, eliminate software errors and add new features without changing the hardware structure of the set-top box.
  • the air upgrade function can be added to the set-top box.
  • operators can continuously promote value-added services through air upgrades.
  • set-top box developers can repair problems in set-top box software through over-the-air upgrades, and users can also experience more services through upgrades.
  • Digital set-top box software and hardware technology does not have perfect standards in China.
  • There is no unified standard for OTA which may cause many problems in the process of upgrading the set-top box.
  • the slow upgrade will become the bottleneck of OTA upgrade, when power failure, or impatience/unawareness
  • the set-top box software may be damaged and cannot be turned on again. If such a situation occurs in a large area, it will lead to an upgrade accident, and it takes cost to solve such an accident. A lot of manpower and financial resources.
  • the present disclosure provides a method for upgrading, changing, and changing a set top box, which can solve the problem that the set top box is upgraded slowly, the user experience is poor, and the upgrade accident occurs.
  • the embodiment provides a method for upgrading a set top box, which may include:
  • the first upgrade data of the receiver set top box in the background is collated and written to the free address of at least one partition of the flash memory, and the address information of the first upgrade data is recorded, and the upgrade flag is written;
  • Determining that the address information of the first upgrade data is legal reading the first upgrade data from the flash according to the address information of the first upgrade data, sorting the first upgrade data, and sorting the first upgrade data according to the Specifies that the rule is written to the specified address in the flash.
  • the method may further include:
  • Determining that the address information of the first upgrade data is invalid receiving the second upgrade data, sorting the second upgrade data, and writing the sorted second upgrade data to a specified address in the flash according to a specified rule.
  • the first upgrade data of the receiver top box in the background includes:
  • the real-time detection of the upgrade frequency has the first upgrade data.
  • the upgrade frequency has the first upgrade data
  • the address information of the first upgrade data is stored in a designated area in the flash, and the address information of the first upgrade data includes upgrade data, a storage address, a data length, and a Cyclic Redundancy Check (CRC). )information.
  • CRC Cyclic Redundancy Check
  • the embodiment provides a channel changing method, and the channel changing method is applied to channel switching when upgrading using the upgrade method of the set top box.
  • the method of changing channels includes:
  • the judgment result is a shared resource, it is judged whether or not the upgrade data is being received, and the judgment knot is If the upgrade data is not being received, the direct upgrade is performed, and the upgrade data is the first upgrade data or the second upgrade data;
  • the system resource is sufficient, and if the result of the determination is that the system resource is sufficient, the system resource is redistributed and the station is changed;
  • the user is prompted to receive the upgrade data, determine whether to terminate the upgrade and change the station, and if the result of the judgment is to terminate the upgrade, terminate the upgrade and change the station, and the result of the judgment is to continue the upgrade. In the case, terminate the channel change and continue to upgrade.
  • the embodiment provides an upgrade system of a set top box, including:
  • the data receiving module is configured to: write the first upgrade data of the top box in the background, write the first upgrade data to the free address of the at least one partition of the flash, and record the address information of the first upgrade data, Write the upgrade flag;
  • the address reading module is configured to: after determining the upgrade according to the upgrade flag, read address information of the first upgrade data;
  • the first upgrade module is configured to: determine that the address information of the first upgrade data is legal, read the first upgrade data from the flash according to the address information of the first upgrade data, and organize the first upgrade data, and The sorted first upgrade data is written to the specified address in the flash according to the specified rule.
  • the upgrade system of the set top box described above further includes:
  • the second upgrade module is configured to: after reading the address information of the first upgrade data, determining that the address information of the first upgrade data is invalid, receiving the second upgrade data, and sorting the second upgrade data, The second upgrade data is written to the specified address in the flash according to the specified rule.
  • the data receiving module is configured to:
  • the real-time detection of the upgrade frequency has the first upgrade data.
  • the upgrade frequency has the first upgrade data
  • the embodiment further provides a channel changing system, where the channel changing system is applied to the channel changing when upgrading using the upgrade system of the set top box, including:
  • the first judging module is configured to: receive a user's channel change command, determine whether to share the resource with the OTA upgrade, and directly switch the station if the judgment result is that the resource is not shared;
  • the second judging module is configured to: determine whether the upgrade data is being received after the resource is shared with the OTA, and if the result of the judgment is that the upgrade data is not being received, directly change the station, where the upgrade data is the first upgrade data or Second upgrade data;
  • the third judging module is configured to: after determining that the upgrade data is being received, determine whether the system resource is sufficient, and if the judgment result is that the system resource is sufficient, reallocating the system resource and changing the station;
  • the fourth judging module is configured to: after determining that the system resource is insufficient, prompting the user to receive the upgrade data, determining whether to terminate the upgrade and changing the station, and in the case that the judgment result is to terminate the upgrade, terminating the upgrade and changing the station, the judgment result is In the case of continued upgrade, the channel change will be terminated and the upgrade will continue.
  • the embodiment further provides a computer readable storage medium storing computer executable instructions for performing the upgrading method and the channel changing method of the set top box.
  • the embodiment further provides a set top box including one or more processors, a memory, and one or more programs, the one or more programs being stored in the memory, when executed by one or more processors, Perform the above method.
  • the embodiment further provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer Having the computer perform any of the methods described above.
  • the upgrade data received in the background is written into the free address of each partition in a specified format, and the information such as the distribution address thereof is recorded, and after the receiving is completed, the upgrade application is restarted, and according to the recorded Upgrade the address and other information directly from the flash to read the received upgrade data, and write the flash according to the specified rules to complete the upgrade.
  • This method is fast and efficient, saves the process of receiving upgrade data after entering the upgrade application, and achieves rapid upgrade, reduces the occurrence of upgrade accidents, and improves the user experience.
  • FIG. 1 is a flowchart of a method for upgrading a set top box according to the embodiment
  • FIG. 2 is a flowchart of a method for upgrading another set top box according to the embodiment
  • FIG. 3 is a flowchart of a method for changing a station according to the embodiment
  • FIG. 4 is a structural block diagram of an upgrade system of a set top box according to the embodiment.
  • FIG. 5 is a structural block diagram of another system for upgrading a set top box according to the embodiment.
  • Figure 6 is a block diagram showing the structure of a channel changing system provided by this embodiment.
  • FIG. 7 is a schematic structural diagram of hardware of a set top box according to this embodiment.
  • the embodiment provides a method for upgrading a set top box, which may include the following operations.
  • step 110 in the background, the first upgrade data of the top box of the receiver, the first upgrade data is collated and written to the free address of at least one partition of the flash, and the address information of the first upgrade data is recorded. , write the upgrade flag.
  • the first partition can be traversed from the first partition of the flash to the last partition.
  • the write is written to the partition. Stop traversing other partitions.
  • the size of the free space of the partition is insufficient to be written, a part of the first upgrade data is written, and the remaining unwritten first upgrade data traverses the subsequent partitions in turn according to the rule.
  • Writing the upgrade flag can be understood as: the set-top box writes the upgrade flag to the flash-specific partition when the first upgrade data is detected in the background.
  • the upgrade flag can have three functions: 1. The first upgrade data is detected by the identifier; 2. The upgrade type of the first upgrade data is identified, such as forced upgrade, manual upgrade, etc.; 3. The source type of the current upgrade data is identified, for example, OTA, Universal Serial Bus (USB), File Transfer Protocol (FTP), HyperText Transfer Protocol (HTTP), etc.
  • USB Universal Serial Bus
  • FTP File Transfer Protocol
  • HTTP HyperText Transfer Protocol
  • step 120 the upgrade is determined according to the upgrade flag, and the address information of the first upgrade data is read.
  • the set-top box usually includes a boot program boot and an upgrade program loader, wherein the boot is responsible for booting the set-top box and the loader is responsible for updating the system data (system upgrade).
  • the boot may determine whether to upgrade according to the upgrade flag. If the upgrade is determined, the loader is started, and the address information of the first upgrade data is read by the loader.
  • step 130 it is determined that the address information of the first upgrade data is legal, and the first upgrade data is read from the flash according to the address information of the first upgrade data, and the first upgrade data is collated, and the The first upgrade data is written to a specified address in a flash (flash) according to a specified rule.
  • the address of the first upgrade data is legal, that is, the address is correct, so as to avoid writing the wrong upgrade data and destroying the set top box.
  • the system data of the set-top box includes a lot of segments, each segment is stored in a different partition on the flash, each partition corresponds to a fixed physical address, and these physical addresses are designated addresses, which cannot be changed later.
  • the specified address may refer to a physical address of a fixed flash corresponding to a segment of system data to be upgraded.
  • the first upgrade data when the first upgrade data is packaged, the first upgrade data may be packaged into segments of different sizes (each segment may include multiple fragments), and in order to ensure that the first upgrade data is legal, a CRC operation is performed on each segment and The CRC value is written to the first upgrade data.
  • the system data of the set-top box is divided into multiple segments and distributed in different partitions on the flash.
  • Each segment can only be stored in a specified partition, and each partition corresponds to a fixed flash physical address.
  • Each segment that needs to be upgraded requires a full write during the upgrade, and the first upgrade data is packaged into multiple segments when the first upgrade data is packaged.
  • the address information, the CRC check information, and the like of the plurality of slice data of the same segment are removed, and a complete segment data is formed, and then written into the flash partition corresponding to the segment.
  • the specified rule may refer to a rule for writing upgrade data when each segment in the upgrade data (for example, the first upgrade data) is sequentially written into the specified address.
  • the first upgrade data received in the background is written to at least one partition free address in a specified format, and the address information of the first upgrade data is recorded, and the process of receiving the upgrade data is time-consuming.
  • the upgrade application is entered, and the received first upgrade data is directly read from the flash according to the recorded address information of the first upgrade data, and the flash is written according to the specified rule to complete the upgrade.
  • this embodiment provides another method for upgrading a set top box, which may include the following operations.
  • step 201 the real-time detection of the upgrade frequency point has the first upgrade data in the background, and the upgrade is detected.
  • the frequency has the first upgrade data.
  • the upgrade frequency can be a channel broadcast by the server, and the first upgrade data is transmitted to the set top box through the channel.
  • the first upgrade data may include a flag indicating whether the current upgrade is mandatory or non-mandatory, and according to the flag, it may be determined whether the upgrade is mandatory.
  • step 203 in the case where the determination result is YES, the first upgrade data of the background set top box is displayed.
  • step 204 if the result of the determination is no, the user is prompted whether to upgrade, and the first upgrade data of the top box in the background receiver after the upgrade is determined.
  • step 205 the first upgrade data is collated and written to the free address of at least one partition of the flash memory, and the address information of the first upgrade data is recorded, and the upgrade flag is written.
  • step 206 the upgrade is determined according to the upgrade flag, and the address information of the first upgrade data is read.
  • step 207 it is determined whether the address information of the first upgrade data is legal.
  • step 208 if the address information is legal, the first upgrade data is read from a flash memory according to the address information of the first upgrade data, and the first upgrade data is collated, and the first upgraded data is An upgrade data is written to a specified address in the flash (flash) according to a specified rule.
  • step 209 if the address information is not legal, the second upgrade data is received, the second upgrade data is sorted, and the sorted second upgrade data is written to a specified address in a flash (flash) according to a specified rule. .
  • the first upgrade data received in the background may be damaged or incomplete and cannot be used for upgrading.
  • the upgrade data that is, the second upgrade data, needs to be received in real time. Used for the next system upgrade.
  • first upgrade data and the second upgrade data herein may be the same, and the “first” and “second” are used only to distinguish whether the upgrade data is received in the background or the upgrade data received in real time during the upgrade.
  • step 210 the upgrade is complete and the set top box is restarted.
  • the address information of the first upgrade data is stored in a designated area in the flash,
  • the address information of the first upgrade data includes upgrade data, storage address, data length, and CRC check information.
  • the designated area may be a storage area (which may include multiple partitions) in the flash, and is used to store address information of the first upgrade data.
  • the multi-path hardware resource is used to enable the multi-path background thread to receive the first upgrade data, and the background real-time monitoring and upgrade frequency has the first upgrade data.
  • the data is upgraded in the background. Received, and sorted out, directly into the upgraded application, directly use the compiled data, without having to receive and organize the upgrade data from the beginning, shorten the upgrade time, reduce the user's impatient waiting for a long time upgrade, or do not understand the current process
  • the shutdown causes the data to be destroyed, which in turn causes the set-top box to be destroyed, which improves the user experience.
  • the embodiment provides a method for changing channels.
  • the method for changing channels is applied to a station change when upgrading using the upgrade method of the set top box described above, and may include the following operations.
  • step 301 a user's channel change command is received.
  • step 302 it is determined whether the resource is shared with the over-the-air (OTA) upgrade, and if the resource is not shared, step 309 is performed.
  • OTA over-the-air
  • step 303 if the resource is shared with the OTA upgrade, it is determined whether the upgrade data is being received, and if the upgrade data is not being received, step 309 is performed.
  • the upgrade data is the first upgrade data or the second upgrade data.
  • step 304 if the upgrade data is being received, it is determined whether the system resource is sufficient.
  • step 305 is performed; if the system resources are insufficient, step 306 is performed.
  • step 305 if the system resources are sufficient, the system resources are reallocated and replaced.
  • step 306 if the system resource is insufficient, the user is prompted to receive the upgrade data.
  • step 307 it is determined whether to terminate the upgrade and change the station. In the case of terminating the upgrade, step 309 is performed.
  • step 308 in the event that the upgrade continues, the channel change is terminated and the upgrade continues.
  • step 309 the station is directly switched.
  • the method can be applied in a visual terminal, such as a television set.
  • the set-top box receives data from the server and converts the received data into a TV-playable data so that the user can pass Watch the show on the TV.
  • the set-top box when the set-top box receives the user's channel-changing instruction, before executing the channel-changing instruction, it may first determine whether the channel-changing condition is met by the steps in 302-307. If yes, the set-top box executes the channel-changing instruction. .
  • this embodiment provides an upgrade system of a set top box, which may include the following modules.
  • the data receiving module 410 is configured to: in the background, the first upgrade data of the top box of the receiver, the first upgrade data is collated and written to a free address of at least one partition of the flash, and the first upgrade data is recorded The address information is written to the upgrade flag.
  • the address reading module 420 is configured to: after determining the upgrade according to the upgrade flag, read the address information of the first upgrade data.
  • the first upgrade module 430 is configured to: determine that the address information of the first upgrade data is legal, read the first upgrade data from the flash according to the address information of the first upgrade data, and organize the first upgrade data, The sorted first upgrade data is written to the specified address in the flash according to the specified rule.
  • the plurality of modules of the above upgrade system work together.
  • the data receiving module 410 writes the first upgrade data received in the background to the at least one partition free address in a specified format, and records the address information of the first upgrade data.
  • the user enters the upgrade application, and the address reading module 420 and the first upgrading module 430 can directly read the received first upgrade data from the flash according to the recorded address information of the first upgrade data, and according to the specified
  • the rules can be written to flash to complete the upgrade. This method is fast and efficient, saves the process of receiving upgrade data after entering the upgrade application, realizes rapid upgrade, reduces the occurrence of upgrade accidents, and improves the user experience.
  • this embodiment provides another upgrade system for a set top box, which may include the following modules.
  • the data receiving module 510 is configured to: in the background, the first upgrade data of the top box of the receiver, the first upgrade data is collated and written to the free address of at least one partition of the flash, and the address information of the first upgrade data is recorded. , write the upgrade flag.
  • the address reading module 520 is configured to: after determining the upgrade according to the upgrade flag, read the address information of the first upgrade data.
  • the first upgrade module 530 is configured to: determine that the address information of the first upgrade data is legal, read the first upgrade data from the flash according to the address information of the first upgrade data, and organize the first upgrade data, The sorted first upgrade data is written to the specified address in the flash according to the specified rule.
  • the second upgrade module 540 is configured to: after reading the address information of the first upgrade data, determining that the address information of the first upgrade data is invalid, receiving the second upgrade data, and arranging the second upgrade data, The sorted second upgrade data is written to the specified address in the flash according to the specified rule.
  • the data receiving module 410 or the data receiving module 510 is configured to: in the background, detect whether the upgrade frequency has the first upgrade data in real time, and when it is detected that the upgrade frequency has the first upgrade data, determine whether Forcibly upgrade, in the case that the judgment result is forced upgrade, the first upgrade data of the top box of the receiver in the background; if the judgment result is non-forced upgrade, the user is prompted whether to upgrade, and the first of the background set top box in the background is determined after the upgrade.
  • the data is upgraded; the first upgrade data is collated and written to the free address of each partition of the flash, and the address information of the first upgrade data is recorded, and the upgrade flag is written.
  • the address information of the first upgrade data is stored in a designated area in the flash, and the address information of the first upgrade data includes upgrade data, a storage address, a data length, and CRC check information.
  • Multiple modules of the above system work together to make full use of multiple hardware resources, open multiple background threads to receive upgrade data, and monitor the upgrade frequency in the background to see if there is upgrade flow function.
  • the background will be The upgrade data is received and sorted out. After entering the upgrade application, the data is directly used, without having to receive and organize the upgrade data from the beginning, which greatly shortens the upgrade time and reduces the user's inability to wait for a long time upgrade, or not. Knowing the current process and shutting down the data causes the data to be destroyed, which in turn leads to the possibility of the set-top box being destroyed, which improves the user experience.
  • the embodiment provides a channel changing system, which is applied to a channel change when upgrading using the upgrade system of the set top box described above, and may include the following modules.
  • the first determining module 610 is configured to: receive a channel change command from the user, determine whether to share the resource with the over-the-air (OTA) upgrade, and directly switch the channel if the result of the determination is that the resource is not shared.
  • OTA over-the-air
  • the second determining module 620 is configured to: determine whether the upgrade data is being received after the resource is shared with the OTA, and if the result of the determination is that the upgrade data is not being received, directly change the station.
  • the upgrade data is the first upgrade data or the second upgrade data.
  • the third determining module 630 is configured to: after determining that the upgrade data is being received, determine whether the system resource is sufficient, and if the result of the determination is that the system resource is sufficient, reallocate the system resource and switch the station.
  • the fourth judging module 640 is configured to: after determining that the system resource is insufficient, prompting the user to receive the upgrade data, determining whether to terminate the upgrade and changing the station, and in the case that the judgment result is to terminate the upgrade, terminating the upgrade and changing the station, determining As a result, if the upgrade is continued, the channel change will be terminated and the upgrade will continue.
  • the user changes the station, it detects whether the system of the set-top box is being upgraded. By detecting whether the shared resource and system resources of the OTA upgrade of the set-top box are enough to judge whether to change the station, it provides a more flexible. When the channel is changed, the shared resources and system resources are sufficient, the system upgrade and the channel change do not affect each other, and the user experience is improved.
  • This embodiment is directed to the current situation that the set-top box is upgraded slowly, resulting in imperfect or unintelligible operation of the user, which may lead to the failure of the set-top box upgrade.
  • a software and hardware resource is used to receive and organize the background without affecting the user operation. Upgrade the data and write it to the free flash. After entering the upgraded application, the data can be directly used. Instead of receiving and sorting the upgrade data from the beginning, the multiple times shorten the upgrade time and reduce the probability of the upgrade failure. Greatly improved the user experience and improved product competitiveness.
  • the embodiment further provides a computer readable storage medium storing computer executable instructions for executing the upgrade method of the set top box.
  • the embodiment further provides a computer readable storage medium storing computer executable instructions for executing the above switching method.
  • FIG. 7 is a schematic diagram showing the hardware structure of a set top box according to the present embodiment.
  • the set top box includes: one or more processors 710 and a memory 720.
  • One processor 710 is taken as an example in FIG.
  • the set top box may further include: an input device 730 and an output device 740.
  • the processor 710, the memory 720, the input device 730, and the output device 740 in the set top box may be connected by a bus or other means, and the bus connection is taken as an example in FIG.
  • Input device 730 can receive input numeric or character information
  • output device 740 can include a display device such as a display screen.
  • the memory 720 is a computer readable storage medium that can be used to store software programs, computer executable programs, and modules.
  • the processor 710 runs the software program, instructions stored in the memory 720 And a module to perform a plurality of functional applications and data processing to implement any of the above embodiments.
  • the memory 720 may include a storage program area and an storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to use of the set top box, and the like.
  • the memory may include volatile memory such as random access memory (RAM), and may also include non-volatile memory such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device.
  • Memory 720 can be a non-transitory computer storage medium or a transitory computer storage medium.
  • the non-transitory computer storage medium such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device.
  • memory 720 can optionally include memory remotely located relative to processor 710, which can be connected to the set top box via a network. Examples of the above networks may include the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
  • Input device 730 can be used to receive input digital or character information and to generate key signal inputs related to user settings and function control of the set top box.
  • the output device 740 can include a display device such as a display screen.
  • the set top box of this embodiment may also include a communication device 750 for transmitting and/or receiving information over a communication network.
  • a person skilled in the art can understand that all or part of the process of implementing the above embodiment method can be completed by executing related hardware by a computer program, and the program can be stored in a non-transitory computer readable storage medium.
  • the program when executed, may include the flow of an embodiment of the method as described above, wherein the non-transitory computer readable storage medium may be a magnetic disk, an optical disk, a read only memory (ROM), or a random access memory (RAM). Wait.
  • the present disclosure provides a method for upgrading, changing, and changing a set top box.
  • the upgrade method is fast and efficient, and the process of receiving upgrade data is not required after entering the upgrade application, thereby achieving rapid upgrade, reducing an upgrade accident, and improving the user.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Stored Programmes (AREA)

Abstract

一种机顶盒的升级、换台方法及系统。其中机顶盒的升级方法包括在后台接收机顶盒的第一升级数据,将所述第一升级数据整理后写入到flash的至少一个分区的空闲地址,并记录所述第一升级数据的地址信息,写入升级标志;根据所述升级标志确定升级,读取所述第一升级数据的地址信息;确定所述第一升级数据的地址信息合法,根据所述第一升级数据的地址信息从flash读取所述第一升级数据,整理所述第一升级数据,将整理后的第一升级数据按照指定规则写入到flash中的指定地址。

Description

机顶盒的升级、换台方法及系统 技术领域
本公开涉及数字电视领域,例如涉及一种机顶盒的升级、换台方法及系统。
背景技术
数字电视机顶盒已经经历十几年的发展,在数字化大潮促进下,数字机顶盒市场需求量大。中国拥有庞大的机顶盒生产能力,2010年仅中国数字机顶盒生产规模就达到8236万台,2011年达到9810万台。2013-2015年3年间,数字电视机顶盒为机顶盒创造约2.5亿台的市场需求。2015年底我国有85%的有线电视用户转换为数字电视用户,伴随着我国城镇化率的提高,机顶盒市场还将延伸。
机顶盒融合了计算机、通信、多媒体、网络及智能卡等多种技术,其功能越来越强大和智能化,作为家庭信息处理中心,智能机顶盒具备与家庭信息相关的功能,且容易实现功能扩展。机顶盒的功能可以有:高速互联网(Internet)访问、接收数字电视节目、视频点播(Video-On-Demand,VOD)、音频点播(Audio-on-Demand,AOD)、电子游戏、互联网协议(Internet Protocol,lP)电话、可视电话和会议电视、远程教育、远程医疗、多屏互动等。
空中下载(Over-The-Air,OTA)指用户终端可以直接通过信号通道的接收下载方式,在用户终端上进行安装和更新软件,也叫作空中升级。数字机顶盒空中升级技术能够在不改变机顶盒硬件结构的情况下,升级软件系统,排除软件错误以及加入新的特性。为了维护运营商和用户的利益,可以在机顶盒中增加空中升级功能。一方面运营商可以不断通过空中升级推广增值业务,另一方面机顶盒开发者可以通过空中升级修复机顶盒软件中存在的问题,用户还可以通过升级体验更多的服务。
数字机顶盒软硬件技术在中国并没有完善的标准,OTA也没有统一的标准,造成了机顶盒升级过程可能会出现很多问题,比如升级慢就成为OTA升级瓶颈,当停电、或者无耐心/不知情的用户在“漫长的”升级过程中关机等原因导致终止机顶盒升级时,很可能导致机顶盒软件被破坏而无法再次开机,大面积出现这类状况时则会导致升级事故,而解决这类事故需要花费大量的人力、财力。
发明内容
本公开提供一种机顶盒的升级、换台方法及系统,可以解决机顶盒升级慢,用户使用体验不佳,以及升级事故的问题。
一方面,本实施例提供一种机顶盒的升级方法,可以包括:
在后台接收机顶盒的第一升级数据,将所述第一升级数据整理后写入到闪存flash的至少一个分区的空闲地址,并记录所述第一升级数据的地址信息,写入升级标志;
根据所述升级标志确定升级后,读取所述第一升级数据的地址信息;
确定所述第一升级数据的地址信息合法,根据所述第一升级数据的地址信息从flash读取所述第一升级数据,整理所述第一升级数据,将整理后的第一升级数据按照指定规则写入到flash中的指定地址。
可选地,所述读取所述第一升级数据的地址信息之后,还可以包括:
确定所述第一升级数据的地址信息不合法,接收第二升级数据,整理所述第二升级数据,将整理后的第二升级数据按照指定规则写入到flash中的指定地址。
可选地,所述在后台接收机顶盒的第一升级数据,包括:
在后台实时检测升级频点是否有第一升级数据,当检测到升级频点有第一升级数据时,判断是否强制升级,在判断结果为是的情况下,在后台接收机顶盒的第一升级数据;在判断结果为否的情况下,提示用户是否升级,确定升级后在后台接收机顶盒的第一升级数据。
可选地,所述第一升级数据的地址信息存放于flash中指定区域,所述第一升级数据的地址信息包括升级数据、存放地址、数据长度及循环冗余校验(Cyclic Redundancy Check,CRC)信息。
第二方面,本实施例提供一种换台方法,所述换台方法应用于在使用上述机顶盒的升级方法进行升级时的换台。
可选地,该换台方法,包括:
接收到用户的换台指令,判断是否与OTA升级共用资源,在判断结果为不共用资源的情况下,直接换台;
在判断结果为共用资源的情况下,判断是否正在接收升级数据,在判断结 果为没有正在接收升级数据的情况下,直接换台,所述升级数据为第一升级数据或者第二升级数据;
在判断结果为正在接收升级数据的情况下,判断系统资源是否够用,在判断结果为系统资源够用的情况下,重新分配系统资源并换台;
在判断结果为系统资源不够用的情况下,提示用户正在接收升级数据,判断是否终止升级并换台,在判断结果为终止升级的情况下,终止升级并换台,在判断结果为继续升级的情况下,终止换台并继续升级。
第三方面,本实施例提供一种机顶盒的升级系统,包括:
数据接收模块,设置为:在后台接收机顶盒的第一升级数据,将所述第一升级数据整理后写入到flash的至少一个分区的空闲地址,并记录所述第一升级数据的地址信息,写入升级标志;
地址读取模块,设置为:根据所述升级标志确定升级后,读取所述第一升级数据的地址信息;
第一升级模块,设置为:确定所述第一升级数据的地址信息合法,根据所述第一升级数据的地址信息从flash读取所述第一升级数据,整理所述第一升级数据,将整理后的第一升级数据按照指定规则写入到flash中的指定地址。
可选地,上述的机顶盒的升级系统,还包括:
第二升级模块,设置为:读取所述第一升级数据的地址信息之后,确定所述第一升级数据的地址信息不合法,接收第二升级数据,整理所述第二升级数据,将整理后的第二升级数据按照指定规则写入到flash中的指定地址。
可选地,所述数据接收模块,是设置为:
在后台实时检测升级频点是否有第一升级数据,当检测到升级频点有第一升级数据时,判断是否强制升级,在判断结果为是的情况下,在后台接收机顶盒的第一升级数据;在判断结果为否的情况下,提示用户是否升级,确定升级后在后台接收机顶盒的第一升级数据;将所述第一升级数据整理后写入到闪存flash的至少一个分区的空闲地址,并记录所述第一升级数据的地址信息,写入升级标志。
第四方面,本实施例还提供一种换台系统,所述换台系统应用于在使用上述的机顶盒的升级系统进行升级时的换台,包括:
第一判断模块,设置为:接收到用户的换台指令,判断是否与OTA升级共用资源,在判断结果为不共用资源的情况下,直接换台;
第二判断模块,设置为:确定与OTA升级共用资源后,判断是否正在接收升级数据,在判断结果为没有正在接收升级数据的情况下,直接换台,所述升级数据为第一升级数据或者第二升级数据;
第三判断模块,设置为:确定正在接收升级数据后,判断系统资源是否够用,在判断结果为系统资源够用的情况下,重新分配系统资源并换台;
第四判断模块,设置为:确定系统资源不够用后,提示用户正在接收升级数据,判断是否终止升级并换台,在判断结果为终止升级的情况下,终止升级并换台,在判断结果为继续升级的情况下,终止换台并继续升级。
本实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述机顶盒的升级方法和换台方法。
本实施例还提供一种机顶盒,该机顶盒包括一个或多个处理器、存储器以及一个或多个程序,所述一个或多个程序存储在存储器中,当被一个或多个处理器执行时,执行上述方法。
本实施例还提供了一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述任意一种方法。
本实施例中,机顶盒运行时,将后台接收到的升级数据按指定格式写入到各分区空闲地址、并记录其分布地址等信息,接收完成后重启进入升级应用,此时可根据已记录的升级地址等信息直接从flash上读取已接收的升级数据、并按照指定规则写入flash即可完成升级。此种方式快速高效,省去进入升级应用后才开始接收升级数据等流程,实现了快速升级、减小了升级事故的发生,提高了用户的使用体验。
附图说明
为了更清楚地说明本实施例中的技术方案,下面将对本实施例描述中所需要使用的附图作简单的介绍。
图1是本实施例提供的一种机顶盒的升级方法的方法流程图;
图2是本实施例提供的另一种机顶盒的升级方法的方法流程图;
图3是本实施例提供的一种换台方法的方法流程图;
图4是本实施例提供的一种机顶盒的升级系统的结构方框图;
图5是本实施例提供的另一种机顶盒的升级系统的结构方框图;
图6是本实施例提供的一种换台系统的结构方框图;以及
图7是本实施例提供的一种机顶盒的硬件结构示意图。
具体实施方式
下面结合附图并通过实施方式来说明本实施例的技术方案。在不冲突的情况下,以下实施例和实施例中的特征可以相互组合。
本实施例中,“第一”,“第二”等词语(如果存在)用来表示名称,而并不表示任何特定的顺序。
参考图1,本实施例提供一种机顶盒的升级方法,可以包括如下操作。
在步骤110中,在后台接收机顶盒的第一升级数据,将所述第一升级数据整理后写入到闪存(flash)的至少一个分区的空闲地址,并记录所述第一升级数据的地址信息,写入升级标志。
在将第一升级数据整理后写入到flash时,可以从flash第一个分区开始遍历到最后一个分区,当发现当前分区的空闲空间大小等符合写入时,就写入到该分区中,停止遍历其他分区。当该分区空闲空间大小不够写入时,写入一部分第一升级数据,剩余未写入的第一升级数据再按此规则依次遍历后面的分区。
写入升级标志可理解为:机顶盒在后台检测到存在第一升级数据时将升级标志写到flash特定的分区中。升级标志可以有三个作用:1、标识已检测到第一升级数据;2、标识第一升级数据的升级类型,比如强制升级、手动升级等;3、标识当前升级数据的来源类型,比如来源于OTA、通用串行总线(Universal Serial Bus,USB)、文件传输协议(File Transfer Protocol,FTP)、超文本传输协议(HyperText Transfer Protocol,HTTP)等。
在步骤120中,根据所述升级标志确定升级,读取所述第一升级数据的地址信息。
机顶盒中通常包括有引导程序boot与升级程序loader,其中boot负责引导机顶盒启动、loader负责更新系统数据(系统升级)。本实施例中,可以是boot根据所述升级标志确定是否升级,如果确定升级,则启动loader、并由loader读取所述第一升级数据的地址信息。
在步骤130中,确定所述第一升级数据的地址信息合法,根据所述第一升级数据的地址信息从flash读取所述第一升级数据,整理所述第一升级数据,将整理后的第一升级数据按照指定规则写入到闪存(flash)中的指定地址。
第一升级数据的地址合法,即地址正确,以免写入错误的升级数据而破坏机顶盒。机顶盒的系统数据包括很多片段,每个片段存放于flash上不同的分区中,每个分区对应固定的物理地址,而这些物理地址是指定的地址,后期不能更改。指定地址可以是指当前要升级的系统数据的片段所对应的、固定不变的flash的物理地址。另外,在打包第一升级数据时可以将第一升级数据打包成不同大小的片段(每个片段可以包括多个分片),为保证第一升级数据合法,对每个片段作CRC运算并将CRC值写入到第一升级数据中。机顶盒的系统数据分成多个片段、分布在flash上不同的分区中,每个片段只能存放在指定的分区中,而每个分区对应固定的flash物理地址。在升级时每个需要升级的片段需要完整的写入,而打包第一升级数据时已将第一升级数据打包成多个片段。从flash读取第一升级数据时,将同一个片段的多个分片数据去掉地址信息、CRC校验信息等,拼成一段完整的片段数据,然后写到该片段所对应的flash分区中。指定规则可以是指将升级数据(例如第一升级数据)中的每个片段依次写入到指定地址中时,所采用的升级数据写入的规则。
本实施例中,在机顶盒运行时,将在后台接收到的第一升级数据按指定格式写入到至少一个分区空闲地址、并记录第一升级数据的地址信息,将耗时的接收升级数据过程放到后台进行,接收完成后,进入升级应用,可根据已记录的第一升级数据的地址信息直接从flash上读取已接收的第一升级数据、并按照指定规则写入flash,完成升级。此种方式快速高效,省去进入升级应用后才开始接收升级数据等流程,实现了快速升级、减小了升级事故的发生,提高了用户的使用体验。
参考图2,本实施例提供另一种机顶盒的升级方法,可以包括如下操作。
在步骤201中,在后台实时检测升级频点是否有第一升级数据,检测到升级 频点有第一升级数据时。
升级频点可以为服务器播发的一个通道,第一升级数据通过该通道传到机顶盒中。
在步骤202中,判断是否强制升级。第一升级数据中可以包括描述当前升级是强制还是非强制的标志,根据该标志即可判断是否强制升级。
在步骤203中,在判断结果为是的情况下,则后台接收机顶盒的第一升级数据。
在步骤204中,在判断结果为否的情况下,则提示用户是否升级,确定升级后在后台接收机顶盒的第一升级数据。
在步骤205中,将所述第一升级数据整理后写入到闪存(flash)的至少一个分区的空闲地址,并记录所述第一升级数据的地址信息,写入升级标志。
在步骤206中,根据所述升级标志确定升级,读取所述第一升级数据的地址信息。
在步骤207中,判断所述第一升级数据的地址信息是否合法。
在步骤208中,在地址信息合法的情况下,根据所述第一升级数据的地址信息从闪存(flash)读取所述第一升级数据,整理所述第一升级数据,将整理后的第一升级数据按照指定规则写入到闪存(flash)中的指定地址。
在步骤209中,在地址信息不合法的情况下,接收第二升级数据,整理所述第二升级数据,将整理后的第二升级数据按照指定规则写入到闪存(flash)中的指定地址。
可选地,在实施过程中,后台接收的第一升级数据可能被破坏或不完整而不能用于升级,此时若想进行升级就需要实时的接收升级数据,也就是第二升级数据,以用于接下来的系统升级。
需要说明的是,这里的第一升级数据和第二升级数据可以是相同的,用“第一”和“第二”表示只是为了区分是后台接收的升级数据还是升级时实时接收的升级数据。
在步骤210中,升级完成,重启机顶盒。
本实施例中,所述第一升级数据的地址信息存放于flash中指定区域,所述 第一升级数据的地址信息包括升级数据、存放地址、数据长度及CRC校验信息。其中,指定区域可以是指flash中的一块存储区域(可以包括多个分区),用于存放第一升级数据的地址信息。
本实施例中,利用多路硬件资源、开启多路后台线程接收第一升级数据,后台实时监控升级频点是否有第一升级数据,当检测到有第一升级数据时,在后台将升级数据接收下来、并整理好,进入升级应用后直接使用已整理好的数据,而无需再从头接收、整理升级数据,缩短了升级时间,减小了用户无耐心等待长时间升级、或不懂当前过程而关机导致数据被破坏、进而导致机顶盒被破坏的可能性,提高了用户体验好感度。
参考图3,本实施例提供一种换台方法,该换台方法应用于在使用上述的机顶盒的升级方法进行升级时的换台,可以包括如下操作。
在步骤301中,接收到用户的换台指令。
在步骤302中,判断是否与空中下载(OTA)升级共用资源,在不共用资源的情况下,执行步骤309。
在步骤303中,若与OTA升级共用资源,判断是否正在接收升级数据,在没有正在接收升级数据的情况下,执行步骤309。
本实施例中,所述升级数据为上述第一升级数据或第二升级数据。
在步骤304中,若正在接收升级数据,判断系统资源是否够用。
在系统资源够用的情况下,执行步骤305;系统资源不够用的情况下,执行步骤306。
在步骤305中,若系统资源够用,重新分配系统资源并换台。
在步骤306中,若系统资源不够用,提示用户正在接收升级数据。
在步骤307中,判断是否终止升级并换台,在终止升级的情况下,执行步骤309。
在步骤308中,在继续升级的情况下,终止换台并继续升级。
在步骤309中,直接换台。
可选地,该方法可以应用在可视终端中,例如电视机中。机顶盒从服务器中接收数据,并将接收到的数据转化为电视机可播放数据,使得用户可以通过 电视机观看节目。本实施例中,当机顶盒接收到用户的换台指令时,在执行该换台指令之前,可以先通过302-307中的步骤判定是否满足换台条件,如果满足,则机顶盒执行该换台指令。
本实施例中,用户换台的时候检测机顶盒的系统是否正在升级,通过检测是否与机顶盒的OTA升级共用资源及系统资源是否够用来判断是否换台,提供了一种更加灵活的换台方式,使得共用资源且系统资源够用时,系统升级和换台互不影响,提高了用户的使用体验好感度。
以下为本技术方案对应上述方法的系统的实施例,在以下系统的实施例中未详细描述的内容请参考上述方法的实施例。
参考图4,本实施例提供一种机顶盒的升级系统,可以包括如下模块。
数据接收模块410,设置为:在后台接收机顶盒的第一升级数据,将所述第一升级数据整理后写入到闪存(flash)的至少一个分区的空闲地址,并记录所述第一升级数据的地址信息,写入升级标志。
地址读取模块420,设置为:根据所述升级标志确定升级后,读取所述第一升级数据的地址信息。
第一升级模块430,设置为:确定所述第一升级数据的地址信息合法,根据所述第一升级数据的地址信息从flash读取所述第一升级数据,整理所述第一升级数据,将整理后的第一升级数据按照指定规则写入到flash中的指定地址。
以上升级系统的多个模块协同工作,在机顶盒运行时,数据接收模块410将后台接收到的第一升级数据按指定格式写入到至少一个分区空闲地址、并记录第一升级数据的地址信息,接收完成后重启进入升级应用,此时地址读取模块420及第一升级模块430可根据已记录的第一升级数据的地址信息直接从flash上读取已接收的第一升级数据、并按照指定规则写入flash即可完成升级。此种方式快速高效,省去进入升级应用后才开始接收升级数据等流程,实现了快速升级、减小了升级事故的发生,提高了用户的使用体验好感度。
参考图5,本实施例提供另一种机顶盒的升级系统,可以包括如下模块。
数据接收模块510,设置为:在后台接收机顶盒的第一升级数据,将所述第一升级数据整理后写入到flash的至少一个分区的空闲地址,并记录所述第一升级数据的地址信息,写入升级标志。
地址读取模块520,设置为:根据所述升级标志确定升级后,读取所述第一升级数据的地址信息。
第一升级模块530,设置为:确定所述第一升级数据的地址信息合法,根据所述第一升级数据的地址信息从flash读取所述第一升级数据,整理所述第一升级数据,将整理后的第一升级数据按照指定规则写入到flash中的指定地址。
第二升级模块540,设置为:读取所述第一升级数据的地址信息之后,确定所述第一升级数据的地址信息不合法,接收第二升级数据,整理所述第二升级数据,将整理后的第二升级数据按照指定规则写入到flash中的指定地址。
本实施例中,所述数据接收模块410或数据接收模块510,是设置为:在后台实时检测升级频点是否有第一升级数据,当检测到升级频点有第一升级数据时,判断是否强制升级,在判断结果为强制升级的情况下,在后台接收机顶盒的第一升级数据;在判断结果为非强制升级的情况下,则提示用户是否升级,确定升级后在后台接收机顶盒的第一升级数据;将所述第一升级数据整理后写入到flash各分区的空闲地址,并记录所述第一升级数据的地址信息,写入升级标志。
本实施例中,所述第一升级数据的地址信息存放于flash中指定区域,所述第一升级数据的地址信息包括升级数据、存放地址、数据长度及CRC校验信息。
以上系统的多个模块协同工作,充分利用多路硬件资源、开启多路后台线程接收升级数据,在后台实时监控升级频点是否有升级流的功能,当检测到有升级流的时候,后台将升级数据接收下来、并整理好,进入升级应用后直接使用已整理好的数据,而无需再从头接收、整理升级数据,大大缩短了升级时间,减小了用户无耐心等待长时间升级、或不懂当前过程而关机导致数据被破坏、进而导致机顶盒被破坏的可能性,提高了用户体验好感度。
参考图6,本实施例提供一种换台系统,该换台系统应用于在使用上述的机顶盒的升级系统进行升级时的换台,可以包括如下模块。
第一判断模块610,设置为:接收到用户的换台指令,判断是否与空中下载(OTA)升级共用资源,在判断结果为不共用资源的情况下,直接换台。
第二判断模块620,设置为:确定与OTA升级共用资源后,判断是否正在接收升级数据,在判断结果为没有正在接收升级数据的情况下,直接换台,所述 升级数据为第一升级数据或者第二升级数据。
第三判断模块630,设置为:确定正在接收升级数据后,判断系统资源是否够用,在判断结果为系统资源够用的情况下,重新分配系统资源并换台。
第四判断模块640,设置为:确定系统资源不够用后,提示用户正在接收升级数据,判断是否终止升级并换台,在判断结果为终止升级的情况下,则终止升级并换台,在判断结果为继续升级的情况下,则终止换台并继续升级。
以上系统的多个模块协同工作,用户换台的时候检测机顶盒的系统是否正在升级,通过检测是否与机顶盒的OTA升级共用资源及系统资源是否够用来判断是否换台,提供了一种更加灵活的换台方式,使得共用资源且系统资源够用时,系统升级和换台互不影响,提高了用户的使用体验好感度。
本实施例针对机顶盒升级慢,导致无耐心、或者不懂过程的用户误操作可能导致机顶盒升级失败的现状,提出了一种利用软硬件资源、在不影响用户操作的前提下,后台接收并整理升级数据、并写入空闲的flash中,进入升级应用后直接使用已整理好的数据,而不再需要从头接收、并整理升级数据,成倍数的缩短了升级时间,减少了升级故障出现的概率,极大的提升了用户体验好感度、提高了产品竞争力。
本实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述机顶盒的升级方法。
本实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述换台方法。
图7是根据本实施例的一种机顶盒的硬件结构示意图,如图7所示,该机顶盒包括:一个或多个处理器710和存储器720。图7中以一个处理器710为例。
所述机顶盒还可以包括:输入装置730和输出装置740。
所述机顶盒中的处理器710、存储器720、输入装置730和输出装置740可以通过总线或者其他方式连接,图8中以通过总线连接为例。
输入装置730可以接收输入的数字或字符信息,输出装置740可以包括显示屏等显示设备。
存储器720作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序以及模块。处理器710通过运行存储在存储器720中的软件程序、指令 以及模块,从而执行多种功能应用以及数据处理,以实现上述实施例中的任意一种方法。
存储器720可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据机顶盒的使用所创建的数据等。此外,存储器可以包括随机存取存储器(Random Access Memory,RAM)等易失性存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件或者其他非暂态固态存储器件。
存储器720可以是非暂态计算机存储介质或暂态计算机存储介质。该非暂态计算机存储介质,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器720可选包括相对于处理器710远程设置的存储器,这些远程存储器可以通过网络连接至机顶盒。上述网络的实例可以包括互联网、企业内部网、局域网、移动通信网及其组合。
输入装置730可用于接收输入的数字或字符信息,以及产生与机顶盒的用户设置以及功能控制有关的键信号输入。输出装置740可包括显示屏等显示设备。
本实施例的机顶盒还可以包括通信装置750,通过通信网络传输和/或接收信息。
本领域普通技术人员可理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来执行相关的硬件来完成的,该程序可存储于一个非暂态计算机可读存储介质中,该程序在执行时,可包括如上述方法的实施例的流程,其中,该非暂态计算机可读存储介质可以为磁碟、光盘、只读存储记忆体(ROM)或随机存储记忆体(RAM)等。
工业实用性
本公开提供了一种机顶盒的升级、换台方法及系统,升级方法快速高效,省去进入升级应用后才开始接收升级数据等流程,实现了快速升级、减小了升级事故发生,提高了用户的使用体验。

Claims (11)

  1. 一种机顶盒的升级方法,包括:
    在后台接收机顶盒的第一升级数据,将所述第一升级数据整理后写入到闪存flash的至少一个分区的空闲地址,并记录所述第一升级数据的地址信息,写入升级标志;
    根据所述升级标志确定升级后,读取所述第一升级数据的地址信息;以及
    确定所述第一升级数据的地址信息合法,根据所述第一升级数据的地址信息从flash读取所述第一升级数据,整理所述第一升级数据,将整理后的第一升级数据按照指定规则写入到flash中的指定地址。
  2. 根据权利要求1所述的方法,所述读取所述第一升级数据的地址信息之后,还包括:
    确定所述第一升级数据的地址信息不合法,接收第二升级数据,整理所述第二升级数据,将整理后的第二升级数据按照指定规则写入到flash中的指定地址。
  3. 根据权利要求1所述的方法,其中,所述在后台接收机顶盒的第一升级数据,包括:
    在后台实时检测升级频点是否有第一升级数据,当检测到升级频点有第一升级数据时,判断是否强制升级,在判断结果为是的情况下,在后台接收机顶盒的第一升级数据;在判断结果为否的情况下,提示用户是否升级,确定升级后,在后台接收机顶盒的第一升级数据。
  4. 根据权利要求1所述的方法,其中,所述第一升级数据的地址信息存放于flash中指定区域,所述第一升级数据的地址信息包括升级数据、存放地址、数据长度及循环冗余校验CRC信息。
  5. 一种换台方法,应用于在使用权利要求1-4任一项所述的机顶盒的升级方法进行升级时的换台,包括:
    接收到用户的换台指令,判断是否与空中下载OTA升级共用资源,在判断结果为不共用资源的情况下,直接换台;
    在判断结果为共用资源的情况下,判断机顶盒是否正在接收升级数据,在判断结果为机顶盒没有正在接收升级数据的情况下,直接换台,所述升级数据为第一升级数据或者第二升级数据;
    在判断结果为正在接收升级数据的情况下,判断系统资源是否够用,在判断结果为系统资源够用的情况下,重新分配系统资源并换台;
    在判断结果为系统资源不够用的情况下,提示用户机顶盒正在接收升级数据,判断是否终止机顶盒的升级并换台,在判断结果为终止机顶盒的升级的情况下,终止机顶盒的升级并换台,在判断结果为继续升级的情况下,终止换台并继续机顶盒的升级。
  6. 一种机顶盒的升级系统,包括:
    数据接收模块,设置为:在后台接收机顶盒的第一升级数据,将所述第一升级数据整理后写入到闪存flash的至少一个分区的空闲地址,并记录所述第一升级数据的地址信息,写入升级标志;
    地址读取模块,设置为:根据所述升级标志确定升级后,读取所述第一升级数据的地址信息;
    第一升级模块,设置为:确定所述第一升级数据的地址信息合法,根据所述第一升级数据的地址信息从flash读取所述第一升级数据,整理所述第一升级数据,将整理后的第一升级数据按照指定规则写入到flash中的指定地址。
  7. 根据权利要求6所述的系统,还包括:
    第二升级模块,设置为:读取所述第一升级数据的地址信息之后,确定所述第一升级数据的地址信息不合法,接收第二升级数据,整理所述第二升级数据,将整理后的第二升级数据按照指定规则写入到flash中的指定地址。
  8. 根据权利要求6所述的系统,其中所述数据接收模块,是设置为:
    在后台实时检测升级频点是否有第一升级数据,当检测到升级频点有第一升级数据时,判断是否强制升级,在判断结果为是的情况下,在后台接收机顶盒的第一升级数据;在判断结果为否的情况下,提示用户是否升级,确定升级后,在后台接收机顶盒的第一升级数据;将所述第一升级数据整理后写入到闪存flash的至少一个分区的空闲地址,并记录所述第一升级数据的地址信息,写入升级标志。
  9. 一种换台系统,应用于在使用权利要求7-9任一项所述的机顶盒的升级系统进行升级时的换台,包括:
    第一判断模块,设置为:接收到用户的换台指令,判断是否与OTA升级共用资源,在判断结果为不共用资源的情况下,直接换台;
    第二判断模块,设置为:确定与OTA升级共用资源后,判断是否正在接收升级数据,在判断结果为没有正在接收升级数据的情况下,直接换台,所述升级数据为第一升级数据或者第二升级数据;
    第三判断模块,设置为:用于确定正在接收升级数据后,判断系统资源是否够用,在判断结果为系统资源够用的情况下,重新分配系统资源并换台;
    第四判断模块,设置为:确定系统资源不够用后,提示用户正在接收升级数据,判断是否终止升级并换台,在判断结果为终止升级的情况下,终止升级并换台,在判断结果为继续升级的情况下,终止换台并继续升级。
  10. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1-4和权利要求5中任一项的方法。
  11. 一种机顶盒,包括一个或多个处理器、存储器以及一个或多个程序,所述一个或多个程序存储在所述存储器中,当被一个或多个处理器执行时,执行权利要求1-4和权利要求5中任一项的方法。
PCT/CN2017/087650 2016-06-21 2017-06-09 机顶盒的升级、换台方法及系统 WO2017219872A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610450968.3A CN106028153A (zh) 2016-06-21 2016-06-21 一种机顶盒的升级、换台方法及系统
CN201610450968.3 2016-06-21

Publications (1)

Publication Number Publication Date
WO2017219872A1 true WO2017219872A1 (zh) 2017-12-28

Family

ID=57085666

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/087650 WO2017219872A1 (zh) 2016-06-21 2017-06-09 机顶盒的升级、换台方法及系统

Country Status (2)

Country Link
CN (1) CN106028153A (zh)
WO (1) WO2017219872A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117634857A (zh) * 2024-01-26 2024-03-01 海看网络科技(山东)股份有限公司 一种基于用户行为分析的iptv故障检测方法、设备及介质

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106028153A (zh) * 2016-06-21 2016-10-12 深圳创维数字技术有限公司 一种机顶盒的升级、换台方法及系统
CN107071570A (zh) * 2017-02-13 2017-08-18 青岛海信宽带多媒体技术有限公司 一种机顶盒升级方法及装置
CN110677733A (zh) * 2019-09-06 2020-01-10 四川天邑康和通信股份有限公司 一种用于机顶盒的多种开机logo实现方法

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101207729A (zh) * 2007-12-17 2008-06-25 深圳市同洲电子股份有限公司 一种数字电视接收终端及其软件升级系统
KR20080082734A (ko) * 2007-03-09 2008-09-12 엘지전자 주식회사 디지털 방송 수신기에서의 모듈별 프로그램 업데이트제어방법
CN102082965A (zh) * 2010-10-15 2011-06-01 福建新大陆通信科技股份有限公司 一种保障机顶盒升级成功的方法
CN102427552A (zh) * 2011-09-26 2012-04-25 山东泰信电子有限公司 码流播发系统、码流播发方法及软件空中升级方法
CN103092634A (zh) * 2011-10-31 2013-05-08 四川长虹电器股份有限公司 一种多flash设备的机顶盒软件升级方法
CN106028153A (zh) * 2016-06-21 2016-10-12 深圳创维数字技术有限公司 一种机顶盒的升级、换台方法及系统

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8745685B2 (en) * 2008-04-04 2014-06-03 Time Warner Cable Enterprises Llc Methods and apparatus for upgrading set top box devices without the loss of stored content
CN105468383A (zh) * 2014-07-21 2016-04-06 上海庆科信息技术有限公司 一种数据升级方法及装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080082734A (ko) * 2007-03-09 2008-09-12 엘지전자 주식회사 디지털 방송 수신기에서의 모듈별 프로그램 업데이트제어방법
CN101207729A (zh) * 2007-12-17 2008-06-25 深圳市同洲电子股份有限公司 一种数字电视接收终端及其软件升级系统
CN102082965A (zh) * 2010-10-15 2011-06-01 福建新大陆通信科技股份有限公司 一种保障机顶盒升级成功的方法
CN102427552A (zh) * 2011-09-26 2012-04-25 山东泰信电子有限公司 码流播发系统、码流播发方法及软件空中升级方法
CN103092634A (zh) * 2011-10-31 2013-05-08 四川长虹电器股份有限公司 一种多flash设备的机顶盒软件升级方法
CN106028153A (zh) * 2016-06-21 2016-10-12 深圳创维数字技术有限公司 一种机顶盒的升级、换台方法及系统

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117634857A (zh) * 2024-01-26 2024-03-01 海看网络科技(山东)股份有限公司 一种基于用户行为分析的iptv故障检测方法、设备及介质
CN117634857B (zh) * 2024-01-26 2024-04-02 海看网络科技(山东)股份有限公司 一种基于用户行为分析的iptv故障检测方法、设备及介质

Also Published As

Publication number Publication date
CN106028153A (zh) 2016-10-12

Similar Documents

Publication Publication Date Title
US10552348B2 (en) USB device access method, apparatus and system, a terminal, and a server
WO2017219872A1 (zh) 机顶盒的升级、换台方法及系统
CN107832100B (zh) 一种apk插件的加载方法及其终端
US20190149872A1 (en) Information exchanging method and device, audio terminal and computer-readable storage medium
US12050836B2 (en) Screen transmission processing method, apparatus, and device
US20080052702A1 (en) Firmware update method and system utilizing digital broadcasting system
US20180007308A1 (en) Method for televison remote keypress response based on android operating system and televison thereof
CN104581397A (zh) 安卓机顶盒的系统升级方法及装置
CN107484011B (zh) 一种视频资源解码方法及装置
US11272012B2 (en) Action processing associated with a cloud device
CN110704202B (zh) 多媒体录制数据共享方法及终端设备
CN108388496A (zh) 一种系统日志的收集方法
CN112667426A (zh) 日志分析方法及装置
WO2024012003A9 (zh) 数据处理方法、装置、设备、存储介质和程序产品
US20190260945A1 (en) Video switching method, device and video patrol system
CN104410914A (zh) 播放多媒体内容的方法、装置以及终端
WO2020248873A1 (zh) 电视机频道预置方法、装置、计算机设备及可读存储介质
US20230259457A1 (en) Electronic apparatus and control method thereof
CN112738615A (zh) 一种节目获取的方法、装置、机顶盒以及前端服务器
CN110198481B (zh) 一种节目更新方法、装置、电子设备及存储介质
US10944587B2 (en) Event processing associated with a smart device
US20120303707A1 (en) Computer and method for remotely sharing operations of the computer with an electronic device
WO2019085347A1 (zh) 电视机系统软件的升级方法及装置
WO2018082643A1 (zh) 节目列表的显示方法及系统
CN110413800B (zh) 一种提供小说信息的方法与设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17814610

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17814610

Country of ref document: EP

Kind code of ref document: A1