CN107193593B - Upgrading method of upgradable file, set top box and storage medium - Google Patents

Upgrading method of upgradable file, set top box and storage medium Download PDF

Info

Publication number
CN107193593B
CN107193593B CN201710349152.6A CN201710349152A CN107193593B CN 107193593 B CN107193593 B CN 107193593B CN 201710349152 A CN201710349152 A CN 201710349152A CN 107193593 B CN107193593 B CN 107193593B
Authority
CN
China
Prior art keywords
file
partition
partitions
sub
upgraded
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201710349152.6A
Other languages
Chinese (zh)
Other versions
CN107193593A (en
Inventor
朱伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Skyworth Digital Technology Co Ltd
Original Assignee
Shenzhen Skyworth Digital Technology Co Ltd
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 Shenzhen Skyworth Digital Technology Co Ltd filed Critical Shenzhen Skyworth Digital Technology Co Ltd
Priority to CN201710349152.6A priority Critical patent/CN107193593B/en
Publication of CN107193593A publication Critical patent/CN107193593A/en
Priority to PCT/CN2017/118359 priority patent/WO2018209958A1/en
Application granted granted Critical
Publication of CN107193593B publication Critical patent/CN107193593B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • 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
    • H04N21/4432Powering on the client, e.g. bootstrap loading using setup parameters being stored locally or received from the server
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses an upgrading method of an upgradable file, a set top box and a storage medium. The method comprises the following steps: the method comprises the steps of obtaining and analyzing a scalable file package to obtain a file description header and at least one corresponding scalable file contained in the scalable file package, wherein partitions of a memory are divided into two standard partitions according to the data types of the scalable files, each standard partition comprises at least one sub-partition, each sub-partition is used for storing the corresponding scalable file, and the file description header is used for describing partition information corresponding to the at least one scalable file in the memory; analyzing the file description header to obtain partition information; and writing at least one upgradable file into the corresponding partition of the memory according to the partition information. By adopting the technical scheme, the limitation that one Loader can only be used for one Flash plan is changed, and the Loader with unified authentication is shared by a plurality of Flash plans to update the file.

Description

Upgrading method of upgradable file, set top box and storage medium
Technical Field
The embodiment of the invention relates to the field of digital television set-top boxes, in particular to an upgrading method of an upgradable file, a set-top box and a storage medium.
Background
With the rapid development of the global digital television industry, digital set-top boxes are spread over vast families, and become an important platform for people to know world, recognize things and enjoy entertainment consumption in daily life. Conditional Access (CA) systems have been developed for the protection of digital television content, and various Conditional Access schemes are widely adopted by set-top box operators in various countries around the world. Different CA manufacturers make corresponding standards for upgrading system functions and generate featured loaders (modules for completing software updating of digital television set-top boxes) in order to ensure the safety of respective conditional access systems. Meanwhile, the CA manufacturer can also force the Loader authentication.
CA conventional loaders mainly implement upgrading of partitions (i.e., partitions of Flash) of APP (Application), where factors determining one Loader mainly include: the main chip model, the CA type, the Flash memory (Flash memory) configuration, the DDR (double Data Rate, double Data synchronous dynamic random access memory) configuration, and the Flash planning, the first four factors are determined by hardware, and the Flash planning is different mainly for different projects.
In the prior art, because application software is upgraded according to Flash partitions, information such as the initial address, the size, whether verification is needed and the like of each partition cannot be modified during Loader authentication. After the authentication, the CA company signs the authentication file according to the information, which causes different Loader authentications to be required for different Flash plans, the reusability of the Loader is poor, and the investment of manpower and material resources for the authentication is increased.
Disclosure of Invention
In order to solve the related technical problems, the invention provides an upgrading method of an upgradable file, a set top box and a storage medium, which changes the limitation that one Loader can only be used for one Flash plan, and realizes that the Loader with unified authentication is shared by a plurality of Flash plans to upgrade the file.
In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:
in a first aspect, an embodiment of the present invention provides a method for upgrading an upgradable file, where the method includes:
acquiring and analyzing a scalable file package to obtain a file description header and at least one corresponding scalable file contained in the scalable file package, wherein partitions of a memory are divided into two standard partitions according to data types of the scalable files, each standard partition comprises at least one sub-partition, each sub-partition is used for storing the corresponding scalable file, and the file description header is used for describing partition information corresponding to the at least one scalable file in the memory;
analyzing the file description header to acquire the partition information;
and writing the at least one scalable file into a partition corresponding to the memory according to the partition information.
Further, the partition information includes: the total number and the total size of the sub-partitions to be upgraded, and the address and the size of each sub-partition to be upgraded in the corresponding standard partition.
Further, the memory further includes a hardware configuration file, and the hardware configuration file includes: the method comprises the steps that the total size of each standard partition, the total number of all sub-partitions to be upgraded and the address and the size of each sub-partition in the standard partition in a memory are determined, wherein a hardware configuration file is authenticated by a corresponding conditional access system manufacturer;
correspondingly, writing the at least one upgradable file into the partition corresponding to the memory according to the partition information includes:
judging whether the files of all the sub-partitions need to be upgraded or not according to the total number of all the sub-partitions to be upgraded in the configuration file and the total number of all the sub-partitions in the hardware configuration file;
if the files of all the sub-partitions need to be upgraded, acquiring the address of each sub-partition to be upgraded in the corresponding standard partition according to the partition information, and writing all the upgradable files into the sub-partitions in the corresponding standard partitions according to the addresses;
if the files of all the sub-partitions do not need to be upgraded, reading the files of the sub-partitions which do not need to be upgraded in the memory, calculating the total check value of the files of all the sub-partitions which need to be upgraded, acquiring the address of each sub-partition to be upgraded in the corresponding standard partition according to the partition information, and writing all the upgradable files into the sub-partitions in the corresponding standard partition according to the addresses.
Further, before the determining whether the files of all the child partitions need to be upgraded, the method further includes:
judging whether the total number of all sub-partitions to be upgraded in the hardware configuration file is matched with the sum of the total number of the sub-partitions to be upgraded in the current two standard partitions;
if not, replacing the information of the hardware configuration file with the information of the file description header so as to upgrade the hardware configuration file;
and if so, executing the operation of judging whether the files of all the sub-partitions need to be upgraded.
Further, the standard partition includes a partition requiring verification and a partition not requiring verification.
Further, the memory is a flash memory.
Further, the upgradeable file is a binary file.
In a second aspect, an embodiment of the present invention provides a set top box, where the set top box includes: the system comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the program to realize any one of the upgrading methods of the upgradeable files.
In a third aspect, embodiments of the present invention provide a storage medium containing computer-executable instructions that are executed by a computer processor to implement a method for upgrading a scalable file as described in any one of the above.
In the technical scheme of the embodiment of the invention, when upgrading the upgradable file in the set top box memory partition, the upgradable file package is obtained and analyzed to obtain the file description header and the corresponding at least one upgradable file contained in the upgradable file package, wherein the partition of the memory is divided into two standard partitions according to the data type of the upgradable file, each standard partition comprises at least one sub-partition, each sub-partition is used for storing the corresponding upgradable file, and the file description header is used for describing the partition information of the at least one upgradable file in the memory. Because the file storage mode provided by the prior art does not have a uniform standard, the upgradable file can be stored into the corresponding standard partition according to the data type of the upgradable file after the partition of the memory is divided into two standard partitions, and the check value of each standard partition can be uniformly calculated. When the CA company performs Loader authentication on the upgradable file package, compared with the mode of sequentially authenticating each partition to be upgraded provided by the prior art, the technical scheme of the embodiment of the invention can authenticate the standard partition as a whole. Meanwhile, research and development personnel do not need to calculate check values of the upgradable files in sequence, the check values of the standard partitions can be calculated as a whole, and in addition, the upgradable files can be flexibly configured in each standard partition according to different Flash plans. In the process of authentication of a CA company, whether the upgradable file package in the current Flash plan meets the hardware configuration standard of a Flash memory can be judged through a file description header. After one Loader authentication, if the other Flash plans do not exceed the hardware configuration standard of the Flash memory, Loader authentication is not required to be repeatedly performed on the upgrade files of the other Flash plans. The CA company can sign the upgradable file package by combining the information of the file description header and detecting that the upgradable file package does not affect the set-top box. Therefore, the partition of the memory is divided into two standard partitions, so that the reusability of the Loader can be improved, and the cost of manpower and material resources can be reduced. When the set-top box upgrades the upgradable file package, the file description header contained in the upgradable file package and the corresponding at least one upgradable file are obtained by acquiring and analyzing the upgradable file package. Acquiring the partition information by analyzing the file description header; and writing the at least one upgradable file into the partition corresponding to the memory according to the partition information, wherein the upgradable file replaces the file stored in the original memory partition, and the upgrading of the file is completed.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the contents of the embodiments of the present invention and the drawings without creative efforts.
Fig. 1 is a schematic flowchart of an upgrade method for an upgradable file according to an embodiment of the present invention;
fig. 2a is a schematic structural diagram of a Flash partition according to an embodiment of the present invention;
fig. 2b is a schematic structural diagram of classified Flash scalable areas according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating an upgrading method for upgradeable files according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a set top box according to a third embodiment of the present invention.
Detailed Description
In order to make the technical problems solved, technical solutions adopted and technical effects achieved by the present invention clearer, the technical solutions of the embodiments of the present invention will be described in further detail below with reference to the accompanying drawings, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Fig. 1 is a flowchart illustrating an upgrading method for an upgradable file according to an embodiment of the present invention. The method of the present embodiment may be performed by an upgrade apparatus for upgradeable files, wherein the apparatus may be implemented by software and/or hardware, and may be generally integrated in a digital television set-top box, and the method may be applied to upgrade files stored in a partition of a memory of the set-top box. As shown in fig. 1, the method may include the steps of:
s110: and acquiring and analyzing the upgradable file package to obtain a file description header contained in the upgradable file package and at least one corresponding upgradable file.
The partition of the memory can be divided into two standard partitions according to the data type of the scalable files, each standard partition comprises at least one sub-partition, each sub-partition is used for storing the corresponding scalable files, and the file description header is used for describing the partition information corresponding to the at least one scalable file in the memory.
Illustratively, standard partitions include check-needed partitions and check-not-needed partitions. The files stored in the verification partition are all files needing to be verified, and the files stored in the verification partition are not needed to be verified. The file related in the embodiment of the invention is preferably a binary file, and the memory is preferably Flash.
When the set-top box has BUG or needs function upgrade in the using process, the upgradable file can be upgraded through the Loader.
Before the file is upgraded, the set-top box and the upgradable file package thereof need to be sent to a CA company for authentication, if the authentication is passed, the signature of the CA company can be obtained, and then the upgrade of the upgradable file is completed, and before the CA company authenticates, the following preparation work needs to be completed:
and filling a file to be upgraded into a corresponding standard partition according to the data type of the file and the size of the current Flash plan, splicing the filled upgradable file with a file description header by using a splicing tool, and keeping other functional partitions (such as Loader or Verify data and the like) in the original Flash unchanged to form a upgradable file package. Illustratively, the partition information in the file description header includes: the total number and size of the sub-partitions to be upgraded, and the address and size of each sub-partition to be upgraded in the corresponding standard partition. Illustratively, other partitions in the original Flash include a hardware configuration file, where the hardware configuration file includes: the total size of each standard partition, the total number of all sub-partitions in the memory, the total number of all sub-partitions to be upgraded, and the address and the size of each sub-partition in the standard partition.
After the upgradeable file package is manufactured, the set-top box and the upgradeable file package thereof can be sent to a CA company for authentication. Illustratively, when the CA company performs Loader authentication on the current Flash plan, if it is determined that the upgradable file meets the standard of the hardware configuration file according to the file description header and the upgradable file does not affect the set-top box system, it indicates that the Loader of the current Flash plan passes this authentication and can obtain the signature granted by the CA company, and the set-top box can upgrade the filled upgradable file.
Specifically, fig. 2a is a schematic structural diagram of a Flash partition according to an embodiment of the present invention; fig. 2b is a schematic structural diagram of classified Flash scalable areas according to an embodiment of the present invention. As shown in fig. 2a, the area Module3-ModuleN represents an area where file upgrade can be performed, where the stored file may be a binary file that needs to be checked or a binary file that does not need to be checked, and the two types of files are arranged in a mixed manner. For the current Flash plan a, when Loader authentication is performed, information such as the address, the size, whether verification is needed, and the like of each partition in Module3-ModuleN cannot be modified, and therefore, each partition in Module3-ModuleN needs to be sequentially authenticated. As shown in FIG. 2b, after dividing the files in the Module3-ModuleN into check partition (Module _ check1) and check-free partition (Module _ No check2) according to the data types that need to be checked and need not be checked, the files in the original Module3-ModuleN classified according to the data types are stored in the sub-partitions such as Module _ sub1 and Module _ sub 2. After dividing the standard partition, a file description header needs to be spliced for each standard partition to describe information of each sub-partition. When performing Loader authentication, the CA company does not need to know the information of child partitions in each standard partition, and authenticates the two standard partitions, i.e., Module _ check1 or Module _ No check2, as a whole, for example, it is a file in the Module _ check1 area that needs to be upgraded by the current Flash plan a, and it is determined according to the file description header that the size (e.g., 10 megabytes) of the file to be upgraded does not exceed the total size (e.g., 20 megabytes) of the partition to be checked planned in the hardware configuration file (Hwconfig), and when detecting that the file to be upgraded does not affect the set-top box, Loader authentication can pass.
After the first Loader authentication is passed, the upgradable files stored in each sub-partition of each standard partition can be flexibly configured according to different Flash plans. For example, for Flash plan B, the number of files to be upgraded may change relative to Flash plan a. For example, an upgrade file N (2 mb in size) of a partition to be checked is newly added on the basis of Flash plan a, and therefore, the upgrade file N needs to be stored in an area corresponding to Module _ check 1. As the hardware configuration file in the last Flash plan A is authenticated by the CA company, and the upgrading file in the current Flash plan B does not need to be repeatedly authenticated, because the sum of the size (10 million) of the upgrading file in the Flash plan A and the size (2 million) of the upgrading file N in the Flash plan B does not exceed the total size (20 million) of the planned partition needing to be checked in the authenticated hardware configuration file, the file N to be upgraded in the current Flash plan B can be upgraded after the signature of the CA company is obtained. Therefore, before the upgradable file is upgraded by using the upgrading method of the upgradable file provided by the embodiment of the invention, the certification of the CA company does not need to be obtained for many times, and the certification cost is reduced.
After the preparation work is completed, when the set-top box receives a trigger instruction for file upgrade, the upgradeable file package may be sent to the set-top box in the form of USB or OTA (Over-the-Air Technology), etc. After receiving the upgradable file package, the set-top box immediately starts a data analysis process to obtain a file description header contained in the upgradable file package and at least one corresponding upgradable file.
Illustratively, after the set-top box parses the upgradable file package, if it is found that the file description header does not exist, the set-top box completes file upgrading according to a file upgrading process provided in the prior art.
S120: and analyzing the file description header to acquire partition information.
By analyzing the file description header, the total number of the sub-partitions to be upgraded and the address and the size of each sub-partition to be upgraded in the corresponding standard partition can be obtained. Thus, the last storage location of the scalable files filled in the scalable file package can be determined from the information described in the file header.
S130: and writing at least one upgradable file into the corresponding partition of the memory according to the partition information.
The file upgrading is to write the file to be upgraded into the corresponding storage area. Because the upgradable file package is filled with the files to be upgraded, after the set-top box receives a file upgrading instruction, the Loader is started, the original files of the storage partitions are erased according to the addresses of the sub-partitions to be upgraded in the corresponding standard partitions, and the filled upgradable files are written into the corresponding standard partitions, so that the upgrading of the upgradable files can be completed.
The embodiment of the invention provides an upgrading method of upgradable files, which is characterized in that when upgradable files in a set top box memory partition are upgraded, an upgradable file package is obtained and analyzed, and a file description header and at least one corresponding upgradable file contained in the upgradable file package are obtained, wherein the partition of the memory is divided into two standard partitions according to the data type of the upgradable files, each standard partition comprises at least one sub-partition, each sub-partition is used for storing the corresponding upgradable files, and the file description header is used for describing the partition information corresponding to the at least one upgradable file in the memory. Because the file storage mode provided by the prior art does not have a uniform standard, the partition of the memory is divided into two standard partitions, the upgradable file can be correspondingly stored into the standard partitions according to the data types of the upgradable file, and the check value of each standard partition can be uniformly calculated. When the CA company performs Loader authentication on the upgradable file package, compared with the mode of sequentially authenticating each partition to be upgraded provided by the prior art, the technical scheme of the embodiment of the invention can authenticate the standard partition as a whole. Meanwhile, research and development personnel do not need to calculate check values of the upgradable files in sequence, the check values of the standard partitions are calculated as a whole, and in addition, the upgradable files can be flexibly configured in each standard partition according to different Flash plans. In the process of authentication of a CA company, whether the upgradable file package in the current Flash plan meets the hardware configuration standard of a Flash memory can be judged through a file description header. After one Loader authentication, if other Flash plans do not exceed the hardware configuration standard of the Flash memory, the other Flash plans do not need repeated authentication. The CA company can sign the upgradable file package when detecting that the upgradable file package can not affect the set-top box by combining the information of the file description header. Therefore, the partition of the memory is divided into two standard partitions, so that the reusability of the Loader can be improved, and the cost of manpower and material resources can be reduced. When the set-top box upgrades the upgradable file package, the file description header contained in the upgradable file package and the corresponding at least one upgradable file are obtained by acquiring and analyzing the upgradable file package. Acquiring the partition information by analyzing the file description header; and writing the at least one upgradable file into the partition corresponding to the memory according to the partition information, wherein the upgradable file replaces the file stored in the original memory partition, and the upgrading of the file is completed.
Example two
Fig. 3 is a flowchart illustrating an upgrading method for an upgradable file according to a second embodiment of the present invention. In the second embodiment, on the basis of the first embodiment, the process of the step "writing at least one upgradable file into the partition corresponding to the memory according to the partition information" and the previous process are optimized, and referring to fig. 3, the second embodiment of the present invention specifically includes the following steps:
s210: and acquiring and analyzing the upgradable file package to obtain a file description header contained in the upgradable file package and at least one corresponding upgradable file.
S220: and analyzing the file description header to acquire partition information.
S230: judging whether the total number of all sub-partitions to be upgraded in the hardware configuration file is matched with the sum of the total number of the sub-partitions to be upgraded in the current two standard partitions, if so, executing the step S240; otherwise, step S250 is executed.
It should be noted that the files stored in each partition of Flash are not all files that need to be upgraded. If some partitions need to be upgraded, the upgradable files are filled into the corresponding standard partitions in the data packaging process. Since the file description header contains the total number of the sub-partitions to be upgraded, after the file description header is analyzed, if the sum of the total number of the sub-partitions to be upgraded in the two current standard partitions is the same as the total number of all the sub-partitions to be upgraded in the hardware configuration file (for example, the total number of the sub-partitions to be upgraded described in the description header of the partition to be verified is 3, the total number of the sub-partitions to be upgraded described in the description header of the partition not to be verified is 2, and the sum of the total number of the sub-partitions to be upgraded in the two standard partitions stored in the hardware configuration file is 5), it indicates that the hardware configuration file does not need to be upgraded; if the sum of the total number of the sub-partitions to be upgraded in the two current standard partitions is different from the total number of all the sub-partitions to be upgraded in the hardware configuration file, it can be shown here that a new file B to be upgraded is added on the basis of the number of files already upgraded in the previous Flash plan, and although the file description header contains information such as the address and the size of the new file B to be upgraded, the newly added information of the file B to be upgraded does not exist in the hardware configuration file at this time, so the hardware configuration file needs to be updated to add the information of the file B to be upgraded.
S240: judging whether the operation of upgrading the files of all the sub-partitions is needed or not according to the total number of all the sub-partitions to be upgraded in the configuration file and the total number of all the sub-partitions in the hardware configuration file, if so, executing the step S260; otherwise, step S270 is executed.
After the hardware configuration file is upgraded, the hardware configuration file contains the total number information of all the sub-partitions to be upgraded. By matching the information with the total number of all the sub-partitions, whether all the sub-partitions in the current Flash need to be upgraded can be judged.
S250: the information of the file description header is substituted for the information of the hardware configuration file to upgrade the hardware configuration file, and the step S240 is continuously performed.
S260: and acquiring the address of each sub-partition to be upgraded in the corresponding standard partition according to the partition information, and writing all the upgradable files into the sub-partitions in the corresponding standard partition according to the address.
S270: reading the files of the sub-partitions which do not need to be upgraded in the memory, calculating the total check value of the files of all the sub-partitions to be upgraded, and continuing to execute the step S260.
For example, if a file to be upgraded is newly added, after the hardware configuration file is upgraded, the check value originally stored in the Flash partition also needs to be updated correspondingly. After the updating of the check value is completed, the operation of writing the upgradable file in the address in the corresponding standard partition can be executed.
On the basis of the above embodiment, by updating the hardware configuration file, the set-top box can complete the upgrade of all currently upgradable files in the file upgrade process, so that the bug of the conditional access system is repaired, or the function of the conditional access system is further improved.
EXAMPLE III
Fig. 4 is a schematic structural diagram of a set top box according to a third embodiment of the present invention. As shown in fig. 4, the set-top box includes: a processor 70, a memory 71, an input device 72, and an output device 73; the number of processors 70 in the device/terminal/server may be one or more, and one processor 70 is taken as an example in fig. 4; the processor 70, the memory 71, the input device 72 and the output device 73 in the device/terminal/server may be connected by a bus or other means, which is exemplified in fig. 4.
The memory 71 serves as a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the upgrading method of the upgradeable file in the embodiment of the present invention (for example, the upgradeable file package parsing module, the partition information obtaining module, and the upgrading module in the upgrading device of the upgradeable file). The processor 70 executes various functional applications of the device/terminal/server and data processing by running software programs, instructions and modules stored in the memory 71, that is, implements the above-described upgrading method of the upgradeable file.
The memory 71 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 71 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 71 may further include memory located remotely from the processor 70, which may be connected to the device/terminal/server via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 72 may be used to receive entered numeric or character information and generate key signal inputs relating to user settings and function controls of the set-top box. The output device 73 may include a display device such as a display screen.
Example four
A fourth embodiment of the present invention further provides a storage medium containing computer-executable instructions, where the computer-executable instructions are executed by a computer processor to perform a method for upgrading a scalable file, and the method includes:
acquiring and analyzing a scalable file package to obtain a file description header and at least one corresponding scalable file contained in the scalable file package, wherein partitions of a memory are divided into two standard partitions according to data types of the scalable files, each standard partition comprises at least one sub-partition, each sub-partition is used for storing the corresponding scalable file, and the file description header is used for describing partition information corresponding to the at least one scalable file in the memory;
analyzing the file description header to acquire the partition information;
and writing the at least one scalable file into a partition corresponding to the memory according to the partition information.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the method operations described above, and may also perform related operations in the upgrade method for upgradeable files provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (7)

1. A method for upgrading a scalable file for upgrading a file stored in a partition of a memory of a set-top box, the method comprising:
obtaining and analyzing a scalable file package to obtain a file description header and at least one corresponding scalable file contained in the scalable file package, wherein partitions of the memory are divided into two standard partitions according to data types of the scalable files, each standard partition includes at least one sub-partition, each sub-partition is used for storing the corresponding scalable file, the file description header is used for describing partition information corresponding to the at least one scalable file in the memory, and the partition information includes: the total number and the total size of the sub-partitions to be upgraded, and the address and the size of each sub-partition to be upgraded in the corresponding standard partition;
analyzing the file description header to acquire the partition information;
writing the at least one scalable file into a partition corresponding to the memory according to the partition information;
also included in the memory is a hardware configuration file comprising: the method comprises the steps that the total size of each standard partition, the total number of all sub-partitions to be upgraded and the address and the size of each sub-partition in the standard partition in a memory are determined, wherein a hardware configuration file is authenticated by a corresponding conditional access system manufacturer;
correspondingly, writing the at least one upgradable file into the partition corresponding to the memory according to the partition information includes:
judging whether the files of all the sub-partitions need to be upgraded or not according to the total number of all the sub-partitions to be upgraded in the configuration file and the total number of all the sub-partitions in the hardware configuration file;
if the files of all the sub-partitions need to be upgraded, acquiring the address of each sub-partition to be upgraded in the corresponding standard partition according to the partition information, and writing all the upgradable files into the sub-partitions in the corresponding standard partitions according to the addresses;
if the files of all the sub-partitions do not need to be upgraded, reading the files of the sub-partitions which do not need to be upgraded in the memory, calculating the total check value of the files of all the sub-partitions which need to be upgraded, acquiring the address of each sub-partition to be upgraded in the corresponding standard partition according to the partition information, and writing all the upgradable files into the sub-partitions in the corresponding standard partition according to the addresses.
2. The method of claim 1, wherein prior to said determining whether the files of all child partitions need to be upgraded, the method further comprises:
judging whether the total number of all sub-partitions to be upgraded in the hardware configuration file is matched with the sum of the total number of the sub-partitions to be upgraded in the current two standard partitions;
if not, replacing the information of the hardware configuration file with the information of the file description header so as to upgrade the hardware configuration file;
and if so, executing the operation of judging whether the files of all the sub-partitions need to be upgraded.
3. The method of any of claims 1-2, wherein the standard partitions include check-needed partitions and check-not-needed partitions.
4. The method of claim 1, wherein:
the memory is a flash memory.
5. The method of claim 1, wherein:
the upgradeable file is a binary file.
6. A set-top box comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor, when executing the computer program, implements a method of upgrading an upgradeable file according to any of claims 1 to 5.
7. A storage medium containing computer-executable instructions which, when executed by a computer processor, implement a method of upgrading a upgradeable file according to any one of claims 1 to 5.
CN201710349152.6A 2017-05-17 2017-05-17 Upgrading method of upgradable file, set top box and storage medium Active CN107193593B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710349152.6A CN107193593B (en) 2017-05-17 2017-05-17 Upgrading method of upgradable file, set top box and storage medium
PCT/CN2017/118359 WO2018209958A1 (en) 2017-05-17 2017-12-25 Upgradable file upgrading method, set top box and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710349152.6A CN107193593B (en) 2017-05-17 2017-05-17 Upgrading method of upgradable file, set top box and storage medium

Publications (2)

Publication Number Publication Date
CN107193593A CN107193593A (en) 2017-09-22
CN107193593B true CN107193593B (en) 2020-08-21

Family

ID=59873930

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710349152.6A Active CN107193593B (en) 2017-05-17 2017-05-17 Upgrading method of upgradable file, set top box and storage medium

Country Status (2)

Country Link
CN (1) CN107193593B (en)
WO (1) WO2018209958A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107193593B (en) * 2017-05-17 2020-08-21 深圳创维数字技术有限公司 Upgrading method of upgradable file, set top box and storage medium
CN108121556B (en) * 2017-12-26 2022-01-04 深圳Tcl新技术有限公司 eMMC compatible upgrading method, intelligent terminal and readable storage medium
CN108304206A (en) * 2018-02-11 2018-07-20 广东美的厨房电器制造有限公司 Upgrade method, device, computer equipment, program product and storage medium
CN109947450B (en) * 2019-03-19 2023-03-17 深圳创维-Rgb电子有限公司 System file upgrading method and device, mobile terminal and readable storage medium
CN110347412B (en) * 2019-06-27 2023-05-30 中国第一汽车股份有限公司 Electronic control unit firmware upgrade management method, device, equipment and storage medium
CN112752154A (en) * 2019-10-29 2021-05-04 青岛海尔多媒体有限公司 Software upgrading method and device and smart television
CN113225729B (en) * 2020-01-21 2022-07-12 荣耀终端有限公司 OTA (over the air) upgrading method and device and readable storage medium
CN113805956B (en) * 2021-06-15 2022-11-11 荣耀终端有限公司 Configuration method and device of operating system and storage medium
CN113434178B (en) * 2021-07-08 2023-11-14 恒安嘉新(北京)科技股份公司 Programmable multiphase power supply online upgrading method, device, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102419713A (en) * 2011-12-31 2012-04-18 四川长虹电器股份有限公司 Method for upgrading software of nandflash-based set-top box
CN102622250A (en) * 2012-03-07 2012-08-01 四川长虹电器股份有限公司 Software upgrading method for set top box supporting multi-flash equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101520734A (en) * 2008-12-17 2009-09-02 康佳集团股份有限公司 Method for upgrading data in flash memory, network TV and interactive set-top box thereof
CN102662700B (en) * 2012-03-28 2016-02-03 广东欧珀移动通信有限公司 A kind of issue of embedded software version and upgrade method
CN104750527A (en) * 2015-03-27 2015-07-01 广州快飞计算机科技有限公司 Embedded system upgrading method and system
CN105446772B (en) * 2015-11-16 2019-01-04 青岛海信移动通信技术股份有限公司 A kind of method and apparatus of system upgrade
CN106572372B (en) * 2016-11-14 2021-06-04 青岛海信宽带多媒体技术有限公司 Set top box upgrading method and set top box
CN107193593B (en) * 2017-05-17 2020-08-21 深圳创维数字技术有限公司 Upgrading method of upgradable file, set top box and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102419713A (en) * 2011-12-31 2012-04-18 四川长虹电器股份有限公司 Method for upgrading software of nandflash-based set-top box
CN102622250A (en) * 2012-03-07 2012-08-01 四川长虹电器股份有限公司 Software upgrading method for set top box supporting multi-flash equipment

Also Published As

Publication number Publication date
WO2018209958A1 (en) 2018-11-22
CN107193593A (en) 2017-09-22

Similar Documents

Publication Publication Date Title
CN107193593B (en) Upgrading method of upgradable file, set top box and storage medium
CN109062790B (en) Upgrading test method for Bluetooth firmware of vehicle-mounted terminal
CN109358882B (en) Method and device for upgrading firmware of television terminal
CN105045602B (en) Method and device for constructing Hadoop application development framework and electronic device
CN104991793A (en) Method, device and system used for application program subpackage
CN111263354B (en) OTA differential upgrading method and device
CN110597542A (en) Automatic OTA (over the air) software upgrading method and device and electronic equipment
US11216389B2 (en) Device with multiple roots of trust
CN109726134B (en) Interface test method and system
CN107402792B (en) Integration method, device, equipment and storage medium of application software installation package
CN106293849B (en) application updating method and terminal
CN113835713B (en) Source code packet downloading method, device, computer equipment and storage medium
CN113051163A (en) Unit testing method, unit testing device, electronic equipment and storage medium
CN108650507B (en) Terminal device testing method and device, terminal device and storage medium
CN108055585A (en) Data processing method, set top box upgrading method, terminal and set-top box
CN107203397B (en) Method and device for running mobile application
CN112860585A (en) Test script assertion generation method and device
CN110806935A (en) Application program construction method, device and system
CN111417927A (en) Resource authority processing method and device, storage medium and chip
CN110908882A (en) Performance analysis method and device of application program, terminal equipment and medium
CN114297088A (en) Method, device, equipment and medium for testing front end vue frame assembly
CN112543104A (en) Application program packaging method and device, electronic equipment and storage medium
CN113010195B (en) System upgrading method, storage medium and terminal equipment
CN114237654A (en) OTA (over the air) upgrading method and system
US9189633B2 (en) Download management method and device based on android browser

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant