CN103139644B - A kind of method of sequence numbers match and digital TV terminal - Google Patents

A kind of method of sequence numbers match and digital TV terminal Download PDF

Info

Publication number
CN103139644B
CN103139644B CN201310039699.8A CN201310039699A CN103139644B CN 103139644 B CN103139644 B CN 103139644B CN 201310039699 A CN201310039699 A CN 201310039699A CN 103139644 B CN103139644 B CN 103139644B
Authority
CN
China
Prior art keywords
sequence number
segment sequence
machine
description data
upgrade
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.)
Expired - Fee Related
Application number
CN201310039699.8A
Other languages
Chinese (zh)
Other versions
CN103139644A (en
Inventor
李劲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NANTONG COSHIP ELECTRONICS CO Ltd
Original Assignee
NANTONG COSHIP ELECTRONICS CO Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NANTONG COSHIP ELECTRONICS CO Ltd filed Critical NANTONG COSHIP ELECTRONICS CO Ltd
Priority to CN201310039699.8A priority Critical patent/CN103139644B/en
Publication of CN103139644A publication Critical patent/CN103139644A/en
Application granted granted Critical
Publication of CN103139644B publication Critical patent/CN103139644B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a kind of method and digital TV terminal of sequence numbers match, wherein, method comprises: the upgrade request of upgrade description data is carried in search; According to the chopping rule of the upgrade description data instruction in the upgrade request searched, the machine complete sequence number is divided at least one the machine segment sequence number; Segmentation mask value corresponding with upgrade description data respectively for each the machine segment sequence number is combined, obtains corresponding at least one the machine segment sequence number to be matched; When judging that the numerical value of each the machine segment sequence number to be matched is in coupling codomain corresponding in upgrade description data, determining described the machine complete sequence, number the match is successful.Adopt the present invention, by the segmentation of the machine complete sequence, to adapt to complicated applied environment, and flexible and changeable demand can be met.

Description

A kind of method of sequence numbers match and digital TV terminal
Technical field
The present invention relates to communication technical field, particularly relate to a kind of method and digital TV terminal of sequence numbers match.
Background technology
The sequence number of digital TV terminal is the unique designation for identifying a digital TV terminal, be mainly used in carrying out OTA(Over-the-AirTechnology, over the air) large net upgrading time, judge whether the sequence number be stored in digital TV terminal belongs to NIT(NetworkInformationTable, network information table) table in machine sequencing scope to be upgraded, if be judged as YES, then sequence numbers match success respond upgrading, otherwise does not upgrade.
In the prior art, because digital cable customers gets more and more, digital TV terminal also gets more and more, make the sequence number of digital TV terminal more and more longer, become increasingly complex, therefore, general suffix portion of preserving this machine models complete sequence number in digital TV terminal, when OTA upgrades, sequence number in the suffix portion of the sequence number that this locality stores by digital TV terminal and upgrade request compares, in such cases because information is imperfect, the risk of makeing mistakes is had when making front end make OTA upgrading stream, and also may cause the situation of upgrading by mistake during OTA upgrading.
Summary of the invention
Embodiment of the present invention technical problem to be solved is, provides a kind of method and digital TV terminal of sequence numbers match, and the situation flowing out wrong or upgrading by mistake of can effectively avoiding upgrading occurs.
In order to solve the problems of the technologies described above, embodiments provide a kind of method of sequence numbers match, comprising:
The upgrade request of upgrade description data is carried in search;
According to the chopping rule of the upgrade description data instruction in the upgrade request searched, the machine complete sequence number is divided at least one the machine segment sequence number;
Segmentation mask value corresponding with upgrade description data respectively for each the machine segment sequence number is combined, obtains corresponding at least one the machine segment sequence number to be matched;
When judging that the numerical value of each the machine segment sequence number to be matched is in coupling codomain corresponding in upgrade description data, determining described the machine complete sequence, number the match is successful.
Wherein, described upgrade request is by the request being used to indicate terminal staging generated after background server process, and it carries chopping rule, each segmentation mask value and each coupling codomain that upgrade description data comprises.
Wherein, carry the upgrade request of upgrade description data in described search before, also comprise:
The machine complete sequence number is stored with character string forms.
Wherein, described segmentation mask value corresponding with upgrade description data respectively for each the machine segment sequence number to be combined, obtains corresponding at least one the machine segment sequence number to be matched, comprising:
The segmentation mask value that the data of each the machine segment sequence number are corresponding with upgrade description data is respectively carried out and computing, to reset the position not needing in the machine segment sequence number to mate, and obtaining corresponding at least one the machine segment sequence number to be matched, described the machine segment sequence number to be matched comprises in the machine segment sequence number to be needed to carry out the position of mating and/or the position be cleared.
Wherein, described when judging that the numerical value of each the machine segment sequence number to be matched is in coupling codomain corresponding in upgrade description data, before determining described the machine complete sequence number the match is successful, also comprise:
The form of array is adopted to store end value in initial value in each the machine segment sequence number to be matched, upgrade description data in each coupling codomain, upgrade description data in each coupling codomain;
Judge whether the numerical value of each the machine segment sequence number to be matched in array is less than or equal to end value corresponding in array, and be all more than or equal to initial value corresponding in array;
If the numerical value of each the machine segment sequence number to be matched is less than or equal to corresponding end value and is more than or equal to corresponding initial value, then judge that the numerical value of each the machine segment sequence number to be matched is in coupling codomain corresponding in upgrade description data.
Correspondingly, the embodiment of the present invention additionally provides a kind of digital TV terminal, comprising:
Search module, for searching for the upgrade request of carrying upgrade description data;
Segmentation module, for the chopping rule according to the upgrade description data instruction in the upgrade request searched, is divided at least one the machine segment sequence number by the machine complete sequence number;
Binding modules, for segmentation mask value corresponding with upgrade description data respectively for each the machine segment sequence number being combined, obtains corresponding at least one the machine segment sequence number to be matched;
First determination module, for when judging that the numerical value of each the machine segment sequence number to be matched is in coupling codomain corresponding in upgrade description data, determining described the machine complete sequence, number the match is successful.
Wherein, the upgrade request searched in described search module is by the request being used to indicate terminal staging generated after background server process, and it carries chopping rule, each segmentation mask value and each coupling codomain that upgrade description data comprises.
Wherein, also comprise:
Sequence number memory module, for storing the machine complete sequence number with character string forms.
Wherein, described binding modules comprises:
Arithmetic element, the segmentation mask value corresponding with upgrade description data respectively for the data of each the machine segment sequence number is carried out and computing, to reset the position not needing in the machine segment sequence number to mate, and obtaining corresponding at least one the machine segment sequence number to be matched, described the machine segment sequence number to be matched comprises in the machine segment sequence number to be needed to carry out the position of mating and/or the position be cleared.
Wherein, also comprise:
Storage of array module, stores end value in initial value in each the machine segment sequence number to be matched, upgrade description data in each coupling codomain, upgrade description data in each coupling codomain for adopting the form of array;
Judge module, for judging whether the numerical value of each the machine segment sequence number to be matched in array is less than or equal to end value corresponding in array, and is all more than or equal to initial value corresponding in array;
Second determination module, if the numerical value for each the machine segment sequence number to be matched is less than or equal to corresponding end value and is more than or equal to corresponding initial value, then judge that the numerical value of each the machine segment sequence number to be matched is in coupling codomain corresponding in upgrade description data.
Implement the embodiment of the present invention, there is following beneficial effect:
The embodiment of the present invention is by carrying out segmentation to the machine complete sequence number, mate again after each the machine segment sequence number is combined with corresponding segmentation mask value, when the match is successful for each the machine segment sequence number, the match is successful for the machine complete sequence ability, because take the mode that segmentation is compared, instead of only intercept the part in the machine complete sequence number with otherness and compare, thus make can there be more complete information when mating the machine complete sequence, to avoid the situation of upgrading by mistake, and complicated applied environment can be adapted to, meet flexible and changeable demand.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of the method for a kind of sequence numbers match that the embodiment of the present invention provides;
Fig. 2 is the schematic flow sheet of the method for the another kind of sequence numbers match that the embodiment of the present invention provides;
Fig. 3 is the structural representation of a kind of digital TV terminal that the embodiment of the present invention provides;
Fig. 4 is the structural representation of the another kind of digital TV terminal that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Referring to Fig. 1, is the schematic flow sheet of the method for a kind of sequence numbers match that the embodiment of the present invention provides.As shown in Figure 1, said method comprising the steps of of the embodiment of the present invention:
S101, the upgrade request of upgrade description data is carried in search;
Digital TV terminal search upgrade request, and judge whether response upgrading according to the upgrade description data carried in upgrade request.Described upgrade request is by the request being used to indicate terminal staging generated after background server process, and it carries chopping rule, each segmentation mask value and each coupling codomain that upgrade description data comprises.When background server makes OTA upgrading stream, the initial value of sequence number range of the figure place of the segments of sequence number, each segmentation, each segmentation mask value and each segmentation and the information of end value can be inserted in the private setting descriptor of upgrading stream NIT table, thus generate the upgrade request of carrying upgrade description data.
S102, according to the chopping rule of the upgrade description data instruction in the upgrade request searched, is divided at least one the machine segment sequence number by the machine complete sequence number;
Described chopping rule comprises the figure place of segments and each segmentation determining sequence number, the machine complete sequence number is divided at least one the machine segment sequence number according to the chopping rule in upgrade description data by digital TV terminal, such as, the machine complete sequence number is 17 figure places, wherein a kind of possible chopping rule can be 4 for segments, wherein the figure place of 3 segmentations is 5, the figure place of another segmentation is 2, namely 4 the machine segment sequence number are had, there are 3 the machine segment sequence number to be 5 figure places, have 1 the machine segment sequence number to be 2 figure places.
S103, combines segmentation mask value corresponding with upgrade description data respectively for each the machine segment sequence number, obtains corresponding at least one the machine segment sequence number to be matched;
Segmentation mask value corresponding in upgrade description data can be made up of 1 and 0,1 represents the position needing coupling, 0 represents the position not needing to mate, segmentation mask value corresponding with upgrade description data respectively for each the machine segment sequence number is combined, can mate by which needs of unrestricted choice, make background server can control the sequence number range of the digital TV terminal for upgrading flexibly.
S104, when judging that the numerical value of each the machine segment sequence number to be matched is in coupling codomain corresponding in upgrade description data, determining described the machine complete sequence, number the match is successful;
When judging that the numerical value of each the machine segment sequence number to be matched is in coupling codomain corresponding in upgrade description data, determining described the machine complete sequence, number the match is successful, and now digital TV terminal can respond upgrading.
The embodiment of the present invention is by carrying out segmentation to the machine complete sequence number, mate again after each the machine segment sequence number is combined with corresponding segmentation mask value, when the match is successful for each the machine segment sequence number, the match is successful for the machine complete sequence ability, because take the mode that segmentation is compared, so can not be number long because of the machine complete sequence, and the part in can only intercepting the machine complete sequence number with otherness compares, make can there be more complete information when mating the machine complete sequence, to adapt to complicated applied environment, and meet flexible and changeable demand, the problem of makeing mistakes is had when effectively avoiding front end to make OTA upgrading stream, and also may cause the situation of upgrading by mistake when also effectively prevent OTA upgrading.
Referring to Fig. 2, is the schematic flow sheet of the method for the another kind of sequence numbers match that the embodiment of the present invention provides.As shown in Figure 2, said method comprising the steps of of the embodiment of the present invention:
S201, stores the machine complete sequence number with character string forms;
The machine complete sequence number stores in a flash memory with character string forms by digital TV terminal.Because use character string forms to store, there will not be the situation that in prior art, integer data overflows.
S202, the upgrade request of upgrade description data is carried in search;
Digital TV terminal search upgrade request, and judge whether response upgrading according to the upgrade description data carried in upgrade request.Described upgrade request is by the request being used to indicate terminal staging generated after background server process, and it carries chopping rule, each segmentation mask value and each coupling codomain that upgrade description data comprises.When background server makes OTA upgrading stream, the initial value of sequence number range of the figure place of the segments of sequence number, each segmentation, each segmentation mask value and each segmentation and the information of end value can be inserted in the private setting descriptor of upgrading stream NIT table, thus generate the upgrade request of carrying upgrade description data.
S203, according to the chopping rule of the upgrade description data instruction in the upgrade request searched, is divided at least one the machine segment sequence number by the machine complete sequence number;
Described chopping rule comprises the figure place of segments and each segmentation determining sequence number, the machine complete sequence number is divided at least one the machine segment sequence number according to the chopping rule in upgrade description data by digital TV terminal, such as, the machine complete sequence number is 17 figure places, wherein a kind of possible chopping rule can be 4 for segments, wherein the figure place of 3 segmentations is 5, the figure place of another segmentation is 2, namely 4 the machine segment sequence number are had, there are 3 the machine segment sequence number to be 5 figure places, have 1 the machine segment sequence number to be 2 figure places.
S204, the segmentation mask value that the data of each the machine segment sequence number are corresponding with upgrade description data is respectively carried out and computing, to reset the position not needing in the machine segment sequence number to mate, and obtaining corresponding at least one the machine segment sequence number to be matched, described the machine segment sequence number to be matched comprises in the machine segment sequence number to be needed to carry out the position of mating and/or the position be cleared;
Segmentation mask value corresponding in upgrade description data can be made up of 1 and 0, 1 represents the position needing coupling, 0 represents the position not needing to mate, segmentation mask value corresponding with upgrade description data respectively for each the machine segment sequence number is carried out and computing, the position not needing in the machine segment sequence number to mate can be reset, and retain the position needing to carry out mating, the machine obtained segment sequence number to be matched comprises in the machine segment sequence number to be needed to carry out the position of mating and/or the position be cleared, by each the machine segment sequence number and corresponding segmentation mask value are combined, which can mate by unrestricted choice needs, make background server can control the sequence number range of the digital TV terminal for upgrading flexibly.
S205, adopts the form of array to store end value in initial value in each the machine segment sequence number to be matched, upgrade description data in each coupling codomain, upgrade description data in each coupling codomain;
Digital TV terminal can store the machine segment sequence number to be matched, initial value, end value respectively by 3 number groups, so that whether more each the machine segment sequence number to be matched is between corresponding initial value and the end value of correspondence.
S206, judges whether the numerical value of each the machine segment sequence number to be matched in array is less than or equal to end value corresponding in array, and is more than or equal to initial value corresponding in array;
S207, if the numerical value of each the machine segment sequence number to be matched is less than or equal to corresponding end value and is more than or equal to corresponding initial value, then judge that the numerical value of each the machine segment sequence number to be matched is in coupling codomain corresponding in upgrade description data;
S208, when judging that the numerical value of each the machine segment sequence number to be matched is in coupling codomain corresponding in upgrade description data, determining described the machine complete sequence, number the match is successful;
When judging that the numerical value of each the machine segment sequence number to be matched is in coupling codomain corresponding in upgrade description data, determining described the machine complete sequence, number the match is successful, and now digital TV terminal can respond upgrading.
The embodiment of the present invention is by carrying out segmentation to the machine complete sequence number, mate again after each the machine segment sequence number is combined with corresponding segmentation mask value, when the match is successful for each the machine segment sequence number, the match is successful for the machine complete sequence ability, because take the mode that segmentation is compared, so can not be number long because of the machine complete sequence, and the part in can only intercepting the machine complete sequence number with otherness compares, make can there be more complete information when mating the machine complete sequence, to adapt to complicated applied environment, and meet flexible and changeable demand, the problem of makeing mistakes is had when effectively avoiding front end to make OTA upgrading stream, and also may cause the situation of upgrading by mistake when also effectively prevent OTA upgrading.
Refer to Fig. 3, be the structural representation of a kind of digital TV terminal 1 that the embodiment of the present invention provides, described digital TV terminal 1 comprises: search module 10, segmentation module 20, binding modules 30, first determination module 40.
Wherein, described search module 10, for searching for the upgrade request of carrying upgrade description data;
Described search module 10 searches for upgrade request, makes digital TV terminal 1 judge whether response upgrading according to the upgrade description data carried in upgrade request.The upgrade request searched in described search module 10 is by the request being used to indicate terminal staging generated after background server process, and it carries chopping rule, each segmentation mask value and each coupling codomain that upgrade description data comprises.When background server makes OTA upgrading stream, the initial value of sequence number range of the figure place of the segments of sequence number, each segmentation, each segmentation mask value and each segmentation and the information of end value can be inserted in the private setting descriptor of upgrading stream NIT table, thus generate the upgrade request of carrying upgrade description data.
Described segmentation module 20, for the chopping rule according to the upgrade description data instruction in the upgrade request searched, is divided at least one the machine segment sequence number by the machine complete sequence number;
Described chopping rule comprises the figure place of segments and each segmentation determining sequence number, the machine complete sequence number is divided at least one the machine segment sequence number according to the chopping rule in upgrade description data by described segmentation module 20, such as, the machine complete sequence number is 17 figure places, wherein a kind of possible chopping rule can be 4 for segments, wherein the figure place of 3 segmentations is 5, the figure place of another segmentation is 2, namely 4 the machine segment sequence number are had, there are 3 the machine segment sequence number to be 5 figure places, have 1 the machine segment sequence number to be 2 figure places.
Described binding modules 30, for segmentation mask value corresponding with upgrade description data respectively for each the machine segment sequence number being combined, obtains corresponding at least one the machine segment sequence number to be matched;
Segmentation mask value corresponding in upgrade description data can be made up of 1 and 0,1 represents the position needing coupling, 0 represents the position not needing to mate, segmentation mask value corresponding with upgrade description data respectively for each the machine segment sequence number combines by described binding modules 30, can mate by which needs of unrestricted choice, make background server can control the sequence number range of the digital TV terminal 1 for upgrading flexibly.
Described first determination module 40, for when judging that the numerical value of each the machine segment sequence number to be matched is in coupling codomain corresponding in upgrade description data, determining described the machine complete sequence, number the match is successful;
When judging that the numerical value of each the machine segment sequence number to be matched is in coupling codomain corresponding in upgrade description data, described first determination module 40 determines described the machine complete sequence, and number the match is successful, and now digital TV terminal 1 can respond upgrading.
The embodiment of the present invention is by carrying out segmentation to the machine complete sequence number, mate again after each the machine segment sequence number is combined with corresponding segmentation mask value, when the match is successful for each the machine segment sequence number, the match is successful for the machine complete sequence ability, because take the mode that segmentation is compared, so can not be number long because of the machine complete sequence, and the part in can only intercepting the machine complete sequence number with otherness compares, make can there be more complete information when mating the machine complete sequence, to adapt to complicated applied environment, and meet flexible and changeable demand, the problem of makeing mistakes is had when effectively avoiding front end to make OTA upgrading stream, and also may cause the situation of upgrading by mistake when also effectively prevent OTA upgrading.
Refer to Fig. 4, be the structural representation of the another kind of digital TV terminal 1 that the embodiment of the present invention provides, described digital TV terminal 1 comprises: sequence number memory module 50, search module 10, segmentation module 20, binding modules 30, storage of array module 60, judge module 70, second determination module 80, first determination module 40.
Wherein, described sequence number memory module 50, for storing the machine complete sequence number with character string forms;
The machine complete sequence number stores in a flash memory with character string forms by described sequence number memory module 50.Because use character string forms to store, there will not be the situation that in prior art, integer data overflows.
Described search module 10, for searching for the upgrade request of carrying upgrade description data;
Described search module 10 searches for upgrade request, makes digital TV terminal 1 judge whether response upgrading according to the upgrade description data carried in upgrade request.The upgrade request searched in described search module 10 is by the request being used to indicate terminal staging generated after background server process, and it carries chopping rule, each segmentation mask value and each coupling codomain that upgrade description data comprises.When background server makes OTA upgrading stream, the initial value of sequence number range of the figure place of the segments of sequence number, each segmentation, each segmentation mask value and each segmentation and the information of end value can be inserted in the private setting descriptor of upgrading stream NIT table, thus generate the upgrade request of carrying upgrade description data.
Described segmentation module 20, for the chopping rule according to the upgrade description data instruction in the upgrade request searched, is divided at least one the machine segment sequence number by the machine complete sequence number;
Described chopping rule comprises the figure place of segments and each segmentation determining sequence number, the machine complete sequence number is divided at least one the machine segment sequence number according to the chopping rule in upgrade description data by described segmentation module 20, such as, the machine complete sequence number is 17 figure places, wherein a kind of possible chopping rule can be 4 for segments, wherein the figure place of 3 segmentations is 5, the figure place of another segmentation is 2, namely 4 the machine segment sequence number are had, there are 3 the machine segment sequence number to be 5 figure places, have 1 the machine segment sequence number to be 2 figure places.
Described binding modules 30, for segmentation mask value corresponding with upgrade description data respectively for each the machine segment sequence number being combined, obtains corresponding at least one the machine segment sequence number to be matched;
Described binding modules 30 also comprises arithmetic element 301, described arithmetic element 301, the segmentation mask value corresponding with upgrade description data respectively for the data of each the machine segment sequence number is carried out and computing, to reset the position not needing in the machine segment sequence number to mate, and obtaining corresponding at least one the machine segment sequence number to be matched, described the machine segment sequence number to be matched comprises in the machine segment sequence number to be needed to carry out the position of mating and/or the position be cleared;
Segmentation mask value corresponding in upgrade description data can be made up of 1 and 0, 1 represents the position needing coupling, 0 represents the position not needing to mate, segmentation mask value corresponding with upgrade description data respectively for each the machine segment sequence number is carried out and computing by described arithmetic element 301, the position not needing in the machine segment sequence number to mate can be reset, and retain the position needing to carry out mating, the machine obtained segment sequence number to be matched comprises in the machine segment sequence number to be needed to carry out the position of mating and/or the position be cleared, by binding modules 30, each the machine segment sequence number and corresponding segmentation mask value are combined, which can mate by unrestricted choice needs, make background server can control the sequence number range of the digital TV terminal 1 for upgrading flexibly.
Described storage of array module 60, stores end value in initial value in each the machine segment sequence number to be matched, upgrade description data in each coupling codomain, upgrade description data in each coupling codomain for adopting the form of array;
Described storage of array module 60 can store the machine segment sequence number to be matched, initial value, end value respectively by 3 number groups, so that whether more each the machine segment sequence number to be matched is between corresponding initial value and the end value of correspondence.
Described judge module 70, for judging whether the numerical value of each the machine segment sequence number to be matched in array is less than or equal to end value corresponding in array, and is all more than or equal to initial value corresponding in array;
Described second determination module 80, if the numerical value for each the machine segment sequence number to be matched is less than or equal to corresponding end value and is more than or equal to corresponding initial value, then judge that the numerical value of each the machine segment sequence number to be matched is in coupling codomain corresponding in upgrade description data;
When described judge module 70 is judged as YES, described second determination module 80 can determine that the numerical value of each the machine segment sequence number to be matched is in coupling codomain corresponding in upgrade description data.
Described first determination module 40, for when judging that the numerical value of each the machine segment sequence number to be matched is in coupling codomain corresponding in upgrade description data, determining described the machine complete sequence, number the match is successful;
When described second determination module 80 determines that the numerical value of each the machine segment sequence number to be matched is in coupling codomain corresponding in upgrade description data, described first determination module 40 determines described the machine complete sequence, and number the match is successful, and notify that digital TV terminal 1 responds upgrading, otherwise, when described the machine complete sequence number coupling is unsuccessful, then described digital TV terminal 1 is not upgraded.
The embodiment of the present invention is by carrying out segmentation to the machine complete sequence number, mate again after each the machine segment sequence number is combined with corresponding segmentation mask value, when the match is successful for each the machine segment sequence number, the match is successful for the machine complete sequence ability, because take the mode that segmentation is compared, so can not be number long because of the machine complete sequence, and the part in can only intercepting the machine complete sequence number with otherness compares, make can there be more complete information when mating the machine complete sequence, to adapt to complicated applied environment, and meet flexible and changeable demand, the problem of makeing mistakes is had when effectively avoiding front end to make OTA upgrading stream, and also may cause the situation of upgrading by mistake when also effectively prevent OTA upgrading.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random store-memory body (RandomAccessMemory, RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.

Claims (8)

1. a method for sequence numbers match, is characterized in that, comprising:
The upgrade request of upgrade description data is carried in search;
According to the chopping rule of the upgrade description data instruction in the upgrade request searched, the machine complete sequence number is divided at least one the machine segment sequence number;
Segmentation mask value corresponding with upgrade description data respectively for each the machine segment sequence number is combined, obtains corresponding at least one the machine segment sequence number to be matched;
Described segmentation mask value corresponding with upgrade description data respectively for each the machine segment sequence number to be combined, obtains corresponding at least one the machine segment sequence number to be matched, comprising:
The segmentation mask value that the data of each the machine segment sequence number are corresponding with upgrade description data is respectively carried out and computing, to reset the position not needing in the machine segment sequence number to mate, and obtaining corresponding at least one the machine segment sequence number to be matched, described the machine segment sequence number to be matched comprises in the machine segment sequence number to be needed to carry out the position of mating and/or the position be cleared; When judging that the numerical value of each the machine segment sequence number to be matched is in coupling codomain corresponding in upgrade description data, determining described the machine complete sequence, number the match is successful.
2. the method for claim 1, it is characterized in that, described upgrade request is by the request being used to indicate terminal staging generated after background server process, and it carries chopping rule, each segmentation mask value and each coupling codomain that upgrade description data comprises.
3. method as claimed in claim 2, is characterized in that, before carrying the upgrade request of upgrade description data, also comprise in described search:
The machine complete sequence number is stored with character string forms.
4. method as claimed in claim 3, is characterized in that, described when judging that the numerical value of each the machine segment sequence number to be matched is in the coupling codomain of correspondence in upgrade description data, before determining described the machine complete sequence number the match is successful, also comprises:
The form of array is adopted to store end value in initial value in each the machine segment sequence number to be matched, upgrade description data in each coupling codomain, upgrade description data in each coupling codomain;
Judge whether the numerical value of each the machine segment sequence number to be matched in array is less than or equal to end value corresponding in array, and be all more than or equal to initial value corresponding in array;
If the numerical value of each the machine segment sequence number to be matched is less than or equal to corresponding end value and is more than or equal to corresponding initial value, then judge that the numerical value of each the machine segment sequence number to be matched is in coupling codomain corresponding in upgrade description data.
5. a digital TV terminal, is characterized in that, comprising:
Search module, for searching for the upgrade request of carrying upgrade description data;
Segmentation module, for the chopping rule according to the upgrade description data instruction in the upgrade request searched, is divided at least one the machine segment sequence number by the machine complete sequence number;
Binding modules, for segmentation mask value corresponding with upgrade description data respectively for each the machine segment sequence number being combined, obtains corresponding at least one the machine segment sequence number to be matched;
Described binding modules comprises:
Arithmetic element, the segmentation mask value corresponding with upgrade description data respectively for the data of each the machine segment sequence number is carried out and computing, to reset the position not needing in the machine segment sequence number to mate, and obtaining corresponding at least one the machine segment sequence number to be matched, described the machine segment sequence number to be matched comprises in the machine segment sequence number to be needed to carry out the position of mating and/or the position be cleared; First determination module, for when judging that the numerical value of each the machine segment sequence number to be matched is in coupling codomain corresponding in upgrade description data, determining described the machine complete sequence, number the match is successful.
6. digital TV terminal as claimed in claim 5, it is characterized in that, the upgrade request searched in described search module is by the request being used to indicate terminal staging generated after background server process, and it carries chopping rule, each segmentation mask value and each coupling codomain that upgrade description data comprises.
7. digital TV terminal as claimed in claim 6, is characterized in that, also comprise:
Sequence number memory module, for storing the machine complete sequence number with character string forms.
8. digital TV terminal as claimed in claim 7, is characterized in that, also comprise:
Storage of array module, stores end value in initial value in each the machine segment sequence number to be matched, upgrade description data in each coupling codomain, upgrade description data in each coupling codomain for adopting the form of array;
Judge module, for judging whether the numerical value of each the machine segment sequence number to be matched in array is less than or equal to end value corresponding in array, and is all more than or equal to initial value corresponding in array;
Second determination module, if the numerical value for each the machine segment sequence number to be matched is less than or equal to corresponding end value and is more than or equal to corresponding initial value, then judge that the numerical value of each the machine segment sequence number to be matched is in coupling codomain corresponding in upgrade description data.
CN201310039699.8A 2013-01-31 2013-01-31 A kind of method of sequence numbers match and digital TV terminal Expired - Fee Related CN103139644B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310039699.8A CN103139644B (en) 2013-01-31 2013-01-31 A kind of method of sequence numbers match and digital TV terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310039699.8A CN103139644B (en) 2013-01-31 2013-01-31 A kind of method of sequence numbers match and digital TV terminal

Publications (2)

Publication Number Publication Date
CN103139644A CN103139644A (en) 2013-06-05
CN103139644B true CN103139644B (en) 2016-01-20

Family

ID=48498852

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310039699.8A Expired - Fee Related CN103139644B (en) 2013-01-31 2013-01-31 A kind of method of sequence numbers match and digital TV terminal

Country Status (1)

Country Link
CN (1) CN103139644B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105634825A (en) * 2016-01-26 2016-06-01 珠海迈科智能科技股份有限公司 Method and device for upgrading intelligent terminal system
CN106682506B (en) 2016-05-06 2020-03-17 腾讯科技(深圳)有限公司 Virus program detection method and terminal
KR20190028372A (en) 2016-07-12 2019-03-18 광동 오포 모바일 텔레커뮤니케이션즈 코포레이션 리미티드 Data transmission method, terminal device and network device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007074119A1 (en) * 2005-12-29 2007-07-05 Gemplus System and method for deploying customised web applications
CN101001316A (en) * 2006-12-31 2007-07-18 北京广博数字电视科技有限公司 Software staging management method and system of set-top box
CN101237445A (en) * 2007-01-30 2008-08-06 世意法(北京)半导体研发有限责任公司 Buffer management for wireless USB synchronization at end point
CN101494559A (en) * 2009-01-13 2009-07-29 中兴通讯股份有限公司 Method and system for implementing household gateway update
CN101557458A (en) * 2009-05-26 2009-10-14 四川长虹电器股份有限公司 Upgrading monitoring method and system for two-way set-top box
CN101795392A (en) * 2009-12-25 2010-08-04 深圳市同洲电子股份有限公司 Application data-downloading method, digital television receiving terminal and system
CN102333241A (en) * 2011-10-26 2012-01-25 青岛海信宽带多媒体技术有限公司 Universal serial bus (USB) upgrading method for digital television and USB upgrading system for digital television

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007074119A1 (en) * 2005-12-29 2007-07-05 Gemplus System and method for deploying customised web applications
CN101001316A (en) * 2006-12-31 2007-07-18 北京广博数字电视科技有限公司 Software staging management method and system of set-top box
CN101237445A (en) * 2007-01-30 2008-08-06 世意法(北京)半导体研发有限责任公司 Buffer management for wireless USB synchronization at end point
CN101494559A (en) * 2009-01-13 2009-07-29 中兴通讯股份有限公司 Method and system for implementing household gateway update
CN101557458A (en) * 2009-05-26 2009-10-14 四川长虹电器股份有限公司 Upgrading monitoring method and system for two-way set-top box
CN101795392A (en) * 2009-12-25 2010-08-04 深圳市同洲电子股份有限公司 Application data-downloading method, digital television receiving terminal and system
CN102333241A (en) * 2011-10-26 2012-01-25 青岛海信宽带多媒体技术有限公司 Universal serial bus (USB) upgrading method for digital television and USB upgrading system for digital television

Also Published As

Publication number Publication date
CN103139644A (en) 2013-06-05

Similar Documents

Publication Publication Date Title
US9240209B1 (en) Pass-through tape access in a disk storage environment
CN105893084B (en) Version upgrading method and terminal device
CN106155915B (en) Data storage processing method and device
WO2016183951A1 (en) System upgrade method and terminal
CN103544031B (en) The android system upgrade method and system of multi partition peripheral storage device
CN103139644B (en) A kind of method of sequence numbers match and digital TV terminal
CN105988722A (en) Data storage method and embedded system
CN104536847A (en) Method for improving data writing integrity
CN104484240A (en) Method and device for storing terminal data
CN110209420A (en) A kind of method and device updating bootstrap loader
CN105404536A (en) Terminal software upgrade method and terminal software upgrade apparatus
US10042570B2 (en) Tape backup and restore in a disk storage environment with intelligent data placement
CN104468419A (en) Method and system for recovering configuration of interchanger and interchanger
CN106528441B (en) Data processing method and device for simulating EEPROM (electrically erasable programmable read-Only memory) and electronic equipment
CN104978204A (en) Application installing and updating method based on mobile terminal and application installing and updating device based on mobile terminal
US9195582B2 (en) Data storing method and apparatus applied to flash memory storage device
US10503430B2 (en) Method and device for clearing data and electronic device
CN105069381B (en) A kind of partition protecting method and system based on intelligent terminal
CN103617053A (en) Method and device for upgrading software
CN102184115B (en) Method for updating system software and terminal device
CN104765631A (en) Restoration method and device for application program of mobile terminal
CN110209349B (en) Data processing method and terminal equipment
CN104021806A (en) Data processing method and data processing equipment
CN101299190B (en) Software upgrading method, system and built-in equipment of read-only file system
CN105260130A (en) Read-write method for Seagate hard disk system file

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160120