CN109151590A - A kind of bi-directional digital television upgrade method - Google Patents
A kind of bi-directional digital television upgrade method Download PDFInfo
- Publication number
- CN109151590A CN109151590A CN201811301859.0A CN201811301859A CN109151590A CN 109151590 A CN109151590 A CN 109151590A CN 201811301859 A CN201811301859 A CN 201811301859A CN 109151590 A CN109151590 A CN 109151590A
- Authority
- CN
- China
- Prior art keywords
- packet
- file
- upgrade
- upgrading
- upgrade file
- 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
- 238000000034 method Methods 0.000 title claims abstract description 32
- 238000012795 verification Methods 0.000 claims abstract description 89
- 238000007405 data analysis Methods 0.000 claims abstract description 4
- 238000005192 partition Methods 0.000 claims description 8
- 230000005540 biological transmission Effects 0.000 claims description 7
- 238000012545 processing Methods 0.000 claims description 6
- 238000005520 cutting process Methods 0.000 claims description 4
- 238000004458 analytical method Methods 0.000 claims description 3
- 230000006835 compression Effects 0.000 claims description 3
- 238000007906 compression Methods 0.000 claims description 3
- 239000000284 extract Substances 0.000 claims description 3
- 230000001174 ascending effect Effects 0.000 claims description 2
- 235000013399 edible fruits Nutrition 0.000 claims description 2
- 208000019901 Anxiety disease Diseases 0.000 description 2
- 230000036506 anxiety Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 230000007175 bidirectional communication Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 238000011017 operating method Methods 0.000 description 1
- 238000000638 solvent extraction Methods 0.000 description 1
Classifications
-
- 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
Abstract
The invention discloses a kind of bi-directional digital television upgrade methods, comprising the following steps: A. defines upgrade package structure, respectively definition upgrading trigger packet, upgrade file contents verification packet, upgrade file packet;B. upgrade package is generated;C. enter upgrading process: C1. server broadcast upgrades trigger packet, upgrade file contents verification packet;C2. Digital TV Receiving is to broadcast upgrading trigger packet, updated contents verification packet, and handles;C3. DTV is to server application upgrade file packet;C4. DTV verifies updated contents and carries out software upgrading update;C5. server statistics updating result, and carry out data analysis.Bi-directional digital television upgrade method of the invention can be used for solving the problems, such as that digital TV software upgrade content is more, upgrading is frequent, upgrading low efficiency.
Description
Technical field
The present invention relates to digital TV upgrading technical field, in particular to a kind of bi-directional digital television upgrade method.
Background technique
With the arrival of Internet era, more and more television sets or set-top box support network function (subsequent general designation number
Word TV).Have the DTV of bi-directional communication function, abbreviation Double-number TV.Higher and higher in its performance, function is increasingly
Software also becomes increasing while abundant, and upgrades also more and more frequently.Therefore upgrade function becomes more and more important,
The efficiency of upgrading also becomes the emphasis of digital-TV operator concern.A wide range of every time, high-volume upgrades, and is all to operator's liter
The test of grade server.
Summary of the invention
It is insufficient in above-mentioned background technique the purpose of the present invention is overcoming, a kind of bi-directional digital television upgrade method is provided, it can
Effectively solve the problems, such as the low efficiency of high-volume digital TV upgrading, it is more especially for subregion in television system, and each point
In the case that partitioned file is also more in area, the efficiency of digital TV upgrading can be obviously improved.
In order to reach above-mentioned technical effect, the present invention takes following technical scheme:
A kind of bi-directional digital television upgrade method, comprising the following steps:
A. upgrade package structure is defined;
A1. definition upgrading trigger packet;
A2. upgrade file contents verification packet is defined;
A3. upgrade file packet is defined;
B. upgrade package is generated;
C. enter upgrading process:
C1. server broadcast upgrading trigger packet, upgrade file contents verification packet;
C2. Digital TV Receiving is to broadcast upgrading trigger packet, updated contents verification packet, and handles;
C3. DTV is to server application upgrade file packet;
C4. DTV verifies updated contents and carries out software upgrading update;
C5. server statistics updating result, and carry out data analysis.
Further, definition the following contents: regular length liter is specifically included when definition upgrading trigger packet in the step A1
Grade trigger packet banner string, packet length, hardware version, updating software release, software version judgment model, software version are poor
It is worth, upgrades total number of units, starts sequence number, end sequence number, server address, upgrading type, upgrade file packet number, subregion
Number, n divisional description be sub, crc check bit, wherein n divisional description is specially divisional description 1 to divisional description
Sub- n.
Further, the packet length is length of the hardware version to end-of-packet, the crc check bit including file inclusion tail
Length;
The region of crc verification bit check is that packet starts to the sub- n of divisional description, specifically in this section when verification
Hold and carries out crc calculating;
Define in the software version judgment model: 0 indicates not judging that software version directly upgrades;1 indicates that set-top box is soft
Part version adds software version difference to be equal to version to be upgraded;2 expression set-top box software versions subtract software version difference be equal to
Upgraded version;
Define in the upgrading type: 0 indicates foreground mandatory upgrade, and 1 indicates backstage mandatory upgrade, and 2 indicate that foreground is non-strong
System upgrading, 3 indicate the optional upgrading in backstage;
The divisional description attached bag includes subregion ID number, subregion name, partitioned file mode, upgrade file number;Wherein, institute
Stating and defining 0 in partitioned file mode is monofile subregion, and 1 is multifile system subregion.
Further, it is to specifically include definition the following contents that upgrade file contents verification packet is defined in the step A2: Gu
Measured length upgrade file contents verify packet banner string, packet length, subregion number, n subregion verification description, crc verification
Position, wherein n subregion verification description is specially that subregion verification description 1 to subregion verification describes sub- n.
Further, the field of the packet length includes subregion number plus crc verification bit length;Crc verifies bit check
Packet beginning describes sub- n to subregion verification;
The subregion verification description attached bag includes partition id, subregion name, upgrade file total number, n file verification description
Son, the n file verification describe son and specifically include file verification description 1 to describe sub- n to file verification;Wherein, the text
Part verification description attached bag includes filename length, filename, file path length, file path, compressed file size, compression
File crc check value, original document length, original document crc check value afterwards.
Further, definition the following contents: regular length liter is specifically included when defining upgrade file packet in the step A3
Grade file packet banner string, packet length, upgrade package serial number, partition id, subregion name, partitioned file mode, upgrade file are total
Number, APMB package mode, current file serial number, APMB package number, n APMB package description, 1 data of APMB package to APMB package n
Data, CRC check;Wherein, the n APMB package describes attached bag and includes APMB package description 1 to describe sub- n to APMB package.
Further, the upgrade package serial number is corresponding to the upgrade file packet number in upgrading trigger packet, the subregion
It is monofile subregion that 0 is defined in file mode, and 1 is multifile system subregion;The upgrade file total number is retouched with subregion verification
The upgrade file total number stated in son is identical;
Define in the APMB package mode: 0 indicates multifile combination, and 1 indicates monofile cutting, and the APMB package number is
It based on APMB package mode, when APMB package mode is 0, indicates there be n upgrade file under the packet, when APMB package mode is 1, indicates this
A upgrade file S under packet has been cut into n small documents, subsequent APMB package description only 1 followed, and describes son
The subsegment of interior file serial number upgrade file S, and serial number 1,2 ... n;
The APMB package describe attached bag include file serial number, filename length, filename, file path length, file path,
Compressed file size, compressed file CRC, original document length, original document CRC, subsegment data length, subsegment
CRC, file start-position;Wherein, when the APMB package mode is 1, subsegment data length, subsegment CRC the two fields
It comes into force, the file start-position is deviation post of the compressed file data in entire upgrade file packet, when APMB package mode
When being 1, file start-position is the deviation post of subsegment data.
Further, it is literary to the upgrading of each subregion using the tool of server end that upgrade package is generated in the step B
Part carries out package processing, specifically includes: the size of each upgrade package is first arranged;Then the file of each subregion to be upgraded is pressed
Size is combined, and according to the definition in upgrade file packet, some small files is combined into a upgrade file packet, then
By the file declustering of super large at satisfactory multiple upgrade file packets;
Each field information defined in upgrade file contents verification packet is recorded during package, by the file of all subregions
After the completion of package, upgrade file contents verification packet is generated;
Then need by tool the hardware version of the DTV upgraded, updating software release, software version are sentenced
Disconnected mode, software version difference, the total number of units of upgrading start sequence number, end sequence number, server address, upgrading type;Then
Sub-information is described according to the upgrading that package result obtains upgrade file total number and each subregion and calculates crc value again, is finally given birth to
At upgrading trigger packet.
Further, the step C1 is specifically included: by broadcast upgrading trigger packet, upgrade file contents verification packet, upgrading
File packet imports server;Server recycles to the whole network and broadcasts upgrading trigger packet and upgrade file contents verification packet;And it waits
DTV issues request;
The step C2 is specifically included: DTV starts special process and goes to monitor corresponding port, takes when detecting
The upgrading trigger packet and capture and analyze content that business device is broadcasted, then sentence according to each field defined in upgrading trigger packet
Whether disconnected DTV, which meets upgrading, requires;If meeting upgrading to require, updated contents verification packet is captured, and analyze content;
If not capturing updated contents verification packet within a certain period of time, updated contents verification packet is skipped over, and to service in step C3
Updated contents verification packet is then individually sent to DTV by device application updated contents verification packet, server;
The step C3 is specifically included:
C3.1 DTV obtains upgrade file packet to server application: where application is divided into both of which: the first is
Fuzzy application, second is accurate application;
C3.2 server receives the request of DTV, analyzes the content of request;If it is fuzzy application, then basis
Server resource situation, the few upgrade file packet of preferential transmission momentary request amount is subsequent to send the big upgrade file packet of request amount,
Server resource is set to be in relative equilibrium state;If it is accurately applying for some upgrade file packet, and there are other numbers again simultaneously
Television is fuzzy to apply for the upgrade file packet, then preferentially sends the upgrade file packet to the client accurately applied, rear supervention should
Client of the upgrade file packet to fuzzy application;
C3.3 DTV sends back the upgrading text come to after server application upgrade file packet, then starting to obtain server
Then the upgrade file of each subregion is reversely extracted upgrade file packet by the definition in upgrade file packet by part packet;If long
Time can not receive some upgrade file packet, then sends accurate application to server, then proceed to receive upgrade file packet;
If C3.4 still can not receive data, the reason of terminating the reception of upgrade file packet, send upgrading failure to server
And as a result, and terminate to upgrade;
C3.5 carries out the Accuracy Verification of itself, including subregion after receiving all upgrade file packets to data first
Secondly the verifying of upgrade file number, the file size in packet, file crc under several, each subregion is determined according to upgrade file packet
Justice analyzes upgrade file packet, extracts the upgrade file of each subregion of compressive state, and verify with upgrade file contents
The data defined in packet are compared, if data are inconsistent, terminate the reception of upgrade file packet, send upgrading failure to server
The reason of and as a result, and terminate to upgrade;
If file data is consistent, compressed file is unziped it, obtains the upgrade file of reset condition, and with liter
Original file information in grade file content verification packet is compared, if data are inconsistent, terminates the reception of upgrade file packet, to
Server sends the reason of upgrading failure and as a result, and terminates to upgrade;If data unanimously if enter step C4;
C4. new software is updated:
Software upgrading is carried out according to subregion, and obtains the specific write-in side of partitioned file according to partitioned file pattern information
Method;If subregion is multifile system subregion, according to the path of upgrade file problem, remove to replace the corresponding text under original path
Part, after the completion of All Files update, transmission upgrades successfully information and restarts number after determining that server receives information to server
Word TV.
C5. server statistics updating result, and ascending series are carried out according to analysis:
The updating result information that each digital television client is fed back is counted, is analyzed by server, generates upgrading
As a result feedback form.
Compared with prior art, the present invention have it is below the utility model has the advantages that
In bi-directional digital television upgrade method of the invention, by formulating digital TV upgrading packet rule, using subregion as base
Updated contents under each subregion are packaged by standard by the rule for looking for step A to formulate, and scattered small documents are packaged into one big
Small suitable big file packet, the file division of capacity super large is transmitted at the small documents packet of specified size;Thus alleviate
DTV frequently please apply for that super large file causes server resource anxiety to server application small documents or to service
Problem, meanwhile, to server application upgrade file packet in such a way that fuzzy application and accurate application combine, enable server
More efficiently using its resource, to promote upgrading efficiency.
Specific embodiment
Below with reference to the embodiment of the present invention, the invention will be further elaborated.
Embodiment:
A kind of bi-directional digital television upgrade method, be particularly used in solve digital TV software upgrade content it is more, upgrading frequently
It is numerous, upgrading low efficiency the problem of, specific implementation the following steps are included:
A. upgrade package structure is defined;Upgrade package is divided into three kinds of packets: upgrading trigger packet, upgrade file contents verification packet, upgrading
File packet, therefore step A is specifically included:
A1. definition upgrading triggering pack arrangement;
Upgrading trigger packet specifically includes following field contents: regular length upgrades trigger packet banner string, packet length, firmly
Part version, updating software release, software version judgment model, software version difference, the total number of units of upgrading, starts sequence number, terminates
Sequence number, server address, upgrading type, upgrade file packet number, subregion number, divisional description 1, divisional description
Sub- n, crc check bit of 2 ... divisional descriptions.
Wherein, the packet length for upgrading trigger packet is length of the hardware version to end-of-packet, the school crc including file inclusion tail
Test bit length;The region for upgrading the crc verification bit check of trigger packet starts for packet to the sub- n of divisional description, in this section
Hold and carries out crc calculating.
Specifically have in the present embodiment in the software version judgment model of definition upgrading trigger packet defined below: working as software
It indicates not judge software version when version judgment model is 0, directly upgrades, indicated when software version judgment model is 1
Set-top box software version adds software version difference to be equal to version to be upgraded, when software version judgment model is 2 whens, that is, expression machine top
Box software version subtracts software version difference equal to version to be upgraded.
It is corresponding, in the present embodiment, upgrades to have in the upgrading type of trigger packet and such as give a definition:
Upgrading when type is 0 indicates foreground mandatory upgrade, informs that user's machine must upgrade by interface, flows into upgrading
Journey;Start to receive upgrading data, and show progress, then updates upgrading software and restart (this process user can not select) again;
Upgrading indicates backstage mandatory upgrade when type is 1, backstage receives upgrading data, receives data and does not prompt user, directly
It is ready to upgrading data, reresent user and upgrades;And show progress, it then updates upgrading software and restarts (this mistake again
Journey user can not select);
Upgrading when type is 2 indicates the optional upgrading in foreground, needs that user is prompted to need to upgrade at this time, user can do as follows
Selection Upgrades Now (with upgrading type 0), booting upgrading next time (enters data to receive, and shows reception progress, receive completion
Do not update, next time booting when update software), do not upgrade.
Upgrading indicates the optional upgrading in backstage when type is 3, backstage receives upgrading data, receives data and does not prompt user,
It is ready until upgrading data, reresent user and upgrades.User can choose Upgrade Now and next time booting upgrading and
Do not upgrade.
Specifically, the subregion number of upgrading trigger packet indicates the subregion total number that the secondary upgrading is related to, upgrade trigger packet
Divisional description then includes subregion ID number, subregion name, partitioned file mode, upgrade file number;Wherein, in partitioned file mould
Have in formula defined below:
Partitioned file mode is expressed as monofile subregion, such as boot when being 0, and kernel etc. is non-, and file partition is (read-only
File system is as monofile processing);Partitioned file mode is expressed as multifile system subregion when being 1, such as non-read-only file system
Ubi file system of uniting etc..
A2. upgrade file contents verification pack arrangement is defined;
Upgrade file contents verification packet specifically includes following field contents: regular length upgrade file contents verification packet mark
Character string, packet length, subregion number, subregion verification description 1, subregion verification describes sub- n, crc to subregion verification description 2 ...
Check bit, packet length field include subregion number plus crc verification bit length;Crc verifies the beginning of bit check packet and verifies to subregion
Sub- n is described.
Wherein, the subregion verification description attached bag of upgrade file contents verification packet includes partition id, subregion name, and upgrade file is total
Number, file verification description 1 to file verification describe sub- n.
Specifically, specifically including filename length, filename, file path length, file road in file verification description
Diameter, compressed file size, compressed file crc check value, original document length, original document crc check value.
A3. upgrade file pack arrangement is defined;
Upgrade file packet specifically includes following field contents: regular length upgrade file packet banner string, and packet length rises
Grade packet serial number, partition id, subregion name, partitioned file mode, upgrade file total number, APMB package mode, current file serial number,
APMB package number, APMB package describes sub- n to APMB package description 1 ..., 1 data of APMB package (after compression) ... APMB package n data,
CRC check.
Wherein, its serial number is opposite with the upgrade file packet number in step A1 when defining the upgrade package serial number of upgrade file packet
It answers, the partitioned file mode for defining upgrade file packet is also identical as the definition of partitioned file mode in step A1, i.e. partitioned file
Mode is expressed as monofile subregion, such as boot when being 0, and (read-only file system is as Dan Wen for the non-file partition such as kernel
Part processing);Partitioned file mode is expressed as multifile system subregion, such as non-read-only file system ubi file system when being 1.
The upgrading under subregion verification description is defined when defining the upgrade file total number of upgrade file packet and in step A2
File total number is identical, i.e. definition is that how many file needs to update under 1 subregion;Define the APMB package mould of upgrade file packet
It is specific as follows when formula:
Indicate it is that multifile combines (can be 1 file and be also possible to multiple files) when APMB package mode is 0, APMB package
Indicate it is that 1 very big file (is cut into multiple small documents, and cuts and be put into different liters by monofile cutting when mode is 1
Grade file packet, and a upgrade file packet may include multiple upgrade files, be also possible to one of the file that one is cut
Point).
Upgrade file total number need to be specifically answered when defining the current file serial number of upgrade file packet, and is this definition upgrading text
The serial number of first file under part packet.Assume that current file number is S in the present embodiment.Define the APMB package of upgrade file packet
It is the APMB package mode based on upgrade file packet when number:
Such as when APMB package mode be 0, indicate there be n upgrade file under the packet;The subsequent APMB package followed, which describes son, n
With, and the normal upgrade file of file serial number in son is described, and file serial number s, s+1 ... s+n-1;
When APMB package mode is 1, file S has been cut into n small documents;Subsequent APMB package description only 1 followed
It is a, and the subsegment of the file serial number file S in son is described, and serial number 1,2 ... n;(2 to n in subsequent upgrade file packet
Interior, upgrade package serial number+1 arrives upgrade package serial number+n-1).
The APMB package for defining upgrade file packet describes the period of the day from 11 p.m. to 1 a.m, specifically includes in APMB package description: file serial number, file
Name length, filename, file path length, file path, compressed file size, compressed file CRC, original document
Length, original document CRC, subsegment data length, subsegment CRC, file start-position.
Wherein, file serial number is specifically shown in the APMB package number description of upgrade file packet;Subsegment data length, subsegment CRC are then
Be when APMB package mode be 1 be when, the two fields just come into force;File start-position is then specifically compressed file data whole
Deviation post in a upgrade file packet, when APMB package mode be 1 be when, the field be subsegment data deviation post.
It is specifically that definition needs the file that upgrades by compressed data when defining the APMB package data of upgrade file packet, this
Place it should be noted that when APMB package mode be 1 when, APMB package data only one;When i.e. a file needs to cut, then
The subsegment of all cuttings of this file will all use 1 independent upgrade file packet, and APMB package data are subsegment data.
B. upgrade package generates:
Package processing is carried out using upgrade file of the Service-side tools to each subregion.Each upgrading text is first arranged in tool
The size of part packet;Then the file of each subregion to be upgraded is combined by size, it, will be some according to the definition of step A3
Small file is combined into a upgrade file packet, then by the file declustering of super large at satisfactory multiple upgrade file packets.
Each field information that recording step A2 is defined during package, it is raw after the completion of the file package of all subregions
It verifies and wraps at upgrade file contents.
Upgrade the generation of trigger packet: need by tool the hardware version of the DTV upgraded, upgrades software version
Sheet, software version judgment model, software version difference, the total number of units of upgrading, beginning sequence number, end sequence number, server address,
Upgrade type;Then sub-information is described according to the upgrading that package result obtains upgrade file total number and each subregion to calculate again
Crc value ultimately produces upgrading trigger packet.
C. upgrade process:
The upgrading type information defined according to step A, really whether interface prompt user, subsequently into data receiver stream
Journey.
C1. server end broadcast upgrading trigger packet, upgrade file contents verification packet;
Broadcast upgrading trigger packet, upgrade file contents verification packet, all upgrade file packets are imported into server;Server follows
Circumferential the whole network broadcast upgrading trigger packet and upgrade file contents verification packet;It is high to upgrade trigger packet frequency, content authentication packet frequency;
Then server waits DTV to issue request.
C2. Digital TV Receiving is wrapped and is handled to broadcast upgrading trigger packet, updated contents verification;
There is special process to go to monitor corresponding port after DTV starting, shelves detect the upgrading touching of server broadcast
Give out a contract for a project, which captured, and analyze content, then according to the hardware version of the machine, software version and etc. A1 define each word
Section requires to judge whether the machine meets upgrading;It is required if meeting upgrading, captures updated contents verification packet, and analyze interior
Hold;If not capturing updated contents verification packet within a certain period of time, the packet is skipped over, it should to server application in step C3
Updated contents verification packet is then individually sent to the machine by packet, server.
C3. DTV is to server application upgrade file packet;
C3.1 DTV obtains upgrade file packet to server application;
Application is divided into both of which: 1. fuzzy applications, i.e., to the packet within the scope of server application one, such as application upgrading
The packet of packet serial number 1~100;2. accurate application, if DTV is explicitly finding oneself also to need that upgrade package, then leads to
It crosses upgrade package serial number and requests the bag data (can once request the specific data packet of multiple serial numbers) to server;
C3.2 server receives the request of DTV, analyzes the content of request;
It is if it is fuzzy application, then preferential to send the few packet of momentary request amount, subsequent transmission according to server resource situation
The big packet of request amount makes server resource be in relative equilibrium state;If it is accurately applying for some packet, and there are other again simultaneously
Client is fuzzy to apply for the packet, then preferentially sends the packet to the client accurately applied, visitor of the rear supervention packet to fuzzy application
Family end;
C3.3 DTV sends back the upgrading come to after server application upgrade file packet, then starting to obtain server
Then packet presses the definition of step A3 to upgrade package, reversely extracts the upgrade file of each subregion;If can not receive certain for a long time
A packet then sends accurate application to server, then proceedes to receive upgrade package;
If C3.4 still can not receive data, terminate upgrade package reception, sends the reason of upgrading fails and knot to server
Fruit, and terminate to upgrade;
C3.5 is receiving all packets, then first data are carried out with the Accuracy Verification of itself, including subregion number, each point
The verifying such as the upgrade file number under area, the file size in packet, file crc, it is ensured that is received is an accurate upgrade package;
Secondly it after having said that packet collects, defines, packet is analyzed, the upgrading of each subregion of the compressive state extracted according to step A3
File (including restoring the file cut), and verify data relevant in packet to the upgrade file contents that step A2 is defined and carry out
It compares, handling if mistake by C3.4 (terminates upgrade package to receive, to the reason of server transmission upgrading failure and as a result, simultaneously
Terminate upgrading);If file is all correct, compressed file is unziped it, obtains the upgrade file of reset condition, and with upgrading
File content verification packet in original file information be compared, if mistake if by C3.4 processing ((terminate upgrade package reception,
The reason of upgrading fails is sent to server and as a result, and terminates to upgrade));C4. is entered step if correct
C4. new software is updated:
The upgrading type information defined after the completion of data receiver again according to step A prompts user's selection.No matter rise immediately
Grade upgrading or booting upgrading, are required to carry out software upgrading.
Software upgrading peace looks for subregion to carry out, and obtains the specific write-in side of partitioned file according to partitioned file pattern information
Method;The operating method of usual monofile subregion is to wipe entire subregion, and the file of the subregion is then written;If subregion is mostly literary
Part system partitioning goes to replace the respective file under original path then according to the path of upgrade file problem.All Files have updated
Cheng Hou, transmission upgrade successfully information and restart DTV after determining that server receives information to server.
C5. server end count updating result, and if carry out upgrading data analysis:
After upgrading the regular hour, the updating result information that server feeds back each digital television client is carried out
Statistics, analysis, generate updating result feedback form.
In summary, in bi-directional digital television upgrade method of the invention, by formulating digital TV upgrading packet rule, with
On the basis of subregion, the updated contents under each subregion are packaged by the rule for looking for step A to formulate, scattered small documents are packaged
The big file packet being sized at one, the file division of capacity super large is transmitted at the small documents packet of specified size;
Thus alleviating DTV frequently please apply for that super large file causes server to provide to server application small documents or to service
The problem of source anxiety, meanwhile, to server application upgrade file packet in such a way that fuzzy application and accurate application combine, make
Server can more efficiently using its resource, to promote upgrading efficiency.
It is understood that the principle that embodiment of above is intended to be merely illustrative of the present and the exemplary implementation that uses
Mode, however the present invention is not limited thereto.For those skilled in the art, essence of the invention is not being departed from
In the case where mind and essence, various changes and modifications can be made therein, these variations and modifications are also considered as protection scope of the present invention.
Claims (9)
1. a kind of bi-directional digital television upgrade method, which comprises the following steps:
A. upgrade package structure is defined;
A1. definition upgrading trigger packet;
A2. upgrade file contents verification packet is defined;
A3. upgrade file packet is defined;
B. upgrade package is generated;
C. enter upgrading process:
C1. server broadcast upgrading trigger packet, upgrade file contents verification packet;
C2. Digital TV Receiving is to broadcast upgrading trigger packet, updated contents verification packet, and handles;
C3. DTV is to server application upgrade file packet;
C4. DTV verifies updated contents and carries out software upgrading update;
C5. server statistics updating result, and carry out data analysis.
2. a kind of bi-directional digital television upgrade method according to claim 1, which is characterized in that defined in the step A1
Definition the following contents is specifically included when upgrading trigger packet: regular length upgrades trigger packet banner string, and upgrading triggers packet length,
Hardware version, updating software release, software version judgment model, software version difference, the total number of units of upgrading, starts sequence number, knot
Beam sequence number, server address, upgrading type, upgrade file packet number, subregion number, n divisional description, crc check bit,
Wherein, n divisional description is specially divisional description 1 to the sub- n of divisional description.
3. a kind of bi-directional digital television upgrade method according to claim 2, which is characterized in that the upgrading trigger packet is long
Degree is length of the hardware version to end-of-packet, and the crc including file inclusion tail verifies bit length;
The region of crc verification bit check is that packet starts to the sub- n of divisional description, when verification specifically to the content in this section into
Row crc is calculated;
Define in the software version judgment model: 0 indicates not judging that software version directly upgrades;1 indicates set-top box software version
This plus software version difference are equal to version to be upgraded;2 expression set-top box software versions subtract software version difference equal to be upgraded
Version;
Define in the upgrading type: 0 indicates foreground mandatory upgrade, and 1 indicates backstage mandatory upgrade, and 2 indicate the optional liter in foreground
Grade, 3 indicate the optional upgrading in backstage;
The divisional description attached bag includes subregion ID number, subregion name, partitioned file mode, upgrade file number;Wherein, described point
It is monofile subregion that 0 is defined in area file mode, and 1 is multifile system subregion.
4. a kind of bi-directional digital television upgrade method according to claim 2, which is characterized in that defined in the step A2
Upgrade file contents verification packet is to specifically include definition the following contents: regular length upgrade file contents verify packet tab character
String, upgrade file contents verification packet length, subregion number, n subregion verification description, crc check bit, wherein the n points
Area's verification description is specially that subregion verification description 1 to subregion verification describes sub- n.
5. a kind of bi-directional digital television upgrade method according to claim 4, which is characterized in that the upgrade file contents
The field of verification packet length includes subregion number plus crc verification bit length;Crc verification bit check packet beginning is retouched to subregion verification
State sub- n;
The subregion verification description attached bag includes partition id, subregion name, upgrade file total number, n file verification description, institute
N file verification is stated to describe son and specifically include file verification description 1 to describe sub- n to file verification;Wherein, the file verification
Description attached bag includes filename length, filename, file path length, file path, compressed file size, compressed text
Part crc check value, original document length, original document crc check value.
6. a kind of bi-directional digital television upgrade method according to claim 5, which is characterized in that defined in the step A3
Specifically include definition the following contents when upgrade file packet: regular length upgrade file packet banner string, upgrade file packet length,
Upgrade package serial number, partition id, subregion name, partitioned file mode, upgrade file total number, APMB package mode, current file sequence
Number, APMB package number, n APMB package description, 1 data of APMB package to APMB package n data, CRC check;Wherein, the n packet
File describes attached bag and includes APMB package description 1 to describe sub- n to APMB package.
7. a kind of bi-directional digital television upgrade method according to claim 6, which is characterized in that defined in the step A3
It defines that upgrade file packet number is corresponding in upgrade package serial number and step A1, defines 0 in the partitioned file mode of the step A3
It is multifile system subregion for monofile subregion, 1;Definition point in upgrade file total number and step A2 is defined in the step A3
Upgrade file total number under area's verification description is identical;
Define in the APMB package mode: 0 indicates multifile combination, and 1 indicates monofile cutting, and the APMB package number is to be based on
APMB package mode, when APMB package mode be 0, indicate there be n upgrade file under the packet, when APMB package mode be 1, indicate under the packet
A upgrade file S be cut into n small documents, subsequent APMB package description only 1 followed, and describing in son
The subsegment of file serial number upgrade file S, and serial number 1,2 ... n;
The APMB package describes attached bag and includes file serial number, filename length, filename, file path length, file path, compression
File size, compressed file CRC, original document length, original document CRC, subsegment data length, subsegment CRC, text afterwards
Part starting position;Wherein, when the APMB package mode is 1, subsegment data length, subsegment CRC the two fields just come into force, institute
Stating file start-position is deviation post of the compressed file data in entire upgrade file packet, when APMB package mode is 1, text
Part starting position is the deviation post of subsegment data.
8. a kind of bi-directional digital television upgrade method according to claim 7, which is characterized in that generated in the step B
Upgrade package is to carry out package processing to the upgrade file of each subregion using the tool of server end, and specifically include: first setting is every
The size of a upgrade package;Then the file of each subregion to be upgraded is combined by size, and according in step A3
Some small files are combined into a upgrade file packet, then by the file declustering of super large at satisfactory multiple by definition
Upgrade file packet;The specific standard for differentiating size can be set according to actual needs;
Each field information that recording step A2 is defined during package is generated and is risen after the completion of the file package of all subregions
Grade file content verification packet;
Then need by tool the hardware version of the DTV upgraded, updating software release, software version judge mould
Formula, software version difference, the total number of units of upgrading start sequence number, end sequence number, server address, upgrading type;Then basis
The upgrading that package result obtains upgrade file total number and each subregion describes sub-information and calculates crc value again, ultimately produces liter
Grade trigger packet.
9. a kind of bi-directional digital television upgrade method according to claim 8, which is characterized in that the step C1 is specifically wrapped
It includes: broadcast upgrading trigger packet, upgrade file contents verification packet, upgrade file packet is imported into server;Server is recycled to the whole network
Broadcast upgrading trigger packet and upgrade file contents verification packet;And DTV is waited to issue request;
The step C2 is specifically included: DTV starts special process and goes to monitor corresponding port, when detecting server
The upgrading trigger packet of broadcast and content is captured and analyzed, number is then judged according to each field defined in upgrading trigger packet
Whether word TV, which meets upgrading, requires;If meeting upgrading to require, updated contents verification packet is captured, and analyze content;If
Updated contents verification packet is not captured in certain time, then skips over updated contents verification packet, and to server Shen in step C3
Please updated contents verification packet, server then individually by updated contents verification packet is sent to DTV;
The step C3 is specifically included:
C3.1 DTV obtains upgrade file packet to server application: where application is divided into both of which: the first is fuzzy
Application, second is accurate application;
C3.2 server receives the request of DTV, analyzes the content of request;If it is fuzzy application, then according to service
Device resource situation, preferential to send the few upgrade file packet of momentary request amount, the big upgrade file packet of subsequent transmission request amount makes to take
Business device resource is in relative equilibrium state;If it is accurately applying for some upgrade file packet, and there are other DTVs again simultaneously
End is fuzzy to apply for the upgrade file packet, then preferentially sends the upgrade file packet to the client accurately applied, the upgrading of rear supervention
Client of the file packet to fuzzy application;
C3.3 DTV sends back the upgrade file come to after server application upgrade file packet, then starting to obtain server
Then the upgrade file of each subregion is reversely extracted upgrade file packet by the definition in upgrade file packet by packet;If when long
Between can not receive some upgrade file packet, then send accurate application to server, then proceed to receive upgrade file packet;
If C3.4 still can not receive data, terminate the reception of upgrade file packet, sends the reason of upgrading fails and knot to server
Fruit, and terminate to upgrade;
C3.5 carries out the Accuracy Verification of itself after receiving all upgrade file packets to data first, including subregion number, each
The verifying of upgrade file number under subregion, the file size in packet, file crc, it is right secondly according to the definition of upgrade file packet
Upgrade file packet is analyzed, and extracts the upgrade file of each subregion of compressive state, and verify in packet with upgrade file contents
The data of definition are compared, if data are inconsistent, terminate the reception of upgrade file packet, the original of upgrading failure is sent to server
Because and as a result, and terminate to upgrade;
If file data is consistent, compressed file is unziped it, obtains the upgrade file of reset condition, and literary with upgrading
Original file information in part content authentication packet is compared, if data are inconsistent, terminates the reception of upgrade file packet, to service
Device sends the reason of upgrading failure and as a result, and terminates to upgrade;If data unanimously if enter step C4;
C4. new software is updated:
Software upgrading is carried out according to subregion, and obtains the specific wiring method of partitioned file according to partitioned file pattern information;If
Subregion is that multifile system subregion goes to replace the respective file under original path then according to the path of upgrade file problem, is owned
After the completion of file updates, transmission upgrades successfully information and restarts DTV after determining that server receives information to server.
C5. server statistics updating result, and ascending series are carried out according to analysis:
The updating result information that each digital television client is fed back is counted, is analyzed by server, generates updating result
Feedback form.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811301859.0A CN109151590B (en) | 2018-11-02 | 2018-11-02 | Bidirectional digital television upgrading method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811301859.0A CN109151590B (en) | 2018-11-02 | 2018-11-02 | Bidirectional digital television upgrading method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109151590A true CN109151590A (en) | 2019-01-04 |
CN109151590B CN109151590B (en) | 2021-01-26 |
Family
ID=64807480
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811301859.0A Active CN109151590B (en) | 2018-11-02 | 2018-11-02 | Bidirectional digital television upgrading method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109151590B (en) |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101001316A (en) * | 2006-12-31 | 2007-07-18 | 北京广博数字电视科技有限公司 | Software staging management method and system of set-top box |
CN101710934A (en) * | 2009-11-25 | 2010-05-19 | 中兴通讯股份有限公司 | Set-top box edition upgrading method and system |
CN102222011A (en) * | 2011-06-28 | 2011-10-19 | 广东中大讯通软件科技有限公司 | Software upgrading method for set-top box and set-top box |
CN102253850A (en) * | 2011-07-08 | 2011-11-23 | 烽火通信科技股份有限公司 | Incremental software updating method of internet protocol television (IPTV) set top box |
CN102385520A (en) * | 2011-09-06 | 2012-03-21 | 四川金网通电子科技有限公司 | USB (Universal Serial Bus) upgrading method based on partition name for digital television set-top box |
CN102419713A (en) * | 2011-12-31 | 2012-04-18 | 四川长虹电器股份有限公司 | Method for upgrading software of nandflash-based set-top box |
CN102890638A (en) * | 2012-09-29 | 2013-01-23 | 深圳市九洲电器有限公司 | Upgrade method of STB (set top box) |
CN103458298A (en) * | 2012-06-01 | 2013-12-18 | 北京四达时代软件技术股份有限公司 | Method and system or upgrading set top box software |
CN103701856A (en) * | 2013-11-29 | 2014-04-02 | 四川长虹电器股份有限公司 | Method for defining and acquiring upgrade package of terminal equipment |
US20150100986A1 (en) * | 2013-10-08 | 2015-04-09 | Wistron Corp. | Controlling method for recording digital television programs |
CN106572372A (en) * | 2016-11-14 | 2017-04-19 | 青岛海信宽带多媒体技术有限公司 | Set-top box upgrading method and set-top box |
CN107181971A (en) * | 2017-05-22 | 2017-09-19 | 华为软件技术有限公司 | The upgrade method and relevant device of a kind of IPTV terminal |
-
2018
- 2018-11-02 CN CN201811301859.0A patent/CN109151590B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101001316A (en) * | 2006-12-31 | 2007-07-18 | 北京广博数字电视科技有限公司 | Software staging management method and system of set-top box |
CN101710934A (en) * | 2009-11-25 | 2010-05-19 | 中兴通讯股份有限公司 | Set-top box edition upgrading method and system |
CN102222011A (en) * | 2011-06-28 | 2011-10-19 | 广东中大讯通软件科技有限公司 | Software upgrading method for set-top box and set-top box |
CN102253850A (en) * | 2011-07-08 | 2011-11-23 | 烽火通信科技股份有限公司 | Incremental software updating method of internet protocol television (IPTV) set top box |
CN102385520A (en) * | 2011-09-06 | 2012-03-21 | 四川金网通电子科技有限公司 | USB (Universal Serial Bus) upgrading method based on partition name for digital television set-top box |
CN102419713A (en) * | 2011-12-31 | 2012-04-18 | 四川长虹电器股份有限公司 | Method for upgrading software of nandflash-based set-top box |
CN103458298A (en) * | 2012-06-01 | 2013-12-18 | 北京四达时代软件技术股份有限公司 | Method and system or upgrading set top box software |
CN102890638A (en) * | 2012-09-29 | 2013-01-23 | 深圳市九洲电器有限公司 | Upgrade method of STB (set top box) |
US20150100986A1 (en) * | 2013-10-08 | 2015-04-09 | Wistron Corp. | Controlling method for recording digital television programs |
CN103701856A (en) * | 2013-11-29 | 2014-04-02 | 四川长虹电器股份有限公司 | Method for defining and acquiring upgrade package of terminal equipment |
CN106572372A (en) * | 2016-11-14 | 2017-04-19 | 青岛海信宽带多媒体技术有限公司 | Set-top box upgrading method and set-top box |
CN107181971A (en) * | 2017-05-22 | 2017-09-19 | 华为软件技术有限公司 | The upgrade method and relevant device of a kind of IPTV terminal |
Also Published As
Publication number | Publication date |
---|---|
CN109151590B (en) | 2021-01-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105262627B (en) | Firmware upgrading method, device and system | |
CN110347746B (en) | Heterogeneous database synchronous data consistency checking method and device | |
CN107277016B (en) | Authority verification method and device | |
CN101794222A (en) | Software version collecting method, management system and software upgrading detection method and system | |
EP3249882A1 (en) | Data uploading method, device and system | |
CN109684155B (en) | Monitoring configuration method, device, equipment and readable storage medium | |
CN110990335B (en) | Log archiving method, device, equipment and computer readable storage medium | |
CN104065715A (en) | Method for resource sharing on basis of cloud platform and cloud platform | |
CN109669795A (en) | Crash info processing method and processing device | |
CN109815112B (en) | Data debugging method and device based on functional test and terminal equipment | |
CN106485140A (en) | A kind of upgrade method of electric energy meter and upgrade-system | |
CN110851359A (en) | Application program testing method and device and server | |
WO2022142153A1 (en) | Electricity meter upgrading method and system, smart meter, and storage medium | |
CN112953983A (en) | SFTP transmission method and device | |
CN108039960B (en) | Configuration information issuing method and server | |
CN109151587A (en) | Loading method, device, TV and the readable storage medium storing program for executing of HbbTV application | |
WO2016086784A1 (en) | Method, apparatus and system for collecting webpage data | |
CN106126419A (en) | The adjustment method of a kind of application program and device | |
CN108388606A (en) | A kind of method and computer equipment verifying library literary name section name in Sql sentences | |
CN102622254A (en) | Method and system for processing television outage | |
CN109151590A (en) | A kind of bi-directional digital television upgrade method | |
CN110401669B (en) | Identity verification method and related equipment | |
CN109214189B (en) | Method, device, storage medium and electronic equipment for identifying program bugs | |
CN109189455A (en) | A kind of network digital TV upgrade method | |
KR101351819B1 (en) | Product page service system and method |
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 | ||
EE01 | Entry into force of recordation of patent licensing contract |
Application publication date: 20190104 Assignee: Sichuan Changhong Xinwang Technology Co.,Ltd. Assignor: SICHUAN CHANGHONG ELECTRIC Co.,Ltd. Contract record no.: X2023980043949 Denomination of invention: A Bidirectional Digital TV Upgrade Method Granted publication date: 20210126 License type: Common License Record date: 20231030 |
|
EE01 | Entry into force of recordation of patent licensing contract |