WO2018209958A1 - Upgradable file upgrading method, set top box and storage medium - Google Patents

Upgradable file upgrading method, set top box and storage medium Download PDF

Info

Publication number
WO2018209958A1
WO2018209958A1 PCT/CN2017/118359 CN2017118359W WO2018209958A1 WO 2018209958 A1 WO2018209958 A1 WO 2018209958A1 CN 2017118359 W CN2017118359 W CN 2017118359W WO 2018209958 A1 WO2018209958 A1 WO 2018209958A1
Authority
WO
WIPO (PCT)
Prior art keywords
partition
file
sub
partitions
upgradeable
Prior art date
Application number
PCT/CN2017/118359
Other languages
French (fr)
Chinese (zh)
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 WO2018209958A1 publication Critical patent/WO2018209958A1/en

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

Definitions

  • the present disclosure relates to the field of digital television set top boxes, for example, to an upgrade method for upgradeable files, a set top box, and a storage medium.
  • CA Conditional Access
  • CA's conventional Loader is used to implement the upgrade of each partition of the application (Application, APP) (that is, each partition of the flash).
  • the factors that determine a Loader are: main chip model, CA type, flash memory (Flash Memory, Flash) configuration, double rate synchronous dynamic random access memory (Dual Data Rate, DDR) configuration and Flash planning, the first four factors are determined by hardware, and the different Loader projects mainly refer to different Flash plans.
  • the loader since the application is upgraded according to the flash flash partition, when the loader is authenticated, the start address, size, and whether or not the information needs to be verified for each partition cannot be modified. After the authentication, the CA manufacturer will also sign the authentication file according to the above information. This will result in different Loader authentication for different Flash plans. The loader's reusability is poor, and the loader certification is also increased. The input of material resources.
  • the present disclosure provides an upgrade method for an upgradeable file, a set-top box, and a storage medium.
  • the loader can be used only for one storage planning limitation, and the authenticated loader can be shared to multiple storage plans for upgrading files. Upgrade.
  • the present disclosure provides a method for upgrading an upgradeable file, the method comprising:
  • each standard partition includes at least one sub-partition
  • the partition information includes: the total number and total 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.
  • the memory further stores a hardware configuration file, where the hardware configuration file includes: a total size of each standard partition in the memory, a total number of all sub-partitions, and a total number of all sub-partitions to be upgraded, The address and size of each sub-partition in the standard partition, wherein the hardware configuration file has been authenticated by a corresponding conditional access system manufacturer;
  • step of writing the at least one upgradeable file to the corresponding sub-partition in the memory according to the partition information including:
  • the address of each sub-partition to be upgraded in the corresponding standard partition is obtained according to the partition information, and all upgradeable files are written to the corresponding standard partition according to the address.
  • the child partition In the child partition;
  • the files of all the sub-partitions need not be upgraded
  • the files of the sub-partitions that do not need to be upgraded in the memory are read out, and the total check value of the files of all the sub-partitions to be upgraded is calculated, and according to the partition information Obtain the address of each sub-partition to be upgraded in the corresponding standard partition, and write all upgradeable files to the sub-partitions in the corresponding standard partition according to the address.
  • the method further includes:
  • the information of the file description header is replaced with the information of the hardware configuration file to upgrade the hardware configuration file;
  • the two standard partitions include a check partition and a check partition.
  • the memory is a flash memory.
  • the upgradeable file is a binary file.
  • the present disclosure also provides a set top box including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the computer program to implement one of any of the foregoing Upgrade method for upgradeable files.
  • the present disclosure also provides a storage medium containing computer executable instructions that are executed by a computer processor to implement an upgrade method of any of the upgradeable files described above.
  • the present disclosure also 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 upgradeable file after the partition of the memory is divided into two standard partitions, the upgradeable file can be stored into the corresponding standard partition according to its data type, and the calibration can be uniformly calculated for each standard partition. Test value.
  • the standard partition is authenticated as a whole in the technical solution of the present disclosure. The number of certifications.
  • the R&D staff does not need to calculate the check value for the upgradeable file in turn, and the standard partition as a whole to calculate the check value.
  • the CA can sign the upgradeable package by combining the file description header information and detecting that the upgradeable package does not affect the set-top box. Therefore, by dividing the partition of the memory into two standard partitions, the reusability of the Loader can be improved, and the labor and material costs can be reduced.
  • FIG. 1 is a schematic flowchart of a method for upgrading an upgradeable file according to Embodiment 1;
  • FIG. 2a is a schematic structural diagram of a Flash partition provided in Embodiment 1;
  • FIG. 2b is a schematic structural diagram of a Flash upgradeable area according to Embodiment 1;
  • Embodiment 3 is a schematic flowchart of a method for upgrading an upgradeable file provided in Embodiment 2;
  • FIG. 4 is a schematic structural view of a set top box according to Embodiment 3.
  • FIG. 1 is a schematic flowchart of a method for upgrading an upgradeable file according to Embodiment 1.
  • the method of the present embodiment can be performed by an upgradeable device of an upgradeable file, wherein the device can generally be integrated in a digital television integrated machine or a set top box, the method can be applied to the upgrade of files stored in a partition of the memory.
  • the method may include the following steps:
  • Step 110 Acquire and parse the upgradeable file package, and obtain a file description header included in the upgradeable file package and corresponding at least one upgradeable file.
  • the partition of the memory can be divided into two standard partitions according to the data type of the upgradeable file.
  • Each standard partition may include at least one sub-partition, each sub-partition is configured to store a corresponding upgradeable file, and the file description header includes partition information, and the partition information is a sub-directory for guiding the at least one upgradeable file in the memory. The information stored in the partition.
  • the above two standard partitions may include a check partition and a check partition.
  • the files stored in the partition to be verified are files that need to be verified, and it is not necessary to verify that the non-verified files are stored in the partition.
  • the upgradeable file involved in this embodiment may be a binary file, and the memory may be a Flash.
  • the upgradeable file can be upgraded through the Loader.
  • the set-top box and its upgradeable file package need to be sent to the CA company for authentication. If the certificate is passed, the CA company's signature can be obtained, and then the upgradeable file can be upgraded. Before the CA company certification, Complete the following preparations:
  • the memory is used as the flash, and the upgradeable file to be upgraded is filled into the corresponding standard partition according to its own data type and the current flash plan size, and then the spliced tool is used to splicing the filled upgradeable file with the file description header.
  • other functional partitions in the original Flash such as Loader or Verify data and other partitions
  • 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.
  • other functional 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, and all sub-partitions to be upgraded. The total number, the address and size of each child partition in the standard partition.
  • the set-top box and its upgradeable package can be sent to CA for certification.
  • CA CA company performs Loader authentication on the current Flash plan
  • the file description header determines that the upgradeable file meets the standard of the hardware configuration file, and the upgradeable file does not affect the set-top box system, it indicates the current Flash plan.
  • Loader passes this certification and can get the signature from CA.
  • the set-top box can upgrade the populated upgradeable files.
  • FIG. 2 is a schematic structural diagram of a Flash partition according to Embodiment 1;
  • FIG. 2B is a schematic structural diagram of a Flash upgradeable area according to Embodiment 1;
  • the partition Module3-ModuleN ie, partition 3-partition N
  • the partition Module3-ModuleN represents an area where file upgrade is possible, and the stored file may be a binary file to be verified or a binary file that does not need to be verified. These two types of files are mixed.
  • the partition Module3-ModuleN ie, partition 3-partition N
  • the partition Module3-ModuleN represents an area where file upgrade is possible, and the stored file may be a binary file to be verified or a binary file that does not need to be verified.
  • Module_check1 the required check partition
  • Mode_No check2 the check partition
  • Module_sub1 That is, the sub-partition 1 and Module_sub2 (ie, sub-partition 2)
  • Module_subN ie, sub-partition N
  • other sub-partitions store files in the original Module3-ModuleN classified according to the data type.
  • a file description header is spliced for each standard partition to describe the information of each sub-partition.
  • CA When performing Loader authentication, CA does not need to know the sub-partition information in each standard partition, and the two standard partitions Module_check1 or Module_No check2 can be authenticated as a whole.
  • the current Flash plan A needs to upgrade the files in the Module_check1 partition, and the size of the file to be upgraded (for example, 10 megabytes) is determined according to the file description header, and does not exceed the total planned check partition in the hardware configuration file (Hwconfig).
  • the size of the device for example, 20 megabytes
  • the detection of the file to be upgraded will not affect the set-top box, the Loader authentication can pass.
  • the scalable files stored in each sub-partition of each standard partition can be flexibly configured according to different Flash plans.
  • the number of upgradeable files that need to be upgraded may change relative to Flash Plan A.
  • a new upgradeable file N (2 megabytes) to be verified is added, so the upgradeable file N needs to be stored in the partition corresponding to Module_check1.
  • the hardware configuration file has been certified by the CA company.
  • the upgradeable file package can be sent to the set-top box through USB or over-the-air technology (OTA).
  • OTA over-the-air technology
  • the upgrade of the upgradeable file is completed according to the file upgrade process provided in the related art.
  • Step 120 Parse the file description header to obtain partition information.
  • the last storage location of the upgradeable file populated in the upgradeable package in memory can be determined based on the information described in the header.
  • Step 130 Write at least one upgradeable file into a corresponding partition in the memory according to the partition information.
  • the file upgrade is to write the file to be upgraded to the corresponding storage area. Since the file to be upgraded is already filled in the upgradeable file package, when the set top box receives the file upgrade instruction, the loader is started, and the original partition is stored according to the address of each sub-partition to be upgraded in the corresponding standard partition.
  • the upgrade of the upgradeable file can be completed by having a file erase and writing the filled upgradeable file to the corresponding standard partition.
  • the embodiment provides an upgrade method for the upgradeable file.
  • the upgradeable file in the set-top box memory partition is upgraded, the upgradeable file package is obtained and parsed, and the file description header included in the upgradeable file package is obtained.
  • Corresponding at least one upgradeable file wherein the partition of the memory is divided into two standard partitions according to the data type of the upgradeable file, and each standard partition includes at least one sub-partition, and each sub-partition is used to store a corresponding one.
  • An upgrade file the file description header is used to describe corresponding partition information of the at least one upgradeable file in the memory.
  • the upgradeable file can be stored in the standard partition according to its data type, and each The standard partitions can calculate their check values uniformly.
  • the CA company performs the Loader authentication on the upgradeable file package
  • the technical solution of the present embodiment can authenticate the standard partition as a whole, in a manner that the related technologies provide the authentication for each partition to be upgraded.
  • the R&D personnel do not need to calculate the check value for the upgradeable file in turn, and calculate the check value by using the standard partition as a whole.
  • each standard partition it can be flexibly configured according to different Flash plans. a.
  • the file description header can determine whether the upgradeable file package in the current Flash plan conforms to the hardware configuration standard in the flash memory. After a Loader authentication, if other Flash plans meet the hardware configuration standards of the Flash memory, other Flash plans do not need to be re-authenticated.
  • CA can sign the upgradeable package by combining the information in the file description header to detect that the upgradeable package does not affect the set-top box. Therefore, by dividing the partition of the memory into two standard partitions, the reusability of the loader can be improved, and the human and material cost can also be reduced.
  • the file description header and the corresponding at least one upgradeable file included in the upgradeable file package are obtained by obtaining and parsing the upgradeable file package.
  • Obtaining the partition information by parsing the file description header and writing the at least one upgradeable file to a partition corresponding to the memory according to the partition information.
  • the upgradeable file replaces the original storage partition.
  • the file stored in the file completes the upgrade of the upgradeable file.
  • FIG. 3 is a schematic flowchart of a method for upgrading an upgradeable file provided in Embodiment 2.
  • the second embodiment optimizes the process of writing at least one upgradeable file into the corresponding sub-partition according to the partition information according to the partition information, and the previous process. Referring to FIG. 3, the implementation is performed.
  • Example 2 includes the following steps:
  • Step 210 Acquire and parse the upgradeable file package, and obtain a file description header included in the upgradeable file package and corresponding at least one upgradeable file.
  • Step 220 Parse the file description header to obtain partition information.
  • Step 230 Determine whether the total number of all sub-partitions to be upgraded in the hardware configuration file in the memory is equal to the sum of the total number of sub-partitions to be upgraded in the current two standard partitions. If they are equal, then Step 240 is performed; if not equal, step 250 is performed.
  • 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 upgradeable files are populated into the corresponding standard partitions during data packaging. Since the file description header contains the total number of sub-partitions to be upgraded, after parsing the file description header, if the sum of the total number of sub-partitions to be upgraded in the current two standard partitions and all the waiting in the hardware configuration file The total number of upgraded sub-partitions is the same (for example, the total number of sub-partitions to be upgraded described in the description header of the check partition is 3, and the sub-partitions to be upgrade described in the description header of the partition are not required to be verified.
  • the total number is 2, and the sum of the total number of sub-partitions to be upgraded in the two standard partitions stored in the hardware configuration file is 5), indicating that the hardware configuration file does not need to be upgraded. If the sum of the total number of sub-partitions to be upgraded in the current two standard partitions is different from the total number of all sub-partitions to be upgraded in the hardware configuration file, it may indicate that the upgrade has been completed in the previous Flash plan.
  • a new file B to be upgraded is added. Although the file description header contains information such as the address and size of the new file B to be upgraded, there is no new hardware configuration file at this time. The information of the file B to be upgraded is added. Therefore, the hardware configuration file needs to be updated to join the information of the file B to be upgraded.
  • Step 240 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, determine whether it is necessary to upgrade the files of all the sub-partitions, when the files of all the sub-partitions need to be upgraded. Then, step 260 is performed; when it is not necessary to upgrade the files of all the sub-partitions, step 270 is performed.
  • the hardware configuration file contains the total number of sub-partitions to be upgraded. By matching this information with the total number of all sub-partitions, it can be determined whether all sub-partitions in the current Flash need to be upgraded.
  • Step 250 Replace the information of the file description header with the information of the hardware configuration file to upgrade the hardware configuration file, and continue to step 240.
  • Step 260 Acquire an address of each sub-partition to be upgraded in the corresponding standard partition according to the partition information, and write all upgradeable files to the sub-partitions in the corresponding standard partition according to the address.
  • Step 270 Read out the file of the sub-partition that does not need to be upgraded in the memory, calculate the total check value of the files of all the sub-partitions to be upgraded, and continue to step 260.
  • the original stored check value in the Flash partition needs to be updated accordingly after the hardware configuration file is upgraded.
  • the check value update is completed, the operation of writing the upgradeable file in the address in the corresponding standard partition can be performed.
  • the set-top box can complete the upgrade of all current upgradeable files in the process of upgrading the upgradeable file, so that the conditional receiving system in the related art is implemented.
  • the bugs were patched and the functionality was improved.
  • 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 in FIG.
  • 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 the like, and the bus connection is taken as an example in FIG.
  • the memory 71 is used as a computer readable storage medium, and can be used for storing a software program, a computer executable program, and a module, such as a program instruction/module corresponding to the upgrade method of the upgradeable file in the embodiment of the present application (for example, an upgradeable file) Upgrade the upgradeable package parsing module, partition information acquisition module, and upgrade module).
  • the processor 70 executes various functional applications and data processing of the device/terminal/server by running software programs, instructions, and modules stored in the memory 71, that is, implementing the above-described upgrade method of the upgradeable file.
  • the memory 71 may include a storage program area and a 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 usage of the terminal, and the like. Further, the memory 71 may include a high speed random access memory, and may also include a nonvolatile memory such as at least one magnetic disk storage device, flash memory device, or other nonvolatile solid state storage device. In some examples, memory 71 may also include memory remotely located relative to 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.
  • Input device 72 can be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the set top box.
  • the output device 73 may include a display device such as a display screen.
  • Embodiment 4 also provides a storage medium containing computer executable instructions for performing an upgrade method of an upgradeable file when executed by a computer processor, the method comprising:
  • the storage medium containing the computer executable instructions provided by the embodiment of the present application is not limited to the method operation as described above, and may also perform the upgrade of the upgradeable file provided by any embodiment of the present application. Related operations in the method.
  • the embodiments of the present application can be implemented by using software and necessary general hardware, and can also be implemented by hardware, but in many cases, the former is better. Implementation. Based on such understanding, the technical solution of the embodiments of the present application may be embodied in the form of a software product in essence or in the form of a software product, which may be stored in a computer readable storage medium, such as a computer.
  • Floppy disk read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions to make a computer device (can be an individual)
  • ROM read-only memory
  • RAM random access memory
  • FLASH flash memory
  • hard disk or optical disk etc., including a number of instructions to make a computer device (can be an individual)
  • a computer, server, or network device, etc.) performs the methods described in each of the embodiments of the present application.
  • the upgrade method, the set top box and the storage medium of the upgradeable file provided by the disclosure can improve the reusability of the loader by dividing the partition of the memory into two standard partitions, and also reduce the labor and material cost.

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

An upgradable file upgrading method, a set top box and a storage medium. The method comprises: acquiring and parsing an upgradable file package to obtain a file description header and at least one corresponding upgradable file comprised in the upgradable file package, the file description header comprising partition information; parsing the file description header to obtain the partition information; and writing, according to the partition information, the at least one upgradable file into a partition corresponding to a memory, partitions of the memory being divided into two types of standard partitions according to the data types of upgradable files.

Description

可升级文件的升级方法、机顶盒和存储介质Upgrade method for upgradeable files, set-top boxes, and storage media 技术领域Technical field
本公开涉及数字电视机顶盒领域,例如涉及一种可升级文件的升级方法、机顶盒和存储介质。The present disclosure relates to the field of digital television set top boxes, for example, to an upgrade method for upgradeable files, a set top box, and a storage medium.
背景技术Background technique
随着全球化数字电视行业的迅猛发展,数字机顶盒已经遍及广大的家庭,成为人们在日常生活中用于了解世界、认知事物和娱乐消费的重要平台。基于对数字电视内容的保护,条件接收(Conditional Access,CA)系统应运而生,多种条件接收方案广泛地被机顶盒运营商们所采用。不同的CA厂家,为了保证自己的条件接收系统的安全,对其系统功能升级做了相应的规范,并产生了各具特色的升级模块Loader(用于完成数字电视机顶盒软件更新的模块)。同时CA厂家也会强制要求进行Loader认证。With the rapid development of the global digital TV industry, digital set-top boxes have spread throughout the family, becoming an important platform for people to understand the world, cognitive things and entertainment consumption in their daily lives. Based on the protection of digital TV content, the Conditional Access (CA) system emerges as the times require, and various conditional receiving schemes are widely adopted by set-top box operators. Different CA manufacturers, in order to ensure the security of their conditional access system, have made corresponding specifications for their system function upgrades, and have produced a variety of upgrade module Loader (a module for completing digital TV set-top box software update). At the same time, CA manufacturers will also require Loader certification.
CA常规的Loader用于实现对应用程序(Application,APP)每个分区(即闪存的每个分区)的升级,其中,决定一个Loader的因素有:主芯片型号、CA类型、闪存(Flash Memory,Flash)配置、双倍速率同步动态随机存储器(Dual Data Rate,DDR)配置以及Flash规划,前四个因素由硬件决定,Loader项目不同主要是指Flash规划不同。CA's conventional Loader is used to implement the upgrade of each partition of the application (Application, APP) (that is, each partition of the flash). Among them, the factors that determine a Loader are: main chip model, CA type, flash memory (Flash Memory, Flash) configuration, double rate synchronous dynamic random access memory (Dual Data Rate, DDR) configuration and Flash planning, the first four factors are determined by hardware, and the different Loader projects mainly refer to different Flash plans.
相关技术中,由于应用程序是按照闪存Flash分区来升级的,在进行Loader认证时,每个分区的起始地址、大小以及是否需要校验等信息已不能修改。在认证过后,CA厂家也将按上述信息来对认证文件签名,这将导致不同的Flash规划需要做不同的Loader认证,Loader的可复用性较差,同时也增加了进行Loader认证的人力和物力的投入。In the related art, since the application is upgraded according to the flash flash partition, when the loader is authenticated, the start address, size, and whether or not the information needs to be verified for each partition cannot be modified. After the authentication, the CA manufacturer will also sign the authentication file according to the above information. This will result in different Loader authentication for different Flash plans. The loader's reusability is poor, and the loader certification is also increased. The input of material resources.
发明内容Summary of the invention
本公开提供一种可升级文件的升级方法、机顶盒和存储介质,改变了一个Loader只能用于一种存储规划的限制,可以实现将认证后的Loader共享给多种存储规划来进行可升级文件的升级。The present disclosure provides an upgrade method for an upgradeable file, a set-top box, and a storage medium. The loader can be used only for one storage planning limitation, and the authenticated loader can be shared to multiple storage plans for upgrading files. Upgrade.
本公开提供一种可升级文件的升级方法,所述方法包括:The present disclosure provides a method for upgrading an upgradeable file, the method comprising:
获取并解析可升级文件包,得到所述可升级文件包中包含的文件描述头及 对应的至少一个可升级文件,其中,所述文件描述头包括分区信息;Obtaining and parsing the upgradeable file package, and obtaining a file description header and a corresponding at least one upgradeable file included in the upgradeable file package, where the file description header includes partition information;
解析所述文件描述头,获取所述分区信息;以及Parsing the file description header to obtain the partition information;
根据所述分区信息,将所述至少一个可升级文件写入到存储器中对应的分区中,其中所述存储器的分区按照所述至少一个可升级文件的数据类型划分为两种标准分区。And writing, according to the partition information, the at least one upgradeable file into a corresponding partition in the memory, wherein the partition of the memory is divided into two standard partitions according to a data type of the at least one upgradeable file.
可选地,每种标准分区包括至少一个子分区;Optionally, each standard partition includes at least one sub-partition;
所述分区信息包括:待升级的子分区的总个数和总大小、每个待升级的子分区在对应的标准分区中的地址和大小。The partition information includes: the total number and total 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.
可选地,所述存储器中还存储有硬件配置文件,所述硬件配置文件包括:存储器中每种标准分区的总大小、所有子分区的总个数、所有待升级的子分区总个数、每个子分区在所述标准分区中的地址和大小,其中,所述硬件配置文件已得到对应的条件接收系统厂商的认证;Optionally, the memory further stores a hardware configuration file, where the hardware configuration file includes: a total size of each standard partition in the memory, a total number of all sub-partitions, and a total number of all sub-partitions to be upgraded, The address and size of each sub-partition in the standard partition, wherein the hardware configuration file has been authenticated by a corresponding conditional access system manufacturer;
根据所述分区信息,将所述至少一个可升级文件写入到所述存储器中对应的子分区中的步骤,包括:And the step of writing the at least one upgradeable file to the corresponding sub-partition in the memory according to the partition information, including:
根据所述硬件配置文件中的所有待升级的子分区总个数以及所有子分区的总个数,判断是否需要升级所有子分区的文件;Determining whether it is necessary to upgrade files of all sub-partitions according to the total number of all sub-partitions to be upgraded and the total number of all sub-partitions in the hardware configuration file;
当需要升级所述所有子分区的文件时,则根据所述分区信息获取每个待升级的子分区在对应的标准分区中的地址,根据该地址将全部可升级文件写入到对应的标准分区中的子分区中;When the files of all the sub-partitions need to be upgraded, the address of each sub-partition to be upgraded in the corresponding standard partition is obtained according to the partition information, and all upgradeable files are written to the corresponding standard partition according to the address. In the child partition;
当不需要升级所述所有子分区的文件时,则读出所述存储器中不需要升级的子分区的文件,计算所有待升级的子分区的文件的总校验值,并根据所述分区信息获取每个待升级的子分区在对应的标准分区中的地址,根据该地址将全部可升级文件写入到对应的标准分区中的子分区中。When the files of all the sub-partitions need not be upgraded, the files of the sub-partitions that do not need to be upgraded in the memory are read out, and the total check value of the files of all the sub-partitions to be upgraded is calculated, and according to the partition information Obtain the address of each sub-partition to be upgraded in the corresponding standard partition, and write all upgradeable files to the sub-partitions in the corresponding standard partition according to the address.
可选地,在所述判断是否需要升级所有子分区的文件之前,所述方法还包括:Optionally, before the determining whether the files of all the sub-partitions need to be upgraded, the method further includes:
判断所述硬件配置文件中的所有待升级的子分区总个数是否与所述两种标准分区中待升级的子分区的总个数之和相等;Determining whether the total number of all sub-partitions to be upgraded in the hardware configuration file is equal to the sum of the total number of sub-partitions to be upgraded in the two standard partitions;
当个数不相等时,则将所述文件描述头的信息替换所述硬件配置文件的信息,以升级所述硬件配置文件;When the number is not equal, the information of the file description header is replaced with the information of the hardware configuration file to upgrade the hardware configuration file;
当个数相等时,则执行所述判断是否需要升级所有子分区的文件的操作。When the numbers are equal, the operation of determining whether it is necessary to upgrade the files of all the sub-partitions is performed.
可选地,所述两种标准分区包括需校验分区和不需校验分区。Optionally, the two standard partitions include a check partition and a check partition.
可选地:所述存储器为闪存。Optionally: the memory is a flash memory.
可选地:所述可升级文件为二进制文件。Optionally: the upgradeable file is a binary file.
本公开还提供一种机顶盒,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时实现上述任一所述的一种可升级文件的升级方法。The present disclosure also provides a set top box including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the computer program to implement one of any of the foregoing Upgrade method for upgradeable files.
本公开还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行以实现上述任一所述的一种可升级文件的升级方法。The present disclosure also provides a storage medium containing computer executable instructions that are executed by a computer processor to implement an upgrade method of any of the upgradeable files described above.
本公开还提供了一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述任意一种方法。The present disclosure also 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.
本公开提供的技术方案中,通过将所述存储器的分区划分为两种标准分区后,可将可升级文件按照其数据类型存储到对应的标准分区中,对每个标准分区可统一计算其校验值。后续在CA公司对可升级文件包进行Loader认证时,相对于相关技术提供的对每个待升级的分区依次进行认证的方式,本公开的技术方案中可将标准分区作为一个整体进行认证,减少了认证次数。同时,研发人员也无需对可升级的文件依次计算校验值,而将标准分区作为一个整体来计算其校验值即可。CA公司通过结合文件描述头的信息,且检测出可升级文件包不会对机顶盒造成影响时,可对可升级文件包进行签名。因此,通过将存储器的分区划分为两种标准分区,可提高Loader的复用性,同时也可减小人力和物力成本。In the technical solution provided by the disclosure, after the partition of the memory is divided into two standard partitions, the upgradeable file can be stored into the corresponding standard partition according to its data type, and the calibration can be uniformly calculated for each standard partition. Test value. In the following, when the CA company performs the Loader authentication on the upgradeable file package, the standard partition is authenticated as a whole in the technical solution of the present disclosure. The number of certifications. At the same time, the R&D staff does not need to calculate the check value for the upgradeable file in turn, and the standard partition as a whole to calculate the check value. The CA can sign the upgradeable package by combining the file description header information and detecting that the upgradeable package does not affect the set-top box. Therefore, by dividing the partition of the memory into two standard partitions, the reusability of the Loader can be improved, and the labor and material costs can be reduced.
附图说明DRAWINGS
图1为实施例一提供的一种可升级文件的升级方法的流程示意图;FIG. 1 is a schematic flowchart of a method for upgrading an upgradeable file according to Embodiment 1;
图2a为实施例一提供的一种Flash分区的结构示意图;2a is a schematic structural diagram of a Flash partition provided in Embodiment 1;
图2b为实施例一提供的一种将Flash可升级的区域分类后的结构示意图;2b is a schematic structural diagram of a Flash upgradeable area according to Embodiment 1;
图3为实施例二提供的一种可升级文件的升级方法的流程示意图;3 is a schematic flowchart of a method for upgrading an upgradeable file provided in Embodiment 2;
图4为实施例三提供的一种机顶盒的结构示意图。4 is a schematic structural view of a set top box according to Embodiment 3.
具体实施方式detailed description
实施例一Embodiment 1
图1为实施例一提供的一种可升级文件的升级方法的流程示意图。本实施例的方法可以由可升级文件的升级装置来执行,其中该装置一般可集成在数字电视一体机或机顶盒中,该方法可以应用于在存储器的分区中存储的文件的升级。如图1所示,该方法可以包括如下步骤:FIG. 1 is a schematic flowchart of a method for upgrading an upgradeable file according to Embodiment 1. The method of the present embodiment can be performed by an upgradeable device of an upgradeable file, wherein the device can generally be integrated in a digital television integrated machine or a set top box, the method can be applied to the upgrade of files stored in a partition of the memory. As shown in FIG. 1, the method may include the following steps:
步骤110:获取并解析可升级文件包,得到可升级文件包中包含的文件描述头及对应的至少一个可升级文件。Step 110: Acquire and parse the upgradeable file package, and obtain a file description header included in the upgradeable file package and corresponding at least one upgradeable file.
其中,存储器的分区按照可升级文件的数据类型可以划分为两种标准分区。每种标准分区可以包括至少一个子分区,每个子分区用于存储对应的可升级文件,文件描述头包括分区信息,所述分区信息为用于指引上述至少一个可升级文件在存储器中对应的子分区中存储的信息。The partition of the memory can be divided into two standard partitions according to the data type of the upgradeable file. Each standard partition may include at least one sub-partition, each sub-partition is configured to store a corresponding upgradeable file, and the file description header includes partition information, and the partition information is a sub-directory for guiding the at least one upgradeable file in the memory. The information stored in the partition.
示例性的,上述两种标准分区可以包括需校验分区和不需校验分区。在需校验分区中存储的文件都是需要校验的文件,不需校验分区中存储的是非校验文件。本实施例中所涉及到的可升级文件可选为二进制文件,存储器可选为Flash。Exemplarily, the above two standard partitions may include a check partition and a check partition. The files stored in the partition to be verified are files that need to be verified, and it is not necessary to verify that the non-verified files are stored in the partition. The upgradeable file involved in this embodiment may be a binary file, and the memory may be a Flash.
当机顶盒在使用的过程中出现BUG(漏洞)或者需要功能升级时,可通过Loader对可升级的文件进行升级。When the set-top box has a bug or a function upgrade during use, the upgradeable file can be upgraded through the Loader.
在进行文件升级之前,需要将机顶盒及其可升级文件包发送到CA公司去认证,如果认证通过,即可得到CA公司的签名,继而完成可升级文件的升级,而在CA公司认证之前,需完成如下准备工作:Before the file upgrade, the set-top box and its upgradeable file package need to be sent to the CA company for authentication. If the certificate is passed, the CA company's signature can be obtained, and then the upgradeable file can be upgraded. Before the CA company certification, Complete the following preparations:
以存储器为Flash进行举例,将待升级的可升级文件按照其自身的数据类型和当前Flash规划的大小填充到对应的标准分区中,然后利用拼接工具将填充好的可升级文件与文件描述头拼接,同时原有Flash中的其他功能性分区(例如Loader或验证数据Verify data等分区)保持不变,形成可升级文件包。示例性的,文件描述头中的分区信息包括:待升级的子分区的总个数和大小、每个待升级的子分区在对应的标准分区中的地址和大小。示例性的,原有Flash中的其他功能性分区中包括硬件配置文件,其中,硬件配置文件包括:每种标准分区的总大小、存储器中所有子分区的总个数、所有待升级的子分区总个数、 每个子分区在所述标准分区中的地址和大小。For example, the memory is used as the flash, and the upgradeable file to be upgraded is filled into the corresponding standard partition according to its own data type and the current flash plan size, and then the spliced tool is used to splicing the filled upgradeable file with the file description header. At the same time, other functional partitions in the original Flash (such as Loader or Verify data and other partitions) remain unchanged, forming an upgradeable package. Exemplarily, 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. Exemplarily, other functional 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, and all sub-partitions to be upgraded. The total number, the address and size of each child partition in the standard partition.
当可升级文件包制作完成后,将机顶盒及其可升级文件包则可发送到CA公司去认证。示例性的,CA公司对当前Flash规划进行Loader认证时,当根据文件描述头判断出可升级文件符合硬件配置文件的标准,且可升级文件不会对机顶盒系统造成影响时,表示当前Flash规划的Loader通过此次认证,且可得到CA公司授予的签名,机顶盒可对填充的可升级文件进行升级。After the upgradeable package is created, the set-top box and its upgradeable package can be sent to CA for certification. Exemplarily, when the CA company performs Loader authentication on the current Flash plan, when the file description header determines that the upgradeable file meets the standard of the hardware configuration file, and the upgradeable file does not affect the set-top box system, it indicates the current Flash plan. Loader passes this certification and can get the signature from CA. The set-top box can upgrade the populated upgradeable files.
图2a为实施例一提供的一种Flash分区的结构示意图;图2b为实施例一提供的一种将Flash可升级的区域分类后的结构示意图。如图2a所示,分区Module3-ModuleN(即,分区3-分区N)表示可以进行文件升级的区域,其中存储的文件可以是需要校验的二进制文件,也可以是不需要校验的二进制文件,这两类文件混合排布。对于当前Flash规划A,在进行Loader认证时,Module3-ModuleN中每个分区的地址和大小以及是否需要校验等信息已不能进行修改,因此,需要对Module3-ModuleN中的每个分区依次进行认证。如图2b所示,在将Module3-ModuleN中的文件按照需要校验和不需要校验的数据类型划分为需校验分区(Module_check1)和不需校验分区(Module_No check2)后,如Module_sub1(即子分区1)和Module_sub2(即子分区2)以及Module_subN(即子分区N)等子分区中存储的是按照数据类型分类后的原有Module3-ModuleN中的文件。在将标准分区划分之后,需为每种标准分区拼接一个文件描述头,用来描述每个子分区的信息。在进行Loader认证时,CA公司不需要了解每种标准分区中的子分区信息,将Module_check1或Module_No check2这两种标准分区分别作为一个整体来进行认证即可。例如当前Flash规划A需要升级的是Module_check1分区中的文件,且根据文件描述头判断出待升级的文件的大小(例如10兆)不超过硬件配置文件(Hwconfig)中规划的需校验分区的总大小(例如20兆),且检测出待升级的文件不会对机顶盒造成影响时,Loader认证即可通过。FIG. 2 is a schematic structural diagram of a Flash partition according to Embodiment 1; FIG. 2B is a schematic structural diagram of a Flash upgradeable area according to Embodiment 1; As shown in FIG. 2a, the partition Module3-ModuleN (ie, partition 3-partition N) represents an area where file upgrade is possible, and the stored file may be a binary file to be verified or a binary file that does not need to be verified. These two types of files are mixed. For the current Flash Plan A, when the Loader authentication is performed, the address and size of each partition in Module3-ModuleN and whether the information needs to be verified cannot be modified. Therefore, each partition in Module3-ModuleN needs to be authenticated in turn. . As shown in Figure 2b, after the files in Module3-ModuleN are classified into the required check partition (Module_check1) and the check partition (Module_No check2) according to the data type that needs to be checked and not verified, such as Module_sub1 ( That is, the sub-partition 1) and Module_sub2 (ie, sub-partition 2) and Module_subN (ie, sub-partition N) and other sub-partitions store files in the original Module3-ModuleN classified according to the data type. After the standard partition is divided, a file description header is spliced for each standard partition to describe the information of each sub-partition. When performing Loader authentication, CA does not need to know the sub-partition information in each standard partition, and the two standard partitions Module_check1 or Module_No check2 can be authenticated as a whole. For example, the current Flash plan A needs to upgrade the files in the Module_check1 partition, and the size of the file to be upgraded (for example, 10 megabytes) is determined according to the file description header, and does not exceed the total planned check partition in the hardware configuration file (Hwconfig). The size of the device (for example, 20 megabytes) and the detection of the file to be upgraded will not affect the set-top box, the Loader authentication can pass.
在第一次Loader认证通过后,对于在每种标准分区的每个子分区中存储的可升级文件,可以按照不同的Flash规划灵活地对其进行配置。示例性的,对于Flash规划B,需要升级的可升级文件个数相对于Flash规划A可能会发生变 化。例如,在Flash规划A的基础上新增加一个需校验分区的可升级文件N(大小为2兆),因此需要将可升级文件N存储在Module_check1对应的分区中。由于在上一个Flash规划A中,硬件配置文件已得到CA公司的认证,对于当前Flash规划B中的可升级文件,则不需要重复去认证,因为Flash规划A中待升级文件的大小(10兆)加上Flash规划B中可升级文件N的大小(2兆)之和不超过已得到认证的硬件配置文件中的规划的需校验分区的总大小(20兆),所以,对于当前Flash规划B中可升级的文件N,得到CA公司的签名后即可进行升级。因此,在利用本实施例所提供的可升级文件的升级方法对可升级文件进行升级前,不需要多次得到CA公司的认证,降低了CA公司认证的费用。After the first Loader authentication is passed, the scalable files stored in each sub-partition of each standard partition can be flexibly configured according to different Flash plans. Illustratively, for Flash Plan B, the number of upgradeable files that need to be upgraded may change relative to Flash Plan A. For example, on the basis of Flash Plan A, a new upgradeable file N (2 megabytes) to be verified is added, so the upgradeable file N needs to be stored in the partition corresponding to Module_check1. In the previous Flash Plan A, the hardware configuration file has been certified by the CA company. For the current upgradeable file in Flash Plan B, you do not need to repeat the authentication because the size of the file to be upgraded in Flash Plan A (10 trillion) ) plus the size of the upgradeable file N (2 megabytes) in Flash Plan B does not exceed the total size of the planned check partition (20 megabytes) in the certified hardware configuration file, so for the current Flash plan The upgradeable file N in B can be upgraded after being signed by the CA company. Therefore, before upgrading the upgradeable file by using the upgrade method of the upgradeable file provided in this embodiment, it is not necessary to obtain the certification of the CA company multiple times, and the cost of the CA company certification is reduced.
在前期准备工作完成后,当机顶盒接收到文件升级的触发指令时,可以将可升级文件包通过USB或者空中下载技术(Over-the-Air Technology,OTA)等形式发送到机顶盒中。机顶盒在接收到可升级文件包后,随即启动数据解析流程,得到可升级文件包中包含的文件描述头及对应的至少一个可升级文件。After the preparatory work is completed, when the set-top box receives the trigger command for file upgrade, the upgradeable file package can be sent to the set-top box through USB or over-the-air technology (OTA). After receiving the upgradeable file package, the set-top box starts the data parsing process, and obtains the file description header and the corresponding at least one upgradeable file included in the upgradeable file package.
示例性的,若机顶盒在解析可升级文件包后,发现并不存在文件描述头时,则按照相关技术中提供的文件升级流程完成可升级文件的升级。For example, if the set-top box finds that there is no file description header after parsing the upgradeable file package, the upgrade of the upgradeable file is completed according to the file upgrade process provided in the related art.
步骤120:解析文件描述头,获取分区信息。Step 120: Parse the file description header to obtain partition information.
通过解析文件描述头,可获取待升级的子分区的总个数大小、每个待升级的子分区在对应的标准分区中的地址和大小。因此,根据文件头中描述的信息可确定可升级文件包中填充的可升级文件在存储器中的最后的存储位置。By parsing the file description header, the total number of sub-partitions to be upgraded, and the address and size of each sub-partition to be upgraded in the corresponding standard partition can be obtained. Therefore, the last storage location of the upgradeable file populated in the upgradeable package in memory can be determined based on the information described in the header.
步骤130:根据分区信息,将至少一个可升级文件写入到存储器中对应的分区中。Step 130: Write at least one upgradeable file into a corresponding partition in the memory according to the partition information.
其中,文件升级是将待升级的文件写入到对应的存储区域。由于在可升级文件包中已经填充有待升级的文件,因此,当机顶盒接收到文件升级指令后,启动Loader,根据每个待升级的子分区在对应的标准分区中的地址,将存储分区的原有文件擦除,并将填充的可升级文件写入对应的标准分区中,即可完成可升级文件的升级。The file upgrade is to write the file to be upgraded to the corresponding storage area. Since the file to be upgraded is already filled in the upgradeable file package, when the set top box receives the file upgrade instruction, the loader is started, and the original partition is stored according to the address of each sub-partition to be upgraded in the corresponding standard partition. The upgrade of the upgradeable file can be completed by having a file erase and writing the filled upgradeable file to the corresponding standard partition.
本实施例提供了一种可升级文件的升级方法,在对机顶盒存储器分区中的可升级文件进行升级时,获取并解析可升级文件包,得到所述可升级文件包中 包含的文件描述头及对应的至少一个可升级文件,其中,所述存储器的分区按照所述可升级文件的数据类型划分为两种标准分区,每种标准分区包括至少一个子分区,每个子分区用于存储对应的可升级文件,所述文件描述头用于描述所述至少一个可升级文件在所述存储器中对应的分区信息。由于相关技术所提供的文件存储方式并没有统一的标准,因此,通过将所述存储器的分区划分为两种标准分区后,可将可升级文件按照其数据类型对应的存储到标准分区中,每个标准分区可统一计算其校验值。在CA公司对可升级文件包进行Loader认证时,相对于相关技术提供的对每个待升级的分区依次进行认证的方式,本实施例的技术方案可将标准分区作为一个整体进行认证。同时,研发人员也无需对可升级的文件依次计算校验值,将标准分区作为一个整体来计算其校验值即可,此外,在每种标准分区中也可根据不同Flash规划灵活地配置可升级文件。在CA公司进行认证的过程中,通过文件描述头可以判断出当前Flash规划中的可升级文件包是否符合Flash存储器中的硬件配置标准。在经过一次Loader认证后,若其他Flash规划符合Flash存储器的硬件配置标准,则其他Flash规划无需重复认证。CA公司通过结合文件描述头的信息,检测出可升级文件包不会对机顶盒造成影响时,可对可升级文件包进行签名。因此,通过将存储器的分区划分为两种标准分区,可提高Loader的复用性,同时也可减小人力物力成本。机顶盒在对可升级文件包进行升级时,通过获取并解析可升级文件包,得到所述可升级文件包中包含的文件描述头及对应的至少一个可升级文件。通过解析所述文件描述头,获取所述分区信息并根据所述分区信息,将所述至少一个可升级文件写入到所述存储器对应的分区中,此时,可升级文件替代了原来存储器分区中存储的文件,完成了可升级文件的升级。The embodiment provides an upgrade method for the upgradeable file. When the upgradeable file in the set-top box memory partition is upgraded, the upgradeable file package is obtained and parsed, and the file description header included in the upgradeable file package is obtained. Corresponding at least one upgradeable file, wherein the partition of the memory is divided into two standard partitions according to the data type of the upgradeable file, and each standard partition includes at least one sub-partition, and each sub-partition is used to store a corresponding one. An upgrade file, the file description header is used to describe corresponding partition information of the at least one upgradeable file in the memory. Since the file storage method provided by the related art does not have a unified standard, after the partition of the memory is divided into two standard partitions, the upgradeable file can be stored in the standard partition according to its data type, and each The standard partitions can calculate their check values uniformly. When the CA company performs the Loader authentication on the upgradeable file package, the technical solution of the present embodiment can authenticate the standard partition as a whole, in a manner that the related technologies provide the authentication for each partition to be upgraded. At the same time, the R&D personnel do not need to calculate the check value for the upgradeable file in turn, and calculate the check value by using the standard partition as a whole. In addition, in each standard partition, it can be flexibly configured according to different Flash plans. a. In the process of CA company authentication, the file description header can determine whether the upgradeable file package in the current Flash plan conforms to the hardware configuration standard in the flash memory. After a Loader authentication, if other Flash plans meet the hardware configuration standards of the Flash memory, other Flash plans do not need to be re-authenticated. CA can sign the upgradeable package by combining the information in the file description header to detect that the upgradeable package does not affect the set-top box. Therefore, by dividing the partition of the memory into two standard partitions, the reusability of the loader can be improved, and the human and material cost can also be reduced. When the set-top box upgrades the upgradeable file package, the file description header and the corresponding at least one upgradeable file included in the upgradeable file package are obtained by obtaining and parsing the upgradeable file package. Obtaining the partition information by parsing the file description header and writing the at least one upgradeable file to a partition corresponding to the memory according to the partition information. At this time, the upgradeable file replaces the original storage partition. The file stored in the file completes the upgrade of the upgradeable file.
实施例二Embodiment 2
图3为实施例二提供的一种可升级文件的升级方法的流程示意图。本实施例二在实施例一的基础上,对步骤“根据分区信息,将至少一个可升级文件写入到存储器中对应的子分区中”及其之前的过程进行了优化,参照图3,实施例二包括如下步骤:FIG. 3 is a schematic flowchart of a method for upgrading an upgradeable file provided in Embodiment 2. On the basis of the first embodiment, the second embodiment optimizes the process of writing at least one upgradeable file into the corresponding sub-partition according to the partition information according to the partition information, and the previous process. Referring to FIG. 3, the implementation is performed. Example 2 includes the following steps:
步骤210:获取并解析可升级文件包,得到可升级文件包中包含的文件描述头及对应的至少一个可升级文件。Step 210: Acquire and parse the upgradeable file package, and obtain a file description header included in the upgradeable file package and corresponding at least one upgradeable file.
步骤220:解析文件描述头,获取分区信息。Step 220: Parse the file description header to obtain partition information.
步骤230:判断存储器中的硬件配置文件中的所有待升级的子分区的总个数是否与当前两种标准分区中待升级的子分区的总个数之和相等,在相等的情况下,则执行步骤240;在不相等的情况下,执行步骤250。Step 230: Determine whether the total number of all sub-partitions to be upgraded in the hardware configuration file in the memory is equal to the sum of the total number of sub-partitions to be upgraded in the current two standard partitions. If they are equal, then Step 240 is performed; if not equal, step 250 is performed.
Flash的每个分区中存储的文件并非都是需要升级的文件。若某些分区需要进行文件升级,则在数据打包的过程中,将可升级文件填充到对应的标准分区中。由于文件描述头中包含待升级的子分区的总个数,因此,在解析文件描述头后,如果当前两种标准分区中待升级的子分区的总个数之和与硬件配置文件中所有待升级的子分区的总个数相同(例如需校验分区的描述头中描述的待升级的子分区的总个数为3,不需校验分区的描述头中描述的待升级的子分区的总个数为2,硬件配置文件中已存储的两种标准分区中待升级的子分区的总个数之和为5),则表示不需要升级硬件配置文件。如果当前两种标准分区中待升级的子分区的总个数之和与硬件配置文件中所有待升级的子分区的总个数不相同时,这里可以表示在前一个Flash规划中已经完成升级的文件个数的基础上,又增加了新的待升级的文件B,虽然文件描述头中包含了新的待升级的文件B的地址和大小等信息,但此时硬件配置文件中并不存在新增加的待升级的文件B的信息,因此,需要更新硬件配置文件来加入待升级文件B的信息。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 upgradeable files are populated into the corresponding standard partitions during data packaging. Since the file description header contains the total number of sub-partitions to be upgraded, after parsing the file description header, if the sum of the total number of sub-partitions to be upgraded in the current two standard partitions and all the waiting in the hardware configuration file The total number of upgraded sub-partitions is the same (for example, the total number of sub-partitions to be upgraded described in the description header of the check partition is 3, and the sub-partitions to be upgrade described in the description header of the partition are not required to be verified. The total number is 2, and the sum of the total number of sub-partitions to be upgraded in the two standard partitions stored in the hardware configuration file is 5), indicating that the hardware configuration file does not need to be upgraded. If the sum of the total number of sub-partitions to be upgraded in the current two standard partitions is different from the total number of all sub-partitions to be upgraded in the hardware configuration file, it may indicate that the upgrade has been completed in the previous Flash plan. On the basis of the number of files, a new file B to be upgraded is added. Although the file description header contains information such as the address and size of the new file B to be upgraded, there is no new hardware configuration file at this time. The information of the file B to be upgraded is added. Therefore, the hardware configuration file needs to be updated to join the information of the file B to be upgraded.
步骤240:根据配置文件中的所有待升级的子分区总个数以及硬件配置文件中所有子分区的总个数判断是否需要升级所有子分区的文件的操作,当需要升级所有子分区的文件时,则执行步骤260;当不需要升级所有子分区的文件时,执行步骤270。Step 240: 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, determine whether it is necessary to upgrade the files of all the sub-partitions, when the files of all the sub-partitions need to be upgraded. Then, step 260 is performed; when it is not necessary to upgrade the files of all the sub-partitions, step 270 is performed.
在升级硬件配置文件后,硬件配置文件中则包含有所有待升级的子分区的总个数信息。通过将该信息与所有子分区的总个数相匹配,可判断出是否需要升级当前Flash中的所有子分区。After upgrading the hardware configuration file, the hardware configuration file contains the total number of sub-partitions to be upgraded. By matching this information with the total number of all sub-partitions, it can be determined whether all sub-partitions in the current Flash need to be upgraded.
步骤250:将文件描述头的信息替换硬件配置文件的信息,以升级硬件配置文件,继续执行步骤240。Step 250: Replace the information of the file description header with the information of the hardware configuration file to upgrade the hardware configuration file, and continue to step 240.
步骤260:根据分区信息获取每个待升级的子分区在对应的标准分区中的地址,根据该地址将全部可升级文件写入到对应的标准分区中的子分区中。Step 260: Acquire an address of each sub-partition to be upgraded in the corresponding standard partition according to the partition information, and write all upgradeable files to the sub-partitions in the corresponding standard partition according to the address.
步骤270:读出所述存储器中不需要升级的子分区的文件,计算所有待升级的子分区的文件的总校验值,继续执行步骤260。Step 270: Read out the file of the sub-partition that does not need to be upgraded in the memory, calculate the total check value of the files of all the sub-partitions to be upgraded, and continue to step 260.
示例性的,如果新增加了需要升级的文件,则在升级硬件配置文件后,Flash分区中原来存储的校验值也需相应的进行更新。在校验值更新完成后,即可执行在对应的标准分区中的地址中写入可升级文件的操作。Exemplarily, if a new file needs to be upgraded, the original stored check value in the Flash partition needs to be updated accordingly after the hardware configuration file is upgraded. After the check value update is completed, the operation of writing the upgradeable file in the address in the corresponding standard partition can be performed.
本实施例二在上述实施例的基础上,通过对硬件配置文件进行更新,可使得机顶盒在进行可升级文件升级的过程中能够完成当前所有可升级文件的升级,使得相关技术中的条件接收系统的漏洞得到修补和功能得到完善。On the basis of the foregoing embodiment, by updating the hardware configuration file, the set-top box can complete the upgrade of all current upgradeable files in the process of upgrading the upgradeable file, so that the conditional receiving system in the related art is implemented. The bugs were patched and the functionality was improved.
实施例三Embodiment 3
图4为实施例三提供的一种机顶盒的结构示意图。如图4所示,该机顶盒包括:处理器70、存储器71、输入装置72和输出装置73;设备/终端/服务器中处理器70的数量可以是一个或多个,图4中以一个处理器70为例;设备/终端/服务器中的处理器70、存储器71、输入装置72和输出装置73可以通过总线或其他方式连接,图4中以通过总线连接为例。4 is a schematic structural view of a set top box according to Embodiment 3. 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 in FIG. For example, 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 the like, and the bus connection is taken as an example in FIG.
存储器71作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序以及模块,如本申请实施例中的可升级文件的升级方法对应的程序指令/模块(例如,可升级文件的升级装置中的可升级文件包解析模块、分区信息获取模块和升级模块)。处理器70通过运行存储在存储器71中的软件程序、指令以及模块,从而执行设备/终端/服务器的各种功能应用以及数据处理,即实现上述的可升级文件的升级方法。The memory 71 is used as a computer readable storage medium, and can be used for storing a software program, a computer executable program, and a module, such as a program instruction/module corresponding to the upgrade method of the upgradeable file in the embodiment of the present application (for example, an upgradeable file) Upgrade the upgradeable package parsing module, partition information acquisition module, and upgrade module). The processor 70 executes various functional applications and data processing of the device/terminal/server by running software programs, instructions, and modules stored in the memory 71, that is, implementing the above-described upgrade method of the upgradeable file.
存储器71可包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据终端的使用所创建的数据等。此外,存储器71可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实例中,存储器71还可以包括相对于处理器70远程设置的存 储器,这些远程存储器可以通过网络连接至设备/终端/服务器。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 71 may include a storage program area and a 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 usage of the terminal, and the like. Further, the memory 71 may include a high speed random access memory, and may also include a nonvolatile memory such as at least one magnetic disk storage device, flash memory device, or other nonvolatile solid state storage device. In some examples, memory 71 may also include memory remotely located relative to 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.
输入装置72可用于接收输入的数字或字符信息,以及产生与机顶盒的用户设置以及功能控制有关的键信号输入。输出装置73可包括显示屏等显示设备。 Input device 72 can be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the set top box. The output device 73 may include a display device such as a display screen.
实施例四Embodiment 4
实施例四还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行一种可升级文件的升级方法,该方法包括:Embodiment 4 also provides a storage medium containing computer executable instructions for performing an upgrade method of an upgradeable file when executed by a computer processor, the method comprising:
获取并解析可升级文件包,得到所述可升级文件包中包含的文件描述头及对应的至少一个可升级文件,其中,所述文件描述头包括分区信息;Obtaining and parsing the upgradeable file package, and obtaining a file description header and a corresponding at least one upgradeable file included in the upgradeable file package, where the file description header includes partition information;
解析所述文件描述头,获取所述分区信息;以及Parsing the file description header to obtain the partition information;
根据所述分区信息,将所述至少一个可升级文件写入到所述存储器中对应的分区中,其中所述存储器的分区按照所述至少一个可升级文件的数据类型划分为两种标准分区。And writing, according to the partition information, the at least one upgradeable file into a corresponding partition in the memory, wherein the partition of the memory is divided into two standard partitions according to a data type of the at least one upgradeable file.
当然,本申请实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的方法操作,还可以执行本申请任意实施例所提供的可升级文件的升级方法中的相关操作。Of course, the storage medium containing the computer executable instructions provided by the embodiment of the present application is not limited to the method operation as described above, and may also perform the upgrade of the upgradeable file provided by any embodiment of the present application. Related operations in the method.
通过以上关于实施方式的描述,所属领域的技术人员可以清楚地了解到,本申请实施例可借助软件及必需的通用硬件来实现,当然也可以通过硬件实现,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请实施例的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如计算机的软盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、闪存(FLASH)、硬盘或光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请每个实施例所述的方法。Through the above description of the embodiments, those skilled in the art can clearly understand that the embodiments of the present application can be implemented by using software and necessary general hardware, and can also be implemented by hardware, but in many cases, the former is better. Implementation. Based on such understanding, the technical solution of the embodiments of the present application may be embodied in the form of a software product in essence or in the form of a software product, which may be stored in a computer readable storage medium, such as a computer. Floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions to make a computer device (can be an individual) A computer, server, or network device, etc.) performs the methods described in each of the embodiments of the present application.
工业实用性Industrial applicability
本公开提供的可升级文件的升级方法、机顶盒和存储介质,通过将存储器的分区划分为两种标准分区,可提高Loader的复用性,同时也可减小人力和物力成本。The upgrade method, the set top box and the storage medium of the upgradeable file provided by the disclosure can improve the reusability of the loader by dividing the partition of the memory into two standard partitions, and also reduce the labor and material cost.

Claims (9)

  1. 一种可升级文件的升级方法,所述方法包括:An upgrade method for an upgradeable file, the method comprising:
    获取并解析可升级文件包,得到所述可升级文件包中包含的文件描述头及对应的至少一个可升级文件,其中,所述文件描述头包括分区信息;Obtaining and parsing the upgradeable file package, and obtaining a file description header and a corresponding at least one upgradeable file included in the upgradeable file package, where the file description header includes partition information;
    解析所述文件描述头,获取所述分区信息;以及Parsing the file description header to obtain the partition information;
    根据所述分区信息,将所述至少一个可升级文件写入到存储器中对应的分区中,其中所述存储器的分区按照所述至少一个可升级文件的数据类型划分为两种标准分区。And writing, according to the partition information, the at least one upgradeable file into a corresponding partition in the memory, wherein the partition of the memory is divided into two standard partitions according to a data type of the at least one upgradeable file.
  2. 根据权利要求1所述的方法,其中,每种标准分区包括至少一个子分区;The method of claim 1 wherein each standard partition comprises at least one sub-partition;
    所述分区信息包括:待升级的子分区的总个数和总大小、每个待升级的子分区在对应的标准分区中的地址和大小。The partition information includes: the total number and total 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.
  3. 根据权利要求2所述的方法,其中,所述存储器中还存储有硬件配置文件,所述硬件配置文件包括:存储器中每种标准分区的总大小、所有子分区的总个数、所有待升级的子分区总个数、每个子分区在所述标准分区中的地址和大小,其中,所述硬件配置文件已得到对应的条件接收系统厂商的认证;The method of claim 2, wherein the memory further stores a hardware configuration file, the hardware configuration file comprising: a total size of each standard partition in the memory, a total number of all sub-partitions, all to be upgraded The total number of sub-partitions, the address and size of each sub-partition in the standard partition, wherein the hardware configuration file has been authenticated by the corresponding conditional access system manufacturer;
    根据所述分区信息,将所述至少一个可升级文件写入到所述存储器中对应的子分区中的步骤,包括:And the step of writing the at least one upgradeable file to the corresponding sub-partition in the memory according to the partition information, including:
    根据所述硬件配置文件中的所有待升级的子分区总个数以及所有子分区的总个数,判断是否需要升级所有子分区的文件;Determining whether it is necessary to upgrade files of all sub-partitions according to the total number of all sub-partitions to be upgraded and the total number of all sub-partitions in the hardware configuration file;
    当需要升级所述所有子分区的文件时,则根据所述分区信息获取每个待升级的子分区在对应的标准分区中的地址,根据该地址将全部可升级文件写入到对应的标准分区中的子分区中;When the files of all the sub-partitions need to be upgraded, the address of each sub-partition to be upgraded in the corresponding standard partition is obtained according to the partition information, and all upgradeable files are written to the corresponding standard partition according to the address. In the child partition;
    当不需要升级所述所有子分区的文件时,则读出所述存储器中不需要升级的子分区的文件,计算所有待升级的子分区的文件的总校验值,并根据所述分区信息获取每个待升级的子分区在对应的标准分区中的地址,根据该地址将全部可升级文件写入到对应的标准分区中的子分区中。When the files of all the sub-partitions need not be upgraded, the files of the sub-partitions that do not need to be upgraded in the memory are read out, and the total check value of the files of all the sub-partitions to be upgraded is calculated, and according to the partition information Obtain the address of each sub-partition to be upgraded in the corresponding standard partition, and write all upgradeable files to the sub-partitions in the corresponding standard partition according to the address.
  4. 根据权利要求3所述的方法,其中,在所述判断是否需要升级所有子分区的文件之前,所述方法还包括:The method of claim 3, wherein before the determining whether it is necessary to upgrade files of all sub-partitions, the method further comprises:
    判断所述硬件配置文件中的所有待升级的子分区总个数是否与所述两种标准分区中待升级的子分区的总个数之和相等;Determining whether the total number of all sub-partitions to be upgraded in the hardware configuration file is equal to the sum of the total number of sub-partitions to be upgraded in the two standard partitions;
    当个数不相等时,则将所述文件描述头的信息替换所述硬件配置文件的信息,以升级所述硬件配置文件;When the number is not equal, the information of the file description header is replaced with the information of the hardware configuration file to upgrade the hardware configuration file;
    当个数相等时,则执行所述判断是否需要升级所有子分区的文件的操作。When the numbers are equal, the operation of determining whether it is necessary to upgrade the files of all the sub-partitions is performed.
  5. 根据权利要求1-4任一所述的方法,其中,所述两种标准分区包括需校验分区和不需校验分区。The method of any of claims 1-4, wherein the two standard partitions comprise a check partition and a check partition.
  6. 根据权利要求1所述的方法,其中:The method of claim 1 wherein:
    所述存储器为闪存。The memory is a flash memory.
  7. 根据权利要求1所述的方法,其中:The method of claim 1 wherein:
    所述可升级文件为二进制文件。The upgradeable file is a binary file.
  8. 一种机顶盒,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时实现如权利要求1-7中任一所述的一种可升级文件的升级方法。A set top box comprising a memory, a processor, and a computer program stored on the memory and operative on the processor, wherein the processor executes the computer program to implement any of claims 1-7 An upgrade method for upgradeable files.
  9. 一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行以实现如权利要求1-7中任一所述的一种可升级文件的升级方法。A storage medium comprising computer executable instructions, the computer executable instructions being executed by a computer processor to implement an upgrade method of a scalable file according to any of claims 1-7.
PCT/CN2017/118359 2017-05-17 2017-12-25 Upgradable file upgrading method, set top box and storage medium WO2018209958A1 (en)

Applications Claiming Priority (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
CN201710349152.6 2017-05-17

Publications (1)

Publication Number Publication Date
WO2018209958A1 true WO2018209958A1 (en) 2018-11-22

Family

ID=59873930

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/118359 WO2018209958A1 (en) 2017-05-17 2017-12-25 Upgradable file upgrading method, 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 (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
CN102662700A (en) * 2012-03-28 2012-09-12 广东欧珀移动通信有限公司 Method for releasing and upgrading embedded software edition
CN104750527A (en) * 2015-03-27 2015-07-01 广州快飞计算机科技有限公司 Embedded system upgrading method and system
CN105446772A (en) * 2015-11-16 2016-03-30 青岛海信移动通信技术股份有限公司 System upgrading method and apparatus
CN106572372A (en) * 2016-11-14 2017-04-19 青岛海信宽带多媒体技术有限公司 Set-top box upgrading method and set-top box
CN107193593A (en) * 2017-05-17 2017-09-22 深圳创维数字技术有限公司 A kind of upgrade method, set top box and the storage medium of scalable file

Family Cites Families (2)

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

Patent Citations (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
CN102662700A (en) * 2012-03-28 2012-09-12 广东欧珀移动通信有限公司 Method for releasing and upgrading embedded software edition
CN104750527A (en) * 2015-03-27 2015-07-01 广州快飞计算机科技有限公司 Embedded system upgrading method and system
CN105446772A (en) * 2015-11-16 2016-03-30 青岛海信移动通信技术股份有限公司 System upgrading method and apparatus
CN106572372A (en) * 2016-11-14 2017-04-19 青岛海信宽带多媒体技术有限公司 Set-top box upgrading method and set-top box
CN107193593A (en) * 2017-05-17 2017-09-22 深圳创维数字技术有限公司 A kind of upgrade method, set top box and the storage medium of scalable file

Also Published As

Publication number Publication date
CN107193593A (en) 2017-09-22
CN107193593B (en) 2020-08-21

Similar Documents

Publication Publication Date Title
WO2018209958A1 (en) Upgradable file upgrading method, set top box and storage medium
US10929117B2 (en) Container image building using shared resources
US10409786B2 (en) Deployment of applications confirming to application data sharing and decision service platform schema
CN109918055B (en) Application program generation method and device
CN110096424B (en) Test processing method and device, electronic equipment and storage medium
CN108563579B (en) White box testing method, device and system and storage medium
CN109284140B (en) Configuration method and related equipment
US20170052884A1 (en) Generic test automation for restful web services applications
TW201439792A (en) System and method for accessing database
US10127037B2 (en) Method for recognizing application type
US10572371B2 (en) Generating valid use cases from a parsed configuration file describing use case options
US20210103514A1 (en) Reusable test cases for identifiable patterns
US20190034195A1 (en) Systems and methods for providing patchable rom firmware
CN111124480B (en) Method and device for generating application program package, electronic equipment and storage medium
WO2018014798A1 (en) Method and system for dynamically configuring plurality of cas of set-top box
US20190235846A1 (en) Continuous delivery pipeline segment models
CN113051163A (en) Unit testing method, unit testing device, electronic equipment and storage medium
CN113330419A (en) Equipment application installation method and device
CN113672441A (en) Method and device for testing intelligent equipment
CN106776266B (en) Configuration method of test tool and terminal equipment
CN110018835B (en) YANG model configuration data processing method and device, terminal device and storage medium
CN111273942A (en) Code generation method, storage medium, electronic device and system
CN108614704B (en) Code compiling method and device
CN111385661A (en) Method and terminal for controlling full-screen playing through voice
CN112596751B (en) Compiling method, terminal, server and storage medium of application program installation package

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: 17909668

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: 17909668

Country of ref document: EP

Kind code of ref document: A1