CN107193593A - A kind of upgrade method, set top box and the storage medium of scalable file - Google Patents
A kind of upgrade method, set top box and the storage medium of scalable file Download PDFInfo
- Publication number
- CN107193593A CN107193593A CN201710349152.6A CN201710349152A CN107193593A CN 107193593 A CN107193593 A CN 107193593A CN 201710349152 A CN201710349152 A CN 201710349152A CN 107193593 A CN107193593 A CN 107193593A
- Authority
- CN
- China
- Prior art keywords
- file
- subregion
- scalable
- memory
- partition
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/443—OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
- H04N21/4432—Powering on the client, e.g. bootstrap loading using setup parameters being stored locally or received from the server
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/45—Management 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/458—Scheduling 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/4586—Content 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 a kind of upgrade method, set top box and the storage medium of scalable file.Methods described includes:Obtain and parse scalable file bag, the file for obtaining including in scalable file bag describes head and at least one corresponding scalable file, wherein, the subregion of memory is divided into two kinds of standard subregions according to the data type of scalable file, every kind of standard subregion includes at least one child partition, each child partition is used to store corresponding scalable file, and file, which describes head, to be used to describe at least one scalable file corresponding partition information in memory;Resolution file describes head, obtains partition information;According to partition information, at least one scalable file is written in the corresponding subregion of memory.By using above-mentioned technical proposal, change a Loader and be only used for a kind of limitation of Flash planning, the Loader for realizing unified certification shares to multiple Flash planning to carry out the upgrading of file.
Description
Technical field
The present embodiments relate to DTV STB field, more particularly to a kind of upgrade method of scalable file,
Set top box and storage medium.
Background technology
With the fast development of globalization DTV industry, top box of digital machine is throughout vast family, as people
Understand the Important Platform in the world, cognitive things and abstract the recreational consumption in daily life.Based on the protection to digital TV contents,
Condition reception (Conditional Access, CA) system is arisen at the historic moment, and various condition reception schemes are widely by countries in the world
Set-top box operation business used.Different CA producers, in order to ensure the safety of respective condition receiving system, to its system work(
It can upgrade and do corresponding specification, and generate the Loader differed from one another and (complete the mould of digital television set top box software updating
Block).CA producers can also Qiang Zhiyaoqiu Loader certifications simultaneously.
Loader conventional CA is mainly realized to APP (Application, application program) each subregion (i.e. each point of Flash
Area) upgrading, wherein, determining Loader factor mainly has:Master chip model, CA types, Flash (Flash
Memory, flash memory) configuration, DDR (Dual Data Rate, Double Data Rate synchronous DRAM) configurations and Flash
Planning, preceding four factors are determined that it is different that project difference is mainly Flash planning by hardware.
In the prior art, because application software is upgraded according to Flash partition, in Loader certifications, each subregion
Initial address, size and whether need verification etc. information can not change.After certification, CA companies also will be by above-mentioned letter
Breath signs to authentication document, and this, which will cause different Flash to plan, needs to do different Loader certifications, and Loader's answers
It is poor with property, while also increasing the input of the manpower and materials of certification.
The content of the invention
To solve Related Technical Issues, the present invention provides a kind of upgrade method of scalable file, set top box and storage and is situated between
Matter, changes the limitation that a Loader is only used for a kind of Flash planning, realize unified certification Loader share to it is many
Individual Flash plans to carry out the upgrading of file.
To achieve the above object, the embodiment of the present invention is adopted the following technical scheme that:
In a first aspect, the embodiments of the invention provide a kind of upgrade method of scalable file, methods described includes:
Obtain and parse scalable file bag, the file for obtaining including in the scalable file bag describes head and corresponding
At least one scalable file, wherein, the subregion of the memory is divided into two according to the data type of the scalable file
Standard subregion is planted, every kind of standard subregion includes at least one child partition, and each child partition is used to store corresponding scalable file,
The file, which describes head, to be used to describe at least one scalable file corresponding partition information in the memory;
Parse the file and describe head, obtain the partition information;
According to the partition information, at least one described scalable file is written to the corresponding subregion of the memory
In.
Further, the partition information includes:The total number of child partition to be upgraded, total size, each son to be upgraded
Address and size of the subregion in corresponding standard subregion.
Further, hardware profile is also included in the memory, the hardware profile includes:In memory
The total size of every kind of standard subregion, the total number of all child partitions, all child partition total numbers to be upgraded, each child partition exist
Address and size in the standard subregion, wherein, the hardware profile has obtained respective conditions reception system manufacturer
Certification;
Accordingly, according to the partition information, at least one described scalable file is written to the memory correspondence
Subregion in, including:
Institute in all child partition total numbers to be upgraded and the hardware profile in the configuration file
There is the total number of child partition, the file for all child partitions that judge whether to need to upgrade;
Upgrade if desired the files of all child partitions, then each son point to be upgraded is obtained according to the partition information
All scalable files, are written in corresponding standard subregion by address of the area in corresponding standard subregion according to the address
In child partition;
If the file for all child partitions that need not upgrade, the son point that need not upgrade in the memory is read
The file in area, calculate institute the file of the child partition of upgrading in need integrity check value, and according to the partition information obtain each
Address of the child partition to be upgraded in corresponding standard subregion, corresponding mark is written to according to the address by all scalable files
In child partition in quasi- subregion.
Further, before the file of all child partitions that judge whether to need to upgrade, methods described also includes:
Judge all child partitions to be upgraded in the hardware profile total number whether with when first two standard
The total number sum of child partition to be upgraded matches in subregion;
If it does not match, the information that the file is described into head replaces the information of the hardware profile, to upgrade
The hardware profile;
If matched, perform described in judge whether to need to upgrade all child partitions file operation.
Further, the standard subregion includes that subregion need to be verified and is not required to verify subregion.
Further, the memory is flash memory.
Further, the scalable file is binary file.
Second aspect, the embodiments of the invention provide a kind of set top box, the set top box includes:Memory, processor and
The computer program that can be run on a memory and on a processor is stored, wherein, it is real during the computing device described program
A kind of upgrade method of incumbent one scalable file described above.
The third aspect, the embodiments of the invention provide a kind of storage medium for including computer executable instructions, the meter
Calculation machine executable instruction by computer processor being performed to realize a kind of upgrading side of any scalable file described above
Method.
In the technical scheme of the embodiment of the present invention, the scalable file in set-top box memory subregion is upgraded
When, obtain and parse scalable file bag, the file for obtaining including in the scalable file bag describe head and it is corresponding at least
One scalable file, wherein, the subregion of the memory is divided into two kinds of marks according to the data type of the scalable file
Quasi- subregion, every kind of standard subregion includes at least one child partition, and each child partition is used to store corresponding scalable file, described
File, which describes head, to be used to describe at least one scalable file corresponding partition information in the memory.Due to existing
The document storage mode that technology is provided does not have a unified standard, therefore, by the way that the subregion of the memory is divided
After two kinds of standard subregions, scalable file can be stored into corresponding standard subregion according to its data type, each standard
Subregion can unifiedly calculate its check value.When CA companies carry out Loader certifications to scalable file bag, relative to prior art
The mode being authenticated successively to each subregion to be upgraded provided, the technical scheme of the embodiment of the present invention can be by standard subregion
It is authenticated as an entirety.Meanwhile, research staff without calculating scalable file check value successively, and by standard
Subregion calculates its check value as an entirety, in addition, can also be planned in every kind of standard subregion according to different Flash
It is configured flexibly scalable file.During CA companies are authenticated, head is described by file and can determine whether out current Flash
Whether the scalable file bag in planning meets the hardware configuration standard of flash storage.After a Loader certification,
If other Flash plan the hardware configuration standard without departing from flash storage, the upgrade file planned for other Flash
Loader certifications need not be repeated.CA companies detect scalable file bag not by describing the information of head with reference to file
When can be impacted to set top box, scalable file bag can be signed.Therefore, by the way that the subregion of memory is divided into two
Standard subregion is planted, Loader durability can be improved, while can also reduce manpower and materials cost.Set top box is to scalable file
When bag is upgraded, by obtaining and parsing scalable file bag, the file description included in the scalable file bag is obtained
Head and at least one corresponding scalable file.Head is described by parsing the file, the partition information is obtained;According to described
Partition information, at least one described scalable file is written in the corresponding subregion of the memory, now, scalable file
The file stored in original memory partition is instead of, the upgrading of file is completed.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, institute in being described below to the embodiment of the present invention
The accompanying drawing needed to use is briefly described, it should be apparent that, drawings in the following description are only some implementations of the present invention
Example, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to present invention implementation
The content and these accompanying drawings of example obtain other accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of the upgrade method for scalable file that the embodiment of the present invention one is provided;
Fig. 2 a are a kind of structural representation for Flash partition that the embodiment of the present invention one is provided;
Fig. 2 b are the structural representation after a kind of territorial classification that Flash is scalable that the embodiment of the present invention one is provided;
Fig. 3 is a kind of schematic flow sheet of the upgrade method for scalable file that the embodiment of the present invention two is provided;
Fig. 4 is a kind of structural representation for set top box that the embodiment of the present invention three is provided.
Embodiment
For make present invention solves the technical problem that, the technical scheme that uses and the technique effect that reaches it is clearer, below
The technical scheme of the embodiment of the present invention will be described in further detail with reference to accompanying drawing, it is clear that described embodiment is only
It is a part of embodiment of the invention, rather than whole embodiments.Based on the embodiment in the present invention, those skilled in the art exist
The every other embodiment obtained under the premise of creative work is not made, the scope of protection of the invention is belonged to.
Embodiment one
Fig. 1 is a kind of schematic flow sheet of the upgrade method for scalable file that the embodiment of the present invention one is provided.This implementation
The method of example can be performed by the update device of scalable file, and wherein the device can be realized by software and/or hardware, typically
It can be integrated in digital TV integrated machine or set top box, this method can be applied to what is stored in the subregion of the memory of set top box
The upgrading of file.As shown in figure 1, this method may include steps of:
S110:Obtain and parse scalable file bag, the file for obtaining including in scalable file bag describes head and correspondingly
At least one scalable file.
Wherein, the subregion of memory can be divided into two kinds of standard subregions according to the data type of scalable file, every kind of
Standard subregion includes at least one child partition, and each child partition is used to store corresponding scalable file, and file, which describes head, to be used for
At least one scalable file corresponding partition information in memory is described.
Exemplary, standard subregion includes that subregion need to be verified and is not required to verify subregion.The file stored in verification subregion
All it is the file for needing to verify, it is non-verification file to be not required to verify in subregion store.Involved by the embodiment of the present invention
File is preferably binary file, and memory is preferably Flash.
When set top box BUG (leak) is occurring or needing function upgrading during use, Loader pairs can be passed through
Scalable file is upgraded.
, it is necessary to which set top box and its scalable file bag are sent into CA companies goes certification, such as before document upgrading is carried out
Fruit certification passes through, you can obtain the signature of CA companies, then completes the upgrading of scalable file, and before the certification of CA companies,
Following preparation need to be completed:
File to be upgraded is filled into corresponding mark according to the data type of its own and current the Flash size planned
In quasi- subregion, head splicing then is described into for populated scalable file and file using splicing tool, while in original Flash
Other feature subregions (subregion such as Loader or Verify data) keep constant, form scalable file bag.Example
Property, the partition information that file is described in head includes:The total number of child partition to be upgraded, size, each child partition to be upgraded
Address and size in corresponding standard subregion.Exemplary, other subregions in original Flash include hardware configuration text
Part, wherein, hardware profile includes:It is the total number of all child partitions in the total size of every kind of standard subregion, memory, all
The address and size of child partition total number, each child partition to be upgraded in the standard subregion.
After scalable file bag completes, set top box and its scalable file bag then can be transmitted to CA companies and go to recognize
Card.It is exemplary, can if describing that head judges according to file when CA companies carry out Loader certifications to current Flash planning
Upgrade file meets the standard of hardware profile, and scalable file to set-top-box system when will not impact, and represent to work as
The Loader of preceding Flash planning can obtain the signature that CA companies authorize by this certification, and set top box can rising to filling
Level file is upgraded.
Specifically, Fig. 2 a are a kind of structural representation for Flash partition that the embodiment of the present invention one is provided;Fig. 2 b are this hair
Structural representation after a kind of territorial classification that Flash is scalable that bright embodiment one is provided.As shown in Figure 2 a, region
Module3-ModuleN represents that the region of document upgrading can be carried out, wherein the file stored can need verify two to enter
File processed or the binary file that need not be verified, the mixing arrangement of this two class file.A is planned for current Flash,
The address of each subregion, size and the information such as verification whether are needed when carrying out Loader certifications, in Module3-ModuleN
It can not modify, accordingly, it would be desirable to be authenticated successively to each subregion in Module3-ModuleN.As shown in Figure 2 b,
The data type that file in Module3-ModuleN is verified as required and need not be verified is being divided into verification subregion
(Module_check1) and it is not required to after verification subregion (Module_No check2), such as Module_sub1 and Module_sub2
It is according to the file in original Module3-ModuleN after data type classifications Deng what is stored in child partition.By standard scores
After Division, a file need to be spliced for every kind of standard subregion and describe head, for describing the information of each child partition.Carrying out
During Loader certifications, CA companies are not required to the sub-partitioning information it is to be understood that in every kind of standard subregion, by Module_check1 or
Both standard subregions of Module_No check2 are authenticated as an entirety, such as current Flash planning A is needed
What is upgraded is the file in Module_check1 regions, and describes the size that head judges file to be upgraded according to file
(such as 10,000,000) verify the total size (such as 20,000,000) of subregion no more than the need of planning in hardware profile (Hwconfig), and
When detecting that file to be upgraded will not be impacted to set top box, Loader certifications can pass through.
It is scalable for what is stored in each child partition of every kind of standard subregion in the certification of first time Loader by rear
File, can neatly be configured according to different Flash planning to it.Exemplary, plan B, it is necessary to upgrade for Flash
File number relative to Flash planning A may change.For example, newly increasing one on the basis of Flash planning A
The upgrade file N of subregion need to be verified (size is 2,000,000), it is therefore desirable to which scalable file N is stored in Module_check1 correspondences
Region in.Hardware profile has obtained the certification of CA companies in due to planning A in a upper Flash, for current Flash
The upgrade file in B is planned, then need not repeat certification, because the size (10,000,000) of upgrade file is added in Flash planning A
Upgrade file N size (2,000,000) sum is no more than the planning in the hardware profile for having obtained certification in Flash planning B
The total size (20,000,000) of subregion need to be verified, so, file N to be upgraded in B is planned for current Flash, CA companies are obtained
It can be upgraded after signature.Therefore, it can be risen in the upgrade method pair of the scalable file provided using the embodiment of the present invention
Before level file is upgraded, it is not necessary to repeatedly obtain the certification of CA companies, reduce the expense of certification.
After the completion of preliminary preparation, when set top box receives the triggering command of document upgrading, scalable file bag
It can be sent in the form such as USB or OTA (Over-the-Air Technology, over the air) in set top box.Machine
Top box is after scalable file bag is received, and log-on data process of analysis, obtains the file included in scalable file bag immediately
Head and at least one corresponding scalable file are described.
It is exemplary, if set top box is after scalable file bag is parsed, if find and file is not present describes head, press
Document upgrading is completed according to the document upgrading flow that prior art is provided.
S120:Resolution file describes head, obtains partition information.
Head is described by resolution file, the total number size of child partition to be upgraded, each child partition to be upgraded can be obtained
Address and size in corresponding standard subregion.Therefore, the information according to described in file header can determine that scalable file bag
The last storage location of the scalable file of middle filling.
S130:According to partition information, at least one scalable file is written in the corresponding subregion of memory.
Wherein, document upgrading is that file to be upgraded is written into corresponding storage region.Due in scalable file bag
In be already filled with file to be upgraded, therefore, when set top box receive document upgrading instruction after, start Loader, according to every
Address of the individual child partition to be upgraded in corresponding standard subregion, original file of partition holding is wiped, and by filling can
Upgrade file is write in corresponding standard subregion, you can complete the upgrading of scalable file.
The embodiments of the invention provide a kind of upgrade method of scalable file, in set-top box memory subregion can
When upgrade file is upgraded, obtain and parse scalable file bag, the file for obtaining including in the scalable file bag is retouched
State head and at least one corresponding scalable file, wherein, the subregion of the memory according to the scalable file data
Type division is two kinds of standard subregions, and every kind of standard subregion includes at least one child partition, and each child partition is used to store correspondence
Scalable file, the file, which describes head, is used to describing at least one described scalable file corresponding in the memory
Partition information.By the document storage mode that prior art is provided does not have a unified standard, therefore, by by described in
The subregion of memory is divided into after two kinds of standard subregions, can be by scalable file according to the corresponding storage of its data type to standard
In subregion, each standard subregion can unifiedly calculate its check value.When CA companies carry out Loader certifications to scalable file bag,
The mode being authenticated successively to each subregion to be upgraded provided relative to prior art, the technical side of the embodiment of the present invention
Case can be authenticated standard subregion as an entirety.Meanwhile, research staff calculates successively without to scalable file
Check value, its check value is calculated using standard subregion as an entirety, in addition, also can basis in every kind of standard subregion
Different Flash planning are configured flexibly scalable file.During CA companies are authenticated, describing head by file can sentence
Whether the scalable file bag in current Flash planning that breaks meets the hardware configuration standard of flash storage.By once
After Loader certifications, if other Flash planning is without departing from the hardware configuration standard of flash storage, other Flash planning nothings
Certification need to be repeated.CA companies describe the information of head by combining file, detect that scalable file bag will not be caused to set top box
During influence, scalable file bag can be signed.Therefore, can by the way that the subregion of memory is divided into two kinds of standard subregions
Loader durability is improved, while can also reduce manpower and materials cost.Set top box when upgrading to scalable file bag,
By obtaining and parsing scalable file bag, the file for obtaining including in the scalable file bag describe head and it is corresponding at least
One scalable file.Head is described by parsing the file, the partition information is obtained;According to the partition information, by institute
State at least one scalable file to be written in the corresponding subregion of the memory, now, scalable file instead of to be deposited originally
The file stored in memory partition, completes the upgrading of file.
Embodiment two
Fig. 3 is a kind of schematic flow sheet of the upgrade method for scalable file that the embodiment of the present invention two is provided.This implementation
At least one scalable file " according to partition information, is written to memory pair by example two on the basis of embodiment one to step
In the subregion answered " and its process before be optimized, reference picture 3, the embodiment of the present invention two specifically includes following steps:
S210:Obtain and parse scalable file bag, the file for obtaining including in scalable file bag describes head and correspondingly
At least one scalable file.
S220:Resolution file describes head, obtains partition information.
S230:Judge all child partitions to be upgraded in hardware profile total number whether with when first two standard
The total number sum of child partition to be upgraded matches in subregion, if so, then performing step S240;Otherwise, step S250 is performed.
It should be noted that the file stored in each subregion of Flash is all not the file for needing to upgrade.If some points
Area is needed to carry out document upgrading, then during data are packed, scalable file is filled into corresponding standard subregion.By
Describe to include the total number of child partition to be upgraded in head in file, therefore, after resolution file describes head, if working as first two
In standard subregion total of all child partitions to be upgraded in the total number sum of child partition to be upgraded and hardware profile
Number is identical, and (total number for for example needing to verify the child partition to be upgraded described in the description head of subregion is 3, is not required to verify subregion
The total number for describing the child partition to be upgraded described in head is 2, in the two kinds of standard subregions stored in hardware profile
5) the total number sum of child partition to be upgraded is, then it represents that do not need upgrading hardware configuration file;If when first two standard
The total number of all child partitions to be upgraded is not in the total number sum of child partition to be upgraded and hardware profile in subregion
When identical, it can represent on the basis of the file number of upgrading has been completed during previous Flash is planned, add again new here
File B to be upgraded, although file describes to contain the information such as new file B to be upgraded address and size in head, but
Now in hardware profile and in the absence of the file B to be upgraded newly increased information, accordingly, it would be desirable to update hardware configuration text
Part adds file B to be upgraded information.
S240:All sons in all child partition total numbers to be upgraded and hardware profile in configuration file
The total number of subregion judge whether to need to upgrade all child partitions file operation, if so, then performing step S260;Otherwise,
Perform step S270.
Then include the total number of all child partitions to be upgraded after upgrading hardware configuration file, in hardware profile
Information.By the way that the information and the total number of all child partitions are matched, in the current Flash that can determine whether out whether to need to upgrade
All child partitions.
S250:The information that file is described into head replaces the information of hardware profile, with upgrading hardware configuration file, continues
Perform step S240.
S260:Each address of the child partition to be upgraded in corresponding standard subregion is obtained according to partition information, according to this
All scalable files are written in the child partition in corresponding standard subregion by address.
S270:The file for the child partition that need not upgrade in the memory is read, all child partitions to be upgraded are calculated
File integrity check value, continue executing with step S260.
Exemplary, if having newly increased the file for needing to upgrade, after upgrading hardware configuration file, Flash partition
In the check value that stored originally also need to be updated accordingly.After the completion of check value renewal, you can perform in corresponding standard
The operation of scalable file is write in address in subregion.
The present embodiment two, by being updated to hardware profile, may be such that machine top on the basis of above-described embodiment
Box can complete the upgrading of current all scalable files during document upgrading is carried out so that its condition receiving system
Leak is repaired, or its function is further improved.
Embodiment three
Fig. 4 is a kind of structural representation for set top box that the embodiment of the present invention three is provided.As shown in figure 4, the set top box bag
Include:Processor 70, memory 71, input unit 72 and output device 73;The quantity of processor 70 in equipment/terminal/server
Can be one or more, in Fig. 4 by taking a processor 70 as an example;Processor 70, memory in equipment/terminal/server
71st, input unit 72 and output device 73 can be connected by bus or other modes, in Fig. 4 exemplified by being connected by bus.
Memory 71 can perform journey as a kind of computer-readable recording medium available for storage software program, computer
Corresponding programmed instruction/the module of upgrade method of scalable file in sequence and module, such as embodiment of the present invention is (for example, can
Scalable file Packet analyzing module, partition information acquisition module and upgraded module in the update device of upgrade file).Processor
70 are stored in software program, instruction and module in memory 71 by operation, so as to perform equipment/terminal/server
Various function application and data processing, that is, realize the upgrade method of above-mentioned scalable file.
Memory 71 can mainly include storing program area and storage data field, wherein, storing program area can store operation system
Application program needed for system, at least one function;Storage data field can be stored uses created data etc. according to terminal.This
Outside, memory 71 can include high-speed random access memory, can also include nonvolatile memory, for example, at least one magnetic
Disk storage device, flush memory device or other non-volatile solid state memory parts.In some instances, memory 71 can be further
Including the memory remotely located relative to processor 70, these remote memories can by network connection to equipment/terminal/
Server.The example of above-mentioned network includes but is not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.
Input unit 72 can be used for the numeral or character information for receiving input, and produce with the user of set top box set with
And the relevant key signals input of function control.Output device 73 may include the display devices such as display screen.
Example IV
The embodiment of the present invention four also provides a kind of storage medium for including computer executable instructions, and the computer can be held
Row instruction is when being performed by computer processor for performing a kind of upgrade method of scalable file, and this method includes:
Obtain and parse scalable file bag, the file for obtaining including in the scalable file bag describes head and corresponding
At least one scalable file, wherein, the subregion of the memory is divided into two according to the data type of the scalable file
Standard subregion is planted, every kind of standard subregion includes at least one child partition, and each child partition is used to store corresponding scalable file,
The file, which describes head, to be used to describe at least one scalable file corresponding partition information in the memory;
Parse the file and describe head, obtain the partition information;
According to the partition information, at least one described scalable file is written to the corresponding subregion of the memory
In.
Certainly, a kind of storage medium for including computer executable instructions that the embodiment of the present invention is provided, its computer
The method operation that executable instruction is not limited to the described above, can also carry out the scalable text that any embodiment of the present invention is provided
Associative operation in the upgrade method of part.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention
It can be realized by software and required common hardware, naturally it is also possible to realized by hardware, but the former is more in many cases
Good embodiment.Understood based on such, what technical scheme substantially contributed to prior art in other words
Part can be embodied in the form of software product, and the computer software product can be stored in computer-readable recording medium
In, such as floppy disk, read-only storage (Read-Only Memory, ROM), the random access memory (Random of computer
Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are to cause a computer to set
Standby (can be personal computer, server, or network equipment etc.) performs the method described in each embodiment of the invention.
Note, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that
The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art it is various it is obvious change,
Readjust and substitute without departing from protection scope of the present invention.Therefore, although the present invention is carried out by above example
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
Other more equivalent embodiments can be included, and the scope of the present invention is determined by scope of the appended claims.
Claims (9)
1. a kind of upgrade method of scalable file, the liter applied to the file stored in the subregion of the memory of set top box
Level, it is characterised in that methods described includes:
Obtain and parse scalable file bag, the file for obtaining including in the scalable file bag describe head and it is corresponding at least
One scalable file, wherein, the subregion of the memory is divided into two kinds of marks according to the data type of the scalable file
Quasi- subregion, every kind of standard subregion includes at least one child partition, and each child partition is used to store corresponding scalable file, described
File, which describes head, to be used to describe at least one scalable file corresponding partition information in the memory;
Parse the file and describe head, obtain the partition information;
According to the partition information, at least one described scalable file is written in the corresponding subregion of the memory.
2. according to the method described in claim 1, it is characterised in that
The partition information includes:The total number of child partition to be upgraded, total size, each child partition to be upgraded are in corresponding mark
Address and size in quasi- subregion.
3. method according to claim 2, it is characterised in that also include hardware profile in the memory, described
Hardware profile includes:It is the total size of every kind of standard subregion in memory, the total number of all child partitions, all to be upgraded
The address and size of child partition total number, each child partition in the standard subregion, wherein, the hardware profile is obtained
To the certification of respective conditions reception system manufacturer;
Accordingly, according to the partition information, at least one described scalable file is written to corresponding point of the memory
Qu Zhong, including:
All sons in all child partition total numbers to be upgraded and the hardware profile in the configuration file
The total number of subregion, the file for all child partitions that judge whether to need to upgrade;
Upgrade if desired the files of all child partitions, then each child partition to be upgraded is obtained according to the partition information and existed
All scalable files, the son point in corresponding standard subregion is written to according to the address by the address in corresponding standard subregion
Qu Zhong;
If the file for all child partitions that need not upgrade, the child partition that need not upgrade in the memory is read
File, calculate institute the file of the child partition of upgrading in need integrity check value, and according to the partition information acquisition each wait to rise
Address of the level child partition in corresponding standard subregion, corresponding standard scores are written to according to the address by all scalable files
In child partition in area.
4. method according to claim 3, it is characterised in that in the text of all child partitions that judge whether to need to upgrade
Before part, methods described also includes:
Judge all child partition total numbers to be upgraded in the hardware profile whether with when in first two standard subregion
The total number sum of child partition to be upgraded matches;
If it does not match, the information that the file is described into head replaces the information of the hardware profile, it is described to upgrade
Hardware profile;
If matched, perform described in judge whether to need to upgrade all child partitions file operation.
5. according to any described methods of claim 1-4, it is characterised in that the standard subregion includes verifying subregion and not
Subregion need to be verified.
6. according to the method described in claim 1, it is characterised in that:
The memory is flash memory.
7. according to the method described in claim 1, it is characterised in that:
The scalable file is binary file.
8. a kind of set top box, including memory, processor and storage are on a memory and the computer that can run on a processor
Program, it is characterised in that realize one as described in any in claim 1-7 described in the computing device during computer program
Plant the upgrade method of scalable file.
9. a kind of storage medium for including computer executable instructions, the computer executable instructions are by computer processor
Perform to realize a kind of upgrade method of scalable file as described in any in claim 1-7.
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 true CN107193593A (en) | 2017-09-22 |
CN107193593B 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) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108121556A (en) * | 2017-12-26 | 2018-06-05 | 深圳Tcl新技术有限公司 | EMMC compatibilities upgrade method, intelligent terminal and readable storage medium storing program for executing |
CN108304206A (en) * | 2018-02-11 | 2018-07-20 | 广东美的厨房电器制造有限公司 | Upgrade method, device, computer equipment, program product and storage medium |
WO2018209958A1 (en) * | 2017-05-17 | 2018-11-22 | 深圳创维数字技术有限公司 | Upgradable file upgrading method, set top box and storage medium |
CN109947450A (en) * | 2019-03-19 | 2019-06-28 | 深圳创维-Rgb电子有限公司 | System file upgrade method, device, mobile terminal and readable storage medium storing program for executing |
CN110347412A (en) * | 2019-06-27 | 2019-10-18 | 中国第一汽车股份有限公司 | 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 |
CN113225729A (en) * | 2020-01-21 | 2021-08-06 | 荣耀终端有限公司 | OTA (over the air) upgrading method and device and readable storage medium |
CN113434178A (en) * | 2021-07-08 | 2021-09-24 | 恒安嘉新(北京)科技股份公司 | Programmable multiphase power supply online upgrading method, device, equipment and storage medium |
CN113805956A (en) * | 2021-06-15 | 2021-12-17 | 荣耀终端有限公司 | Operating system configuration method, operating system configuration device, operating system storage medium, and program product |
Citations (2)
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)
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 |
-
2017
- 2017-05-17 CN CN201710349152.6A patent/CN107193593B/en active Active
- 2017-12-25 WO PCT/CN2017/118359 patent/WO2018209958A1/en active Application Filing
Patent Citations (2)
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 |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018209958A1 (en) * | 2017-05-17 | 2018-11-22 | 深圳创维数字技术有限公司 | Upgradable file upgrading method, set top box and storage medium |
CN108121556A (en) * | 2017-12-26 | 2018-06-05 | 深圳Tcl新技术有限公司 | EMMC compatibilities upgrade method, intelligent terminal and readable storage medium storing program for executing |
CN108304206A (en) * | 2018-02-11 | 2018-07-20 | 广东美的厨房电器制造有限公司 | Upgrade method, device, computer equipment, program product and storage medium |
CN109947450A (en) * | 2019-03-19 | 2019-06-28 | 深圳创维-Rgb电子有限公司 | System file upgrade method, device, mobile terminal and readable storage medium storing program for executing |
CN109947450B (en) * | 2019-03-19 | 2023-03-17 | 深圳创维-Rgb电子有限公司 | System file upgrading method and device, mobile terminal and readable storage medium |
CN110347412A (en) * | 2019-06-27 | 2019-10-18 | 中国第一汽车股份有限公司 | 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 |
CN113225729A (en) * | 2020-01-21 | 2021-08-06 | 荣耀终端有限公司 | OTA (over the air) upgrading method and device and readable storage medium |
CN113225729B (en) * | 2020-01-21 | 2022-07-12 | 荣耀终端有限公司 | OTA (over the air) upgrading method and device and readable storage medium |
CN113805956A (en) * | 2021-06-15 | 2021-12-17 | 荣耀终端有限公司 | Operating system configuration method, operating system configuration device, operating system storage medium, and program product |
CN113434178A (en) * | 2021-07-08 | 2021-09-24 | 恒安嘉新(北京)科技股份公司 | Programmable multiphase power supply online upgrading method, device, equipment and storage medium |
CN113434178B (en) * | 2021-07-08 | 2023-11-14 | 恒安嘉新(北京)科技股份公司 | Programmable multiphase power supply online upgrading method, device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107193593B (en) | 2020-08-21 |
WO2018209958A1 (en) | 2018-11-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107193593A (en) | A kind of upgrade method, set top box and the storage medium of scalable file | |
CN107608889B (en) | Method and system for automatically generating test script | |
CN110020381A (en) | Method of calibration, device, equipment and computer storage medium based on configuration file | |
CN110276074B (en) | Distributed training method, device, equipment and storage medium for natural language processing | |
CN113194004B (en) | Network topology construction method and device, and network change processing method and device | |
CN106021119A (en) | Configuration file calibration method and device | |
US20150178263A1 (en) | System and Method for Constructing Markup Language Templates and Input Data Structure Specifications | |
CN105825164A (en) | Fingerprint identification method and electronic equipment | |
US11880662B2 (en) | Matrix based bot implementation | |
CN105550370A (en) | Input method and input system | |
CN102073670A (en) | Method, equipment and system for debugging online webpage template | |
CN106250195A (en) | Update the method for system file, equipment and system | |
CN111931835A (en) | Image identification method, device and system | |
CN109299415A (en) | H5 page method of calibration and device | |
CN105847907A (en) | Method and apparatus for changing boot animation of television set | |
CN109460226A (en) | Test certificate image generation method, device, equipment and storage medium | |
CN109635552A (en) | Electronic equipment identity information verification method and device | |
CN108733425A (en) | Business change method for sending information, device, electronic equipment and storage medium | |
CN113051154A (en) | Method and corresponding device for verifying correctness of drawing function of display card | |
CN110427891A (en) | The method, apparatus, system and medium of contract for identification | |
CN117787239A (en) | Contract generation method and device, storage medium and electronic equipment | |
CN114265614B (en) | Agent differential upgrading method and system | |
CN112232320B (en) | Printed matter text proofreading method and related equipment | |
CN111800669B (en) | Rendering method and device of text subtitles under android system | |
CN113986247A (en) | Service data verification method, device and system |
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 |