CN110337036A - Upgrade method, device and the storage medium of set-top box - Google Patents
Upgrade method, device and the storage medium of set-top box Download PDFInfo
- Publication number
- CN110337036A CN110337036A CN201910566083.3A CN201910566083A CN110337036A CN 110337036 A CN110337036 A CN 110337036A CN 201910566083 A CN201910566083 A CN 201910566083A CN 110337036 A CN110337036 A CN 110337036A
- Authority
- CN
- China
- Prior art keywords
- data
- data block
- top box
- firmware updating
- downloaded
- 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
-
- 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
Abstract
The invention discloses a kind of upgrade method of set-top box, device and storage medium, the upgrade method of the set-top box is the following steps are included: be downloaded to core buffer for the data block of the firmware updating data in upgrading stream;Wherein, the firmware updating data include multiple data blocks;By the transmission of data blocks downloaded to the corresponding position of default storage file, and returns and execute the step of data block of the firmware updating data in upgrading stream is downloaded to core buffer;When the firmware updating data download completion, data combination is carried out according to data block of the serial number information of the data block to the default storage file, to obtain the firmware updating data;Firmware upgrade is carried out with the firmware updating data.Technical solution of the present invention, firmware updating data that can be big by the core buffer downloading data amount of low capacity.
Description
Technical field
The present invention relates to digital TV technologies more particularly to a kind of upgrade method of set-top box, device and storage to be situated between
Matter.
Background technique
Current OTA (Over-the-Air, aerial to download) upgrading scheme, the data volume of upgrade package is small, such as 10M,
20M, 30M etc. can be whole by the upgrade file in upgrading stream from the enough memories of system application when carrying out firmware upgrade
Memory is downloaded to, firmware upgrade can be carried out after verifying to upgrade file.
If the data volume of upgrade file is big, such as the data volume of upgrade file is more than 500M, and system is difficult to provide enough
The memory of capacity, scheme are just not suitable for.
Also, the upgrade file of each set-top box producer is mutually indepedent, and ununified upgrading process leads to CHINA RFTCOM Co Ltd
Operator needs to generate upgrading stream file using the upgrading stream tools of each set-top box manufacturer.
Furthermore if powering off in escalation process, internal storage data is caused to be lost, needs to download from the beginning after restarting, it is time-consuming
It is long.
Above content is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that above content is existing skill
Art.
Summary of the invention
The main purpose of the present invention is to provide a kind of upgrade method of set-top box, device and storage mediums, it is intended to realize
Pass through the purpose of the big firmware updating data of the core buffer downloading data amount of low capacity.
To achieve the above object, the upgrade method of a kind of set-top box provided by the invention, the upgrade method of the set-top box
The following steps are included:
The data block of firmware updating data in upgrading stream is downloaded to core buffer;Wherein, the firmware updating number
According to including multiple data blocks;
By the transmission of data blocks downloaded to the corresponding position of default storage file, and return to the liter executed in upgrading stream
The step of data block of grade firmware data is downloaded to core buffer;
When the firmware updating data download completion, according to the serial number information of the data block to the default storage text
The data block of part carries out data combination, to obtain the firmware updating data;
Firmware upgrade is carried out with the firmware updating data.
Optionally, the step of data block by the firmware updating data in upgrading stream is downloaded to core buffer packet
It includes:
Determine the current upgrade status of set-top box;
When the current upgrade status of the set-top box is download state, the check information for the data block downloaded is obtained;
The data block that do not download in upgrading stream is determined according to the check information of the data block downloaded;
The data block that do not download described in firmware updating data in the upgrading stream is downloaded to core buffer.
Optionally, the step of data block of firmware updating data by upgrading stream is downloaded to core buffer it
Before, further includes:
Obtain the network information table in upgrading stream;
The upgrade information of the firmware updating data is obtained according to the network information table;
Judge whether the upgrade information of the firmware updating data meets default promotion condition;
When the upgrade information of the firmware updating data meets default promotion condition, upgrade tip information is issued.
Optionally, it when the upgrade information in the firmware updating data meets default promotion condition, issues upgrading and mentions
After the step of showing information, further includes:
Data block identifier information corresponding with the identification information of set-top box is obtained according to the network information table;
The data block of the firmware updating data of set-top box described in upgrading stream is determined according to the data block identifier information.
Optionally, the transmission of data blocks that will have been downloaded and returns to the corresponding position of default storage file and executes general
The step of data block of firmware updating data in upgrading stream is downloaded to the step of core buffer include:
The data block for being downloaded to the core buffer is verified;
When the verification passes through, by the transmission of data blocks downloaded to the corresponding position of default storage file, and return
Execute the step of data block of the firmware updating data in upgrading stream is downloaded to core buffer;
When the verification does not pass through, the data block downloaded is deleted.
Optionally, the transmission of data blocks that will have been downloaded and returns to the corresponding position of default storage file and executes general
The step of data block of firmware updating data in upgrading stream is downloaded to the step of core buffer include:
The firmware data for the data block downloaded is transmitted to the corresponding position of default upgrade file, and by the data block
Check information be transmitted to the corresponding position of default secondary file;
It returns and executes the step of data block of the firmware updating data in upgrading stream is downloaded to core buffer.
Optionally, the step of data block of firmware updating data by upgrading stream is downloaded to core buffer it
Before, further includes:
Obtain the firmware updating data of set-top box;
The firmware updating data are divided into multiple data blocks;
Upgrading stream is made with the multiple data block.
Optionally, described the step of making upgrading stream with the multiple data block, includes:
Corresponding auxiliary information is configured in each data block;
It is flowed with the data block production upgrading after the completion of configuring.
To achieve the above object, it the present invention also provides a kind of update device of set-top box, including memory, processor and deposits
The upgrade procedure for the set-top box that can be run on a memory and on a processor is stored up, the processor executes the liter of the set-top box
The step of as above upgrade method of described in any item set-top boxes is realized when grade program.
To achieve the above object, the present invention also provides a kind of storage medium, set-top box is stored on the storage medium
The upgrading side of as above described in any item set-top boxes is realized when the upgrade procedure of upgrade procedure, the set-top box is executed by processor
The step of method.
Technical solution of the present invention, the firmware updating data of set-top box include multiple data blocks, in escalation process, system according to
The secondary data block by the firmware updating data in upgrading stream is downloaded to core buffer, then by the transmission of data blocks of downloading to default
The corresponding position of storage file, to guarantee that the firmware updating data after splitting can be reassembled into complete firmware updating number
According to.So set, can be realized with the purpose of the big firmware updating data of the core buffer downloading data amount of low capacity, and number
It ensure that the integrality of firmware updating data, high reliablity according to the serial number information of block.
Detailed description of the invention
Fig. 1 be the present embodiments relate to set-top box update device hardware structural diagram;
Fig. 2 is the flow diagram of one embodiment of upgrade method of set-top box of the present invention;
The refinement flow diagram that Fig. 3 is step S1 in Fig. 2;
The refinement flow diagram that Fig. 4 is step S2 in Fig. 2;
Fig. 5 is another refinement flow diagram of step S2 in Fig. 2;
Fig. 6 is the flow diagram of another embodiment of upgrade method of set-top box of the present invention;
Fig. 7 is the flow diagram of the another embodiment of upgrade method of set-top box of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and it is not configured to limit this hair
It is bright.
The primary solutions of the embodiment of the present invention are: the data block of the firmware updating data in upgrading stream being downloaded to interior
Deposit buffer area;Wherein, the firmware updating data include multiple data blocks;By the transmission of data blocks downloaded to default storage text
The corresponding position of part, and return to the step for executing and the data block of the firmware updating data in upgrading stream being downloaded to core buffer
Suddenly;When the firmware updating data download completion, according to the serial number information of the data block to the default storage file
Data block carries out data combination, to obtain the firmware updating data;Firmware upgrade is carried out with the firmware updating data.
Technical solution of the present invention, the firmware updating data of set-top box include multiple data blocks, in escalation process, system according to
The secondary data block by the firmware updating data in upgrading stream is downloaded to core buffer, then by the transmission of data blocks of downloading to default
The corresponding position of storage file, to guarantee that the firmware updating data after splitting can be reassembled into complete firmware updating number
According to.So set, can be realized with the purpose of the big firmware updating data of the core buffer downloading data amount of low capacity, and number
It ensure that the integrality of firmware updating data, high reliablity according to the serial number information of block.
As a kind of embodiment, the update device of set-top box can be as shown in Figure 1.
For the embodiment of the present invention what is involved is the update device of set-top box, the update device of the set-top box includes: processing
Device 1001, such as CPU, communication bus 1002, memory 1003.Wherein, communication bus 1002 is for realizing between these components
Connection communication.
Memory 1003 can be stable memory (non-volatilememory), such as flash memory.As shown in Figure 1,
As the upgrade procedure that in a kind of memory 1003 of computer storage medium may include set-top box;And processor 1001 can be with
For calling the upgrade procedure of the set-top box stored in memory 1003, and execute following operation:
The data block of firmware updating data in upgrading stream is downloaded to core buffer;Wherein, the firmware updating number
According to including multiple data blocks;
By the transmission of data blocks downloaded to the corresponding position of default storage file, and return to the liter executed in upgrading stream
The step of data block of grade firmware data is downloaded to core buffer;
When the firmware updating data download completion, according to the serial number information of the data block to the default storage text
The data block of part carries out data combination, to obtain the firmware updating data;
Firmware upgrade is carried out with the firmware updating data.
Optionally, processor 1001 can be used for calling the upgrade procedure of the set-top box stored in memory 1003, and hold
The following operation of row:
Determine the current upgrade status of set-top box;
When the current upgrade status of the set-top box is download state, the check information for the data block downloaded is obtained;
The data block that do not download in upgrading stream is determined according to the check information of the data block downloaded;
The data block that do not download described in firmware updating data in the upgrading stream is downloaded to core buffer.
Optionally, processor 1001 can be used for calling the upgrade procedure of the set-top box stored in memory 1003, and hold
The following operation of row:
Obtain the network information table in upgrading stream;
The upgrade information of the firmware updating data is obtained according to the network information table;
Judge whether the upgrade information of the firmware updating data meets default promotion condition;
When the upgrade information of the firmware updating data meets default promotion condition, upgrade tip information is issued.
Optionally, processor 1001 can be used for calling the upgrade procedure of the set-top box stored in memory 1003, and hold
The following operation of row:
Data block identifier information corresponding with the identification information of set-top box is obtained according to the network information table;
The data block of the firmware updating data of set-top box described in upgrading stream is determined according to the data block identifier information.
Optionally, processor 1001 can be used for calling the upgrade procedure of the set-top box stored in memory 1003, and hold
The following operation of row:
The data block for being downloaded to the core buffer is verified;
When the verification passes through, by the transmission of data blocks downloaded to the corresponding position of default storage file, and return
Execute the step of data block of the firmware updating data in upgrading stream is downloaded to core buffer;
When the verification does not pass through, the data block downloaded is deleted.
Optionally, processor 1001 can be used for calling the upgrade procedure of the set-top box stored in memory 1003, and hold
The following operation of row:
The firmware data for the data block downloaded is transmitted to the corresponding position of default upgrade file, and by the data block
Check information be transmitted to the corresponding position of default secondary file;
It returns and executes the step of data block of the firmware updating data in upgrading stream is downloaded to core buffer.
Optionally, processor 1001 can be used for calling the upgrade procedure of the set-top box stored in memory 1003, and hold
The following operation of row:
Obtain the firmware updating data of set-top box;
The firmware updating data are divided into multiple data blocks;
Upgrading stream is made with the multiple data block.
Optionally, processor 1001 can be used for calling the upgrade procedure of the set-top box stored in memory 1003, and hold
The following operation of row:
Corresponding auxiliary information is configured in each data block;
It is flowed with the data block production upgrading after the completion of configuring.
The present invention proposes a kind of upgrade method of set-top box.
Fig. 2 is the flow diagram of one embodiment of upgrade method of set-top box of the present invention, the upgrade method of the set-top box
Include:
The data block of firmware updating data in upgrading stream is downloaded to core buffer by step S1;Wherein, the upgrading
Firmware data includes multiple data blocks;
The upgrading stream, i.e. upgrading data flow.The firmware updating data are the firmware updating data of set-top box.It is making
When making upgrading stream, the firmware updating data of set-top box are split as multiple data blocks, and are configured in each data block corresponding
Auxiliary information, the auxiliary information include at least vendor id, the serial number information of data block and the verification of data block of set-top box
Information, the auxiliary information can also include the version information of firmware updating data.The upgrading stream, can be transported by CHINA RFTCOM Co Ltd
The bit stream multiplexer of battalion quotient is broadcast, wherein the bit stream multiplexer of the Broadcast Television network operators, it can be by multiple upgrading stream files
It broadcasts simultaneously.The core buffer is the memory that system provides, for temporarily storing the data block downloaded from upgrading stream,
The queue of a first in first out may be implemented in the core buffer.System downloads the data of set-top box to be upgraded from upgrading stream
Block, and be stored in core buffer.Specifically, in one embodiment, including: referring to Fig. 3, step S1
Step S11 determines the current upgrade status of set-top box;
The current upgrade status of the set-top box includes state, non-download state in downloading completion status, downloading etc..This reality
It applies in example, set-top box further includes the current upgrade status of determining set-top box before downloading data block in upgrading stream, i.e. judgement rises
In grade stream, the data blocks of the firmware updating data of set-top box to be upgraded whether all downloading complete or in downloading or
It has not yet been downloaded, for example, causing the data block of set-top box to be upgraded to fail entirely if there are power-down conditions in upper primary escalation process
Subordinate carries, and system saves the data block downloaded, and the upgrade status of set-top box is recorded as in downloading, is switched on next time
When, the upgrade status of set-top box is shown as in downloading.
Step S12 obtains the school for the data block downloaded when the current upgrade status of the set-top box is download state
Test information;
If the current upgrade status of set-top box is download state, system is obtained in multiple data blocks of firmware updating data,
It is downloaded to the check information of the data block of default storage file, i.e., in booting, system is from default storage file for depositing
Store up the check information that the data block downloaded is read in the default secondary file of the check information of data block.
Step S13 determines the data block that do not download in upgrading stream according to the check information of the data block downloaded;
After the check information for obtaining the data block downloaded, system is determined according to the check information of each data block to be upgraded
The data block that do not download in stream determines multiple data blocks of firmware updating data according to the check information for the data block downloaded
In, it has not yet been downloaded to the data block of default storage file.The method of determination can calculate the data downloaded by counter
The check information of block, and the check information for calculating the data block downloaded obtained and system are read from default secondary file
Check information be compared, if equal, illustrate that the data block of this serial number has been downloaded, counter+1 after having counted, then may be used
The download progress percentage of data block, can continue to download after booting from this progress percentage when obtaining last upgrading.
The data block that do not download described in firmware updating data in the upgrading stream is downloaded to memory and delayed by step S14
Rush area.
The data block that do not download described in upgrading stream is successively downloaded to core buffer by system, and is transmitted to default storage
The corresponding position of file, until all data blocks of the firmware updating data of set-top box are downloaded in default storage file.
The present embodiment further includes the upgrade status for detecting set-top box, when the upgrade status of set-top box is download state, according to having downloaded
The check information of data block determine download progress, and continue to download according to identified download progress, not need from the beginning
Downloading, saves download time, improves download efficiency.
Step S2, by the transmission of data blocks downloaded to the corresponding position of default storage file, and returning to execution will upgrading
The step of data block of firmware updating data in stream is downloaded to core buffer;
The default storage file, is chosen as the local file of set-top box, for storing the number for being downloaded to core buffer
According to block.The corresponding position is position of the data block in default storage file, can be according to the serial number information of each data block
It allocates in advance.Be downloaded to core buffer in data block, and after verifying and passing through, system by the transmission of data blocks of core buffer extremely
The corresponding position of default storage file.The serial number information of the data block can be each number when splitting firmware updating data
It is configured, the serial number information of the data block, can be arranged according to the quantity of the data block of firmware updating data according to block.
Optionally, in one embodiment, include: referring to Fig. 4, step S2
Step S21 verifies the data block for being downloaded to the core buffer;
It further include being verified to the data block downloaded after data block is downloaded to core buffer.Wherein, each
Data block includes the check information of data block, i.e. check code.After data are downloaded to core buffer, system is to the data block
It is verified, if verification passes through, determines that the data block for being downloaded to core buffer is correct data block, that is, downloaded
Data block be set-top box firmware updating data component part;If verification does not pass through, determine that the memory that has been downloaded to delays
The data block for rushing area is the data block of mistake, that is, the data block downloaded not is the composition portion of the firmware updating data of set-top box
Point, for example, last 4 bytes that data block can be set are check code, and after data block is downloaded to core buffer, system
The check information of the data block is calculated, and last four bytes of result calculated and data block are compared, if equal,
Verification passes through, and the check information of data block ensure that the accuracy of data block downloading.
Step S22, when the verification passes through, by the correspondence position of the transmission of data blocks downloaded to default storage file
It sets, and returns and execute the step of data block of the firmware updating data in upgrading stream is downloaded to core buffer;
When the check information of the data block passes through, determine that the data block is correct data block, at this point, system will
The transmission of data blocks to default storage file corresponding position, and return execute will upgrading stream in firmware updating data number
The step of being downloaded to core buffer according to block.
Step S23 deletes the data block downloaded when the verification does not pass through.
When the check information does not pass through, determine the data block for mistake data block, at this point, system do not execute by
The transmission of data blocks to default storage file corresponding position the step of, the optional number that will be downloaded to the core buffer
It is deleted according to block.
Optionally, in one embodiment, include: referring to Fig. 5, step S2
The firmware data for the data block downloaded, is transmitted to the corresponding position of default upgrade file by step S24, and by institute
The check information for stating data block is transmitted to the corresponding position of default secondary file;
The default storage file includes that default upgrade file and default secondary file, the default upgrade file are used for
Firmware data in storing data block, the firmware data, for by the auxiliary information in data block, such as check information, serial number
The data that information, vendor id etc. obtain after rejecting.The default secondary file, the check information in block, is incited somebody to action for storing data
The check information of data block is stored in default secondary file, facilitate upgrading interrupt when, system-computed interrupt before download progress,
For example, upgrading is caused to be interrupted since system is powered down, after re-powering, system can be according to the check information in default secondary file
Download progress before calculating power down.After data block is downloaded to core buffer, system is determined according to the serial number information of data block
Firmware data is in the position of default upgrade file and check information in the position of default secondary file.Further, system root
According to identified position, the firmware data in data block is written to the corresponding position of default upgrade file, and by the school of data block
It tests information and default secondary file is written by serial number information.
Step S25 returns to the step for executing and the data block of the firmware updating data in upgrading stream being downloaded to core buffer
Suddenly.
After firmware data and check information within the data block is successfully written corresponding file, system continues to obtain upgrading
Data block in stream.
Step S3, when the firmware updating data download completion, according to the serial number information of the data block to described pre-
If the data block of storage file carries out data combination, to obtain the firmware updating data;
When the firmware updating data of set-top box download completion, i.e., system will upgrade the firmware updating number of the set-top box in stream
According to multiple data blocks download and default storage file be written after, system is deposited according to the serial number information of each data block to default
The data block of storage file is combined, and is reassembled into complete firmware updating data.That is, by transmission of data blocks extremely
During default storage file, according to the serial number information of each data block, by each data block write-in default storage file
Corresponding position, when multiple data blocks of firmware updating data are written to the corresponding position of default storage file, system is then obtained
Obtain complete firmware updating data.
Step S4 carries out firmware upgrade with the firmware updating data.
Further, after obtaining complete firmware updating data, system carries out firmware upgrade with the firmware updating data,
Upgrading is completed.
Technical solution of the present invention, the firmware updating data of set-top box include multiple data blocks, and in escalation process, system will
The data block of firmware updating data in upgrading stream is downloaded to core buffer according to the rule of first in first out, then, further according to
The serial number information of data block is by the transmission of data blocks of downloading to the corresponding position of default storage file, to guarantee the upgrading after splitting
Firmware data can be reassembled into complete firmware updating data.So set, can be realized the memory buffer with low capacity
The purpose of the big firmware updating data of area's downloading data amount, and the serial number information of data block ensure that the complete of firmware updating data
Property, high reliablity.
Fig. 6 is the flow diagram of the another embodiment of upgrade method of set-top box of the present invention.
Based on the above embodiment, before step S1, further includes:
Step S101 obtains the network information table in upgrading stream;
System parses network information table (NIT) from upgrading stream, in digital television business information standard, network information table
(NIT) transmission upgrading stream physical structure and the relevant information of own net transmission characteristic are responsible for.The network information table includes
The upgrade information of set-top box, the upgrade information of the set-top box include the version of the vendor id of set-top box, firmware updating data
Information, such as hardware version numbers, software version number etc.;The network information table further comprises the vendor id and data block of set-top box
The correspondence table of identification information (Packet Identifier, PID).
Step S102 obtains the upgrade information of the firmware updating data according to the network information table;
System obtains the upgrade information of the firmware updating data of set-top box from network information table, i.e., is obtained by network information table
Obtain the vendor id of set-top box, the version information of firmware updating data.
Step S103, judges whether the upgrade information of the firmware updating data meets default promotion condition;
Further, system judges whether the upgrade information of firmware updating data meets default promotion condition, that is, judges net
Whether the vendor id on network information table is consistent with the vendor id of set-top box, and the version of the firmware updating data in judgement upgrading stream
Whether this information meets the requirements, for example, judging whether the version number of firmware updating data is higher than the currently running program of set-top box
Version number.
Step S104 issues upgrade tip when the upgrade information of the firmware updating data meets default promotion condition
Information.
It is consistent in vendor id, and the version number of firmware updating data is higher than the version number of the currently running program of set-top box
When, then it is judged to meeting promotion condition.When meeting promotion condition, system issues the user with upgrade tip, for example, pop-up prompts
Whether need to upgrade.If system receives the confirmation upgrade information of user's reply, system closes the application program of set-top box, and opens
It opens updated boot programs (Loader application), triggering upgrading.
Step S105 obtains data block identifier corresponding with the identification information of set-top box according to the network information table
Information;
Further, after receiving the determination upgrade information of user, system is according to the body of set-top box in network information table
The correspondence table of part identification information and data block identifier information, obtains data block identifier corresponding with the identification information of set-top box
Information.The identification information of the set-top box is chosen as the vendor id of set-top box.Data block identifier information (the Packet
Identifier, PID), belong to the data block of the firmware updating data of each set-top box in upgrading stream for identification.Wherein, no
Same model, the firmware updating data of set-top box of different vendor can be packaged into data block and put in a network, and each data
Block has respective PID, and system can determine to one's name from upgrading stream in downloading data block according to the PID of data block
Data block.
Step S106 determines the firmware updating data of set-top box described in upgrading stream according to the data block identifier information
Data block.
After obtaining data block identifier information, system is according to data block identifier information, and determination belongs to the machine from upgrading stream
The data block of set-top box.
The technical solution of the present embodiment further includes judging the upgrade information of the firmware updating data of set-top box,
When the upgrade information of firmware updating data meets condition, just triggering upgrading, ensure that the reliability of set top box upgrading.
Fig. 7 is the flow diagram of the upgrade method another embodiment of set-top box of the present invention.
Based on the above embodiment, before step S1, further includes:
Step S107 obtains the firmware updating data of set-top box;
In production upgrading stream, the firmware updating data of set-top box are first obtained.
The firmware updating data are divided into multiple data blocks by step S108;
The firmware updating data of set-top box are split as multiple data blocks, the quantity of data block can be according to the memory of set-top box
The capacity of buffer area is arranged, for example, can split firmware updating data if the capacity of the core buffer of set-top box is 10M
Quantity for the data block of multiple 8M, data block can also need to be arranged according to other, unlimited herein.
Step S109 makes upgrading stream with the multiple data block.
After the firmware updating data of set-top box are split as multiple data blocks, tools are flowed by upgrading, will be obtained
Multiple data blocks be fabricated to upgrading stream.Wherein, the same upgrading stream tools production upgrading stream can be used in multiple manufacturers,
The upgrading stream tools are the unique identification information of product distribution of different model, different markets, and can be by different vendor
Upgrading stream file broadcast simultaneously by the bit stream multiplexers of Broadcast Television network operators.Firmware is carried out in the set-top box of each manufacturer
When upgrading, whether the unique identification information that can be distributed by upgrading stream tools is upgraded with distinguishing, for example, having in upgrading stream
The firmware updating data of available highest version, different model manufacturer, different model set-top box can be according to respective identification information
The whether one's own firmware updating data of firmware updating data in upgrading stream are determined, to determine the need for upgrading.It is optional
, step S7 includes:
Step S71 configures corresponding auxiliary information in each data block;
It optionally, further include matching in each data block after the firmware updating data being split as multiple data blocks
Corresponding auxiliary information is set, which may include the serial number information of data block, check information.The serial number of data block is believed
Breath, for after firmware updating data are split as multiple transmission of data blocks, when all data blocks are downloaded to default storage file
Afterwards, system can reconfigure multiple data blocks for complete firmware updating data according to the serial number information of each data block.
The check information of the data block can guarantee that the accuracy of downloaded data block, the auxiliary information further include set-top box
Vendor id.
Step S72 is flowed with the data block production upgrading after the completion of configuring.
Tools are flowed by upgrading, are fabricated to upgrading stream with multiple data blocks after the completion of configuring.
Further, in production upgrading stream, the description information of firmware updating data, institute can also be added in upgrading stream
State version information, vendor id that description information may include firmware updating data, firmware updating data PID etc..It can be every N number of
The description information of the firmware updating data is then added in data block, and as data block is broadcast in upgrading stream.It is needed in set-top box
When upgrading, system obtain upgrading stream in firmware updating data description information, and to the description information of firmware updating data into
Row verifying determines whether the data block in upgrading stream belongs to the data block of the machine according to the description information of firmware updating data,
Data block after being verified, in downloading upgrading stream.Wherein it is possible to be arranged, system obtains firmware updating number from upgrading stream
According to description information and after being verified, multiple data blocks of the firmware updating data in upgrading stream can be downloaded, do not need weight
Review card.The description information of firmware updating data is added in upgrading stream, it is ensured that multiple upgrading stream files while linked network liter
Grade, improves the safety of set top box upgrading.
The description information of firmware updating data is added in production upgrading stream in technical solution of the present invention in upgrading stream,
It can be realized the linked network upgrading simultaneously of multiple upgrading stream files, improve the safety of set top box upgrading.
The present invention also provides a kind of update device of set-top box, the update device of the set-top box includes memory, processor
And the upgrade procedure for the set-top box that can be run on a memory and on a processor is stored, the processor executes the set-top box
Upgrade procedure when the step of realizing the upgrade method of set-top box as described above.
The update device of the set-top box can be set-top box, or the external device of set-top box, it is unlimited herein.
The above is only alternative embodiments of the invention, are not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of upgrade method of set-top box, which is characterized in that the upgrade method of the set-top box the following steps are included:
The data block of firmware updating data in upgrading stream is downloaded to core buffer;Wherein, the firmware updating data packet
Include multiple data blocks;
By the transmission of data blocks downloaded to the corresponding position of default storage file, and returns to execute and consolidate the upgrading in upgrading stream
The step of data block of number of packages evidence is downloaded to core buffer;
When the firmware updating data download completion, according to the serial number information of the data block to the default storage file
Data block carries out data combination, to obtain the firmware updating data;
Firmware upgrade is carried out with the firmware updating data.
2. the upgrade method of set-top box as described in claim 1, which is characterized in that the firmware updating number by upgrading stream
According to data block be downloaded to core buffer the step of include:
Determine the current upgrade status of set-top box;
When the current upgrade status of the set-top box is download state, the check information for the data block downloaded is obtained;
The data block that do not download in upgrading stream is determined according to the check information of the data block downloaded;
The data block that do not download described in firmware updating data in the upgrading stream is downloaded to core buffer.
3. the upgrade method of set-top box as described in claim 1, which is characterized in that the firmware updating number by upgrading stream
According to data block be downloaded to core buffer the step of before, further includes:
Obtain the network information table in upgrading stream;
The upgrade information of the firmware updating data is obtained according to the network information table;
Judge whether the upgrade information of the firmware updating data meets default promotion condition;
When the upgrade information of the firmware updating data meets default promotion condition, upgrade tip information is issued.
4. the upgrade method of set-top box as claimed in claim 3, which is characterized in that the liter in the firmware updating data
When grade information meets default promotion condition, after the step of issuing upgrade tip information, further includes:
Data block identifier information corresponding with the identification information of set-top box is obtained according to the network information table;
The data block of the firmware updating data of set-top box described in upgrading stream is determined according to the data block identifier information.
5. the upgrade method of set-top box as described in claim 1, which is characterized in that the transmission of data blocks that will have been downloaded is extremely
The corresponding position of default storage file, and return to execute and the data block of the firmware updating data in upgrading stream is downloaded to memory delays
The step of rushing the step in area include:
The data block for being downloaded to the core buffer is verified;
When the verification passes through, by the transmission of data blocks downloaded to the corresponding position of default storage file, and execution is returned to
The step of data block of firmware updating data in upgrading stream is downloaded to core buffer;
When the verification does not pass through, the data block downloaded is deleted.
6. the upgrade method of set-top box as claimed in claim 5, which is characterized in that the transmission of data blocks that will have been downloaded is extremely
The corresponding position of default storage file, and return to execute and the data block of the firmware updating data in upgrading stream is downloaded to memory delays
The step of rushing the step in area include:
The firmware data for the data block downloaded is transmitted to the corresponding position of default upgrade file, and by the school of the data block
Test the corresponding position that information is transmitted to default secondary file;
It returns and executes the step of data block of the firmware updating data in upgrading stream is downloaded to core buffer.
7. such as the upgrade method of set-top box as claimed in any one of claims 1 to 6, which is characterized in that described to upgrade in stream
Before the step of data block of firmware updating data is downloaded to core buffer, further includes:
Obtain the firmware updating data of set-top box;
The firmware updating data are divided into multiple data blocks;
Upgrading stream is made with the multiple data block.
8. the upgrade method of set-top box as claimed in claim 7, which is characterized in that described made with the multiple data block rises
Grade stream the step of include:
Corresponding auxiliary information is configured in each data block;
It is flowed with the data block production upgrading after the completion of configuring.
9. a kind of update device of set-top box, which is characterized in that on a memory and can be including memory, processor and storage
The upgrade procedure of the set-top box run on processor, the processor realize such as right when executing the upgrade procedure of the set-top box
It is required that the step of upgrade method of the described in any item set-top boxes of 1-8.
10. a kind of storage medium, which is characterized in that be stored with the upgrade procedure of set-top box, the machine top on the storage medium
The step of the upgrade method such as the described in any item set-top boxes of claim 1-8 is realized when the upgrade procedure of box is executed by processor
Suddenly.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910566083.3A CN110337036B (en) | 2019-06-25 | 2019-06-25 | Set top box upgrading method and device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910566083.3A CN110337036B (en) | 2019-06-25 | 2019-06-25 | Set top box upgrading method and device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110337036A true CN110337036A (en) | 2019-10-15 |
CN110337036B CN110337036B (en) | 2022-02-15 |
Family
ID=68143442
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910566083.3A Active CN110337036B (en) | 2019-06-25 | 2019-06-25 | Set top box upgrading method and device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110337036B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111352730A (en) * | 2020-02-11 | 2020-06-30 | 浙江大华技术股份有限公司 | Caching method and device for application program upgrading, computer equipment and storage medium |
CN111580840A (en) * | 2020-03-27 | 2020-08-25 | 惠州市德赛西威汽车电子股份有限公司 | Method for realizing ECU (electronic control Unit) updating based on distributed memory management |
CN112995768A (en) * | 2019-12-17 | 2021-06-18 | 青岛海尔多媒体有限公司 | Television upgrade control method and device and television |
CN113239361A (en) * | 2021-05-06 | 2021-08-10 | 国家计算机网络与信息安全管理中心 | Firmware safety detection method, device, equipment and storage medium |
CN113434170A (en) * | 2021-06-22 | 2021-09-24 | 重庆长安汽车股份有限公司 | Finished automobile OTA data downloading and deploying method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100180271A1 (en) * | 2003-09-03 | 2010-07-15 | The Directv Group, Inc. | Automatic software update detection and flexible installer for set-top boxes |
CN101867916A (en) * | 2009-04-16 | 2010-10-20 | 深圳市赛格导航科技股份有限公司 | Method for realizing air update of vehicle terminal |
CN102214112A (en) * | 2011-06-03 | 2011-10-12 | 无锡商埃曲信息科技有限公司 | Set top box upgrading method and system |
CN103517141A (en) * | 2013-10-11 | 2014-01-15 | 成都三零凯天通信实业有限公司 | Sectional type data upgrading method based on IP set top box |
-
2019
- 2019-06-25 CN CN201910566083.3A patent/CN110337036B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100180271A1 (en) * | 2003-09-03 | 2010-07-15 | The Directv Group, Inc. | Automatic software update detection and flexible installer for set-top boxes |
CN101867916A (en) * | 2009-04-16 | 2010-10-20 | 深圳市赛格导航科技股份有限公司 | Method for realizing air update of vehicle terminal |
CN102214112A (en) * | 2011-06-03 | 2011-10-12 | 无锡商埃曲信息科技有限公司 | Set top box upgrading method and system |
CN103517141A (en) * | 2013-10-11 | 2014-01-15 | 成都三零凯天通信实业有限公司 | Sectional type data upgrading method based on IP set top box |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112995768A (en) * | 2019-12-17 | 2021-06-18 | 青岛海尔多媒体有限公司 | Television upgrade control method and device and television |
CN111352730A (en) * | 2020-02-11 | 2020-06-30 | 浙江大华技术股份有限公司 | Caching method and device for application program upgrading, computer equipment and storage medium |
CN111352730B (en) * | 2020-02-11 | 2023-07-14 | 浙江大华技术股份有限公司 | Caching method and device for application program upgrade, computer equipment and storage medium |
CN111580840A (en) * | 2020-03-27 | 2020-08-25 | 惠州市德赛西威汽车电子股份有限公司 | Method for realizing ECU (electronic control Unit) updating based on distributed memory management |
CN113239361A (en) * | 2021-05-06 | 2021-08-10 | 国家计算机网络与信息安全管理中心 | Firmware safety detection method, device, equipment and storage medium |
CN113434170A (en) * | 2021-06-22 | 2021-09-24 | 重庆长安汽车股份有限公司 | Finished automobile OTA data downloading and deploying method and device |
CN113434170B (en) * | 2021-06-22 | 2023-03-14 | 重庆长安汽车股份有限公司 | Finished automobile OTA data downloading and deploying method and device |
Also Published As
Publication number | Publication date |
---|---|
CN110337036B (en) | 2022-02-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110337036A (en) | Upgrade method, device and the storage medium of set-top box | |
CN105843656B (en) | System upgrading method for insufficient disk space, terminal equipment and server | |
CN109034814B (en) | Intelligent contract processing method and device based on Etheng virtual machine | |
CN103677877B (en) | A kind of method and device of local advertising software development kit upgrading | |
CN105511889A (en) | General game version incremental updating system and method | |
CN102012831B (en) | Over-the-air technology (OTA) upgrading method based on Linux platform | |
CN107193593B (en) | Upgrading method of upgradable file, set top box and storage medium | |
CN112131099B (en) | Version upgrading test method and device | |
CN105763602A (en) | Data request processing method, server and cloud interactive system | |
CN104750528B (en) | A kind of assembly management method and apparatus in Android program | |
CN107506221A (en) | Application program updating method, apparatus and equipment | |
CN109144548A (en) | A kind of multicompartment software upgrade method, device and server realized based on git | |
CN104918114B (en) | A kind of operating system update method and device | |
CN106201615A (en) | The application utilizing successful Resolving probiems is compatible | |
CN103024782B (en) | A kind of method and system of base station software version management | |
CN106464519A (en) | Adapter and adapter upgrade method | |
CN110597542A (en) | Automatic OTA (over the air) software upgrading method and device and electronic equipment | |
CN108681504A (en) | Automated testing method, test server and computer readable storage medium | |
CN108182078B (en) | Optimized missile-borne device non-dismantling software online upgrading method | |
CN103916440A (en) | Remote upgrade method and device | |
CN103327403A (en) | Set top box upgrading method, device and system | |
CN106066802A (en) | A kind of method and apparatus loading MBN file | |
CN111045932A (en) | Business system simulation processing method and device, electronic equipment and storage medium | |
CN102541639B (en) | CPU (Central Processing Unit) card data processing method, CPU card data processing system and CPU card | |
CN102298534B (en) | Method for writing software into set-top box |
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 |