CN101552646B - Data file receiving method and device in mobile multimedia broadcasting system - Google Patents

Data file receiving method and device in mobile multimedia broadcasting system Download PDF

Info

Publication number
CN101552646B
CN101552646B CN2009100762790A CN200910076279A CN101552646B CN 101552646 B CN101552646 B CN 101552646B CN 2009100762790 A CN2009100762790 A CN 2009100762790A CN 200910076279 A CN200910076279 A CN 200910076279A CN 101552646 B CN101552646 B CN 101552646B
Authority
CN
China
Prior art keywords
file
received data
data file
index secondary
temporary
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
CN2009100762790A
Other languages
Chinese (zh)
Other versions
CN101552646A (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.)
Innofidei Technology Co Ltd
Original Assignee
Innofidei Technology 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 Innofidei Technology Co Ltd filed Critical Innofidei Technology Co Ltd
Priority to CN2009100762790A priority Critical patent/CN101552646B/en
Publication of CN101552646A publication Critical patent/CN101552646A/en
Application granted granted Critical
Publication of CN101552646B publication Critical patent/CN101552646B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

The present invention discloses a data file receiving method and a device in mobile multimedia broadcasting system. After a whole file attribute table (FAT) file is received, a temporary file and an index secondary file are established for the data file to be received according to the file attribute information described in the FAT file. The index secondary file is used for identifying whether thedifferent file blocks or file slices in the data file to be received is written into the temporary file. The received file block or file slice is written into the temporary file with a non-repetitive mode according to the index secondary file. The internal memory resource can be saved when the method and the device according to the invention are applied.

Description

Data file receiving method in the mobile multimedia broadcast system and device
Technical field
The present invention relates to China mobile multi-media broadcasting technology, data file receiving method and device in particularly a kind of mobile multimedia broadcast system.
Background technology
China Mobile multimedia broadcasting technology alliance abbreviates China Mobile multimedia broadcasting (CMMB as, China Mobile Multimedia Broadcasting), it is intended to develop multimedia reception technique and the equipment that is fit to move application as the technical system of serving China Mobile multimedia broadcasting.
In present CMMB system, when needs carry out the data traffic transmission of file mode, the transmitting terminal of data service can send in the mode of loop play file attribute table (FAT, File Attribute Table) and data file successively on the CMMB broadcast channel.Wherein, the FAT file is used for the attribute information of data of description file, comprises formation, path and the partitioning parameters etc. of data file.Terminal receives complete FAT file and corresponding data file and resolves the reception of finishing data file.
In actual applications, FAT file and data file all are that unit broadcasts with the sheet.
Wherein, the FAT file is divided into more than one FAT sheet, and as shown in Figure 1, Fig. 1 is the situation of the cutting apart schematic diagram of existing FAT file, and different FAT sheets can be numbered respectively FAT sheet 0, FAT sheet 1 ..., FAT sheet n-1, the span of n is 1~256.
Each FAT sheet is encapsulated in the FAT sheet packet shown in Figure 2 and transmits, and wherein, " resource identification " field fixedly value is 0; " when the anter sequence number " field is used for identifying the numbering of the FAT sheet of current encapsulation at whole FAT file; " renewal sequence number " field is used to identify the version number of FAT sheet; " rear panel sequence number " field is used to identify the numbering of n-1 FAT sheet shown in Figure 1; " leaf length " field is used to identify the length of packaged FAT sheet; " type of coding " field is used for the type of coding that marking terminal is resolved required employing when obtaining the FAT file.
Equally, data file is split into more than one isometric file sheet, can fill the 0x00 completion when last file leaf length is not enough; A plurality of file sheets are formed a blocks of files.And the difference according to the file sheet quantity of composing document piece can be divided into blocks of files two types of A, B; Certainly, if the file sheet quantity in all blocks of files is all identical, then has only type A.As shown in Figure 3, Fig. 3 is an available data file division mode schematic diagram, and can the different file sheets in different blocks of files and each blocks of files be numbered respectively.
Each file sheet is encapsulated in the file sheet packet shown in Figure 4 and transmits.Wherein, " resource identification " field is used to identify the affiliated data file of packaged file sheet; " piece sequence number " field is used to identify the numbering of the affiliated blocks of files of packaged file sheet; " sheet sequence number " field is used for identifying the numbering of packaged file sheet in affiliated blocks of files; " renewal sequence number " field is used to identify the version number of packaged file sheet, should with the FAT file in consistent at the Description of of this document sheet place data file; The length of file sheet is specified by the FAT file.
In existing CMMB system, terminal is after receiving complete FAT file, the data file attribute information that needs basis wherein to describe, dynamic assignment is enough stored the memory headroom of the All Files sheet of data file to be received, so that follow-up the file sheet that receives is inserted relevant position in this memory headroom.But, in actual applications, because the unsteadiness of transmission channel, some file sheets may be lost in transmission course, like this, terminal may need just can receive required All Files sheet through a plurality of playback periods, that is to say, before receiving all file sheets, the above-mentioned memory headroom that distributes will be occupied always, like this, just cause the waste of memory source, and, when needs receive a plurality of data file simultaneously,, make the memory source deficiency because a large amount of memory source is occupied in the terminal, will cause normally to finish the reception of data file so, perhaps influence the normal operation of other program in the terminal.
Summary of the invention
In view of this, main purpose of the present invention is to provide two kinds of data file receiving methods in the mobile multimedia broadcast system, can save memory source.
Another object of the present invention is to provide two kinds of data file receiving systems in the mobile multimedia broadcast system, can save memory source.
For achieving the above object, technical scheme of the present invention is achieved in that
Data file receiving method in a kind of mobile multimedia broadcast system comprises:
A, complete reception file attribute table FAT file are set up temporary file and index secondary file according to described FAT file for treating received data file; Whether described index secondary file is used for identifying the described different file sheets of received data file for the treatment of and has been written in the described temporary file;
B, the described file sheet for the treatment of received data file of reception;
C, according to described index secondary file, judge whether the file sheet receive has been written in the described temporary file, if then abandon the described file sheet that receives, and execution in step D; Otherwise, the described file sheet that receives is written in the described temporary file, and in described index secondary file, carries out record, then execution in step D;
D, judge whether to receive the described All Files piece for the treatment of received data file, if, process ends; Otherwise, execution in step B.
Data file receiving method in a kind of mobile multimedia broadcast system comprises:
A, complete reception file attribute table FAT file, set up temporary file and index secondary file according to described FAT file for treating received data file, described index secondary file is used for identifying the described different blocks of files of received data file for the treatment of and whether has been written to described temporary file;
The file sheet of received data file is treated in B, reception, judge according to described index secondary file whether the blocks of files under the file sheet that receives has been written in the described temporary file, if not, the described file sheet that receives of buffer memory then, execution in step C then, if then abandon the described file sheet that receives, and continue execution in step B;
C, judge whether the file sheet in the buffer memory enough forms a blocks of files, if, then the blocks of files of being formed is written in the described temporary file, and in described index secondary file, carries out record, execution in step D then, otherwise, execution in step B;
D, judge whether to receive the described All Files piece for the treatment of received data file, if, process ends; Otherwise, execution in step B.
Data file receiving system in a kind of mobile multimedia broadcast system comprises:
First sets up the unit, is used for complete reception file attribute table FAT file, sets up temporary file and index secondary file according to described FAT file for treating received data file; Whether described index secondary file is used for identifying the described different file sheets of received data file for the treatment of and has been written in the described temporary file;
First receiving element is used to receive the described file sheet for the treatment of received data file;
First judging unit is used for according to described index secondary file, judges whether the file sheet that receives has been written in the described temporary file, if then abandon the described file sheet that receives, and notify second judging unit to carry out self function; Otherwise, the described file sheet that receives is written in the described temporary file, and in described index secondary file, carries out record, notify described second judging unit to carry out self function then;
Described second judging unit is used to judge whether to receive the described All Files piece for the treatment of received data file, if, end process; Otherwise, notify described first receiving element to carry out self function.
Data file receiving system in a kind of mobile multimedia broadcast system comprises:
Second sets up the unit, be used for complete reception file attribute table FAT file, set up temporary file and index secondary file according to described FAT file for treating received data file, whether described index secondary file is used for identifying the described different blocks of files of received data file for the treatment of and has been written in the described temporary file;
Second receiving element is used to receive the file sheet for the treatment of received data file;
The 3rd judging unit, according to described index secondary file, judge whether the blocks of files under the file sheet that receives has been written in the described temporary file, if not, the described file sheet that receives of buffer memory then, and notify the 4th judging unit to carry out self function, if, then abandon the described file sheet that receives, and notify described second receiving element to carry out self function;
The 4th judging unit, be used to judge whether the file sheet of buffer memory enough forms a blocks of files, if then the blocks of files of being formed is written in the described temporary file, and in described index secondary file, carry out record, notify described the 5th judging unit to carry out self function then; Otherwise, notify described second receiving element to carry out self function;
Described the 5th judging unit is used to judge whether to receive the described All Files piece for the treatment of received data file, if, end process; Otherwise, notify described second receiving element to carry out self function.
As seen, adopt technical scheme of the present invention, after receiving complete FAT file, according to the data file attribute information described in this FAT file, for data file to be received is set up temporary file and index secondary file, whether described index secondary file is used for identifying different blocks of files/file sheet for the treatment of received data file and has been written in the temporary file; And, the blocks of files/file sheet that receives is written in the temporary file in non-repetitive mode according to this index secondary file.Compared with prior art, scheme of the present invention need not to take for a long time the memory headroom for treating that received data file distributes, thereby has saved memory source.
Description of drawings
Fig. 1 is the situation of the cutting apart schematic diagram of existing FAT file.
Fig. 2 is the packaged type schematic diagram of existing FAT sheet.
Fig. 3 is the partitioning scheme schematic diagram of available data file.
Fig. 4 is the packaged type schematic diagram of existing file sheet.
Fig. 5 is the form schematic diagram of the index secondary file in the embodiment of the invention.
Fig. 6 is the flow chart of the inventive method first embodiment.
Fig. 7 is the flow chart of the inventive method second embodiment.
Fig. 8 is the composition structural representation of apparatus of the present invention first embodiment.
Fig. 9 is the composition structural representation of apparatus of the present invention second embodiment.
Embodiment
At problems of the prior art, the data file reception programme in a kind of brand-new mobile multimedia broadcast system is proposed among the present invention.
Complete receive the FAT file after, according in the FAT file at the attribute description for the treatment of received data file, for treating that received data file hews out a temporary space for the treatment of the received data file size on disk, deposit the temporary file of being set up with this temporary space, and under catalogue at the same level, set up and the corresponding index secondary file of this temporary file, whether the index secondary file is used for identifying its corresponding temporary file index position corresponding file piece/file sheet and is received.Wherein, the naming method of temporary file can for: after treating the filename of received data file (can from the FAT file, obtain), add suffix .ltmp; The naming method of index secondary file can for: after treating the filename of received data file, add suffix .lfbi (being LargeFile Block Index).The filename of mentioning for the treatment of received data file described here is meant the filename that comprises extension name, because can prevent the extension name difference like this, but obscuring of causing of the identical data file of filename.Such as, the filename of data file A and B is a, but extension name is respectively .txt and .bmp, if do not consider extension name, the filename of data file A and the pairing temporary file of B will be A.ltmp so, can't distinguish, if but add extension name, then the filename of data file A and the pairing temporary file of B will be respectively a.txt.ltmp and a.bmp.ltmp.Follow-up analogue will repeat no more.
In addition, as shown in Figure 5, Fig. 5 is the form schematic diagram of the index secondary file in the embodiment of the invention." resource identification " field wherein (accounting for 16) is used for unique identification data file to be received; " renewal sequence number " field (accounting for 4) is used to identify the version number that treats received data file; It is to carry out index or carry out index by sheet mode by block mode that " piece/sheet sign " field (accounting for 1) is used for sign, promptly " piece/sheet * receiving flag " thereafter is that " piece * receiving flag " still is " sheet * receiving flag ", such as, available 0 representative is carried out index by block mode, 1 representative is carried out index by sheet mode, certainly, conversely also can, as long as pre-specified; " piece/sheet sum " field (accounting for 24) is used for identifying blocks of files/file sheet sum for the treatment of received data file, and wherein the span of blocks of files sum is 1~1024, and the span of file sheet sum is 1~16777215; Be N subsequently and be used for identifying " piece/sheet * receiving flag " field whether different blocks of files/file sheet has been written to temporary file, the span of N is determined by " piece/sheet sum " field, corresponding blocks of files/file the sheet of each " piece/sheet * receiving flag " field, that is: " 0 receiving flag of piece/sheet " field reference numeral is blocks of files/file sheet of 0, " 1 receiving flag of piece/sheet " field reference numeral is blocks of files/file sheet of 1, and other is given unnecessary details no longer one by one; In actual applications, can be set to 0 or 1, represent whether its corresponding file piece/file sheet has been written in the temporary file by " piece/sheet * receiving flag " field; If the value of N is not 8 integral multiple, can be by filling the required byte of 0 polishing.
In the subsequent process, can be by this index secondary file, blocks of files/file sheet for the treatment of in the received data file receives by predetermined way.
For making purpose of the present invention, technical scheme and advantage clearer, below with reference to the accompanying drawing embodiment that develops simultaneously, the present invention is described in further detail.
Fig. 6 is the flow chart of the inventive method first embodiment.As shown in Figure 6, may further comprise the steps:
Step 601: complete reception FAT file.
How the complete FAT of receiving file is a prior art, repeats no more.
Step 602: judge whether to exist and treat corresponding temporary file of received data file and index secondary file, if then execution in step 603; Otherwise, execution in step 605.
Step 603: judge whether the renewal sequence number for the treatment of received data file entrained in the FAT file is consistent with renewal sequence number in the index secondary file that has existed, if then execution in step 606; Otherwise, execution in step 604.
Step 604: temporary file and index secondary file that deletion has existed, and execution in step 605.
If it is inconsistent to upgrade sequence number, so then variation has taken place in the supporting paper content, so need carry out the reception of data file again.
Step 605: set up temporary file and index secondary file for treating received data file.
Need to prove, be a plurality of if treat received data file, so then need be respectively it and set up temporary file and index secondary file at each different data file; For ease of describing, suppose to have only one to treat received data file in the present embodiment; Have, the memory location of temporary file in disk can be according to the store path information setting for the treatment of received data file entrained in the FAT file again, and specific implementation is known in this field, repeats no more.
Wherein, the naming method of temporary file is: add suffix .ltmp after treating the filename of received data file; The naming method of index secondary file is: add suffix .lfbi after treating the filename of received data file.In addition, the form of the index secondary file of being set up as shown in Figure 5, and can be set to 0 or 1 by " piece/sheet sign " field wherein, represent that follow-up is to carry out index or to carry out index by sheet mode by block mode, supposing needs in the present embodiment to carry out index by sheet mode, and " piece/sheet sum " field shown in Fig. 5 and " piece/sheet * receiving flag " field will be " sheet sum " field and " sheet * receiving flag " field so.
Step 606: receive the file sheet for the treatment of received data file.
How receiving the file sheet is prior art, repeats no more.
Step 607: judge whether the file sheet that receives is written in the temporary file, if then execution in step 608; Otherwise, execution in step 609.
Based on before introduction as can be known, can be set to 0 or 1 (supposing to represent with 1 in the present embodiment) by " the sheet * receiving flag " field in the index secondary file, represent whether its corresponding file sheet has been written in the temporary file, so in this step, can by in the search index secondary file with the situation that is provided with of file sheet corresponding " the sheet * receiving flag " field that receives, determine whether the file sheet that receives is written in the temporary file.
Need to prove, as can be seen from Figure 5, being numbered of " sheet * receiving flag " field from 0 to N-1 serial number, but as can be seen from Figure 3, belong to numbering between the file sheet of different blocks of files and discontinuous, as shown in Figure 3, all be numbered for own included file sheet among blocks of files 0 wherein and the blocks of files n-1 according to the order of 0~n-1.So in this step, before the search index secondary file, need at first calculate the overall numbering of file sheet in treating the pairing All Files sheet of received data file that receives, concrete account form illustrates as follows: suppose that the file sheet that receives belongs to blocks of files 3, this document sheet be numbered 4, suppose again to include 10 file sheets in blocks of files 0, blocks of files 1 and the blocks of files 2, so then can calculate totally being numbered of the file sheet that receives: 3 * 10+2=32.
Step 608: abandon the file sheet that receives, and execution in step 610.
Step 609: the file sheet that receives is written in the temporary file, and carries out record in the index secondary file, execution in step 610 then.
The file sheet that is about to receive is written in the temporary file, and the file sheet that receives with this in the index secondary file corresponding " sheet * receiving flag " field is set to 1.
Step 610: judge whether to receive the All Files piece for the treatment of received data file, if then execution in step 611; Otherwise, execution in step 606.
Step 611: the suffix in the filename of deletion temporary file, i.e. .ltmp, and deletion index secondary file, process ends.
Fig. 7 is the flow chart of the inventive method second embodiment.As shown in Figure 7, may further comprise the steps:
Step 701: complete reception FAT file.
How the complete FAT of receiving file is a prior art, repeats no more.
Step 702: judge whether to exist and treat corresponding temporary file of received data file and index secondary file, if then execution in step 703; Otherwise, execution in step 705.
Step 703: judge whether the renewal sequence number for the treatment of received data file entrained in the FAT file is consistent with renewal sequence number in the index secondary file that has existed, if then execution in step 706; Otherwise, execution in step 704.
Step 704: temporary file and index secondary file that deletion has existed, and execution in step 705.
If it is inconsistent to upgrade sequence number, so then variation has taken place in the supporting paper content, so need carry out the reception of data file again.
Step 705: set up temporary file and index secondary file for treating received data file.
The form of the index secondary file of being set up can be as shown in Figure 5, and can be set to 0 or 1 by " piece/sheet sign " field wherein, represent that follow-up is to carry out index or to carry out index by sheet mode by block mode, supposing needs in the present embodiment to carry out index by block mode, and " piece/sheet sum " field shown in Fig. 5 and " piece/sheet * receiving flag " field will be " piece sum " field and " piece * receiving flag " field so.
Step 706: receive the file sheet for the treatment of received data file.
Step 707: judge whether the blocks of files under the file sheet that receives is written in the temporary file, if then execution in step 708; Otherwise, execution in step 709.
Based on before introduction as can be known, can be set to 0 or 1 (supposing to be set to 1 in the present embodiment) by " the piece * receiving flag " field in the index secondary file, represent whether the corresponding file piece has been written in the temporary file, so in this step, can judge whether the blocks of files under the file sheet that receives is written in the temporary file by the situation that is provided with of " the piece * receiving flag " field in the search index secondary file.
Step 708: abandon the file sheet that receives, execution in step 706 then.
Step 709: the file sheet that buffer memory receives, and execution in step 710.
Step 710: judge whether the file sheet in the buffer memory enough forms a blocks of files, if then execution in step 711; Otherwise, execution in step 706.
Owing to carry about treating blocks of files number included in the received data file in the FAT file, details such as the file sheet number in each blocks of files, and, all carry " piece sequence number " and " sheet sequence number " information such as (as shown in Figure 4) in the file sheet that each receives, so in this step, whether the file sheet that can judge at an easy rate in the buffer memory enough forms a blocks of files.
Step 711: the blocks of files of being formed is written in the temporary file, and in the index secondary file, carries out record.
The blocks of files of soon being formed is written in the temporary file, and is set to 1 with the blocks of files of being formed corresponding " piece * receiving flag " field in the index secondary file.
Step 712: judge whether to receive the All Files piece for the treatment of received data file, if then execution in step 713; Otherwise, execution in step 706.
Step 713: the suffix in the filename of deletion temporary file, i.e. .ltmp, and deletion index secondary file, process ends.
Based on said method, Fig. 8 is the composition structural representation of apparatus of the present invention first embodiment.As shown in Figure 8, comprising:
First sets up unit 81, is used for complete reception FAT file, sets up temporary file and index secondary file according to the FAT file for treating received data file; Whether the index secondary file is used for identifying the different file sheets for the treatment of received data file and has been written in the temporary file;
First receiving element 82 is used to receive the file sheet for the treatment of received data file;
First judging unit 83 is used for according to the index secondary file, judges whether the file sheet that receives is written in the temporary file, if then abandon the file sheet that receives, and notify second judging unit 84 to carry out self function; Otherwise, the file sheet that receives is written in the temporary file, and in the index secondary file, carries out record, notify second judging unit 84 to carry out self function then;
Second judging unit 84 is used to judge whether to receive the All Files piece for the treatment of received data file, if, end process; Otherwise, notify first receiving element 82 to carry out self function.
Wherein, the naming method of temporary file is: add suffix .ltmp after treating the filename of received data file; The naming method of index secondary file is: add suffix .lfbi after treating the filename of received data file.Temporary file and index secondary file are positioned under the catalogue at the same level.
Comprise in the index secondary file: be used for identifying the resource identification field for the treatment of received data file, be used to identify the renewal sequence number field for the treatment of received data file version number, the total digital section of sheet that is used to identify the file sheet sum for the treatment of received data file, and be used for identifying N the sheet receiving flag field whether different file sheets have been written to temporary file; The value of N is identical with file sheet sum.
In addition, first sets up unit 81 also can be further used for, after complete reception FAT file, judge whether to exist and treat corresponding temporary file of received data file and index secondary file, if there is no, then set up temporary file and index secondary file for treating received data file according to the FAT file; If exist, further judge then whether the renewal sequence number for the treatment of received data file of carrying in renewal sequence number and the FAT file in the already present index secondary file is consistent, if not, then delete already present temporary file and index secondary file, and set up temporary file and index secondary file for treating received data file according to the FAT file, if then directly notify first receiving element 82 to carry out self function.
Second judging unit 84 also can be further used for, judge receive the All Files piece for the treatment of received data file after, the suffix .ltmp in the filename of deletion temporary file, and deletion index secondary file.
Fig. 9 is the composition structural representation of apparatus of the present invention second embodiment.As shown in Figure 9, comprising:
Second sets up unit 91, be used for complete reception FAT file, set up temporary file and index secondary file according to the FAT file for treating received data file, the index secondary file is used for identifying treats whether the different blocks of files of received data file has been written in the temporary file;
Second receiving element 92 is used to receive the file sheet for the treatment of received data file;
The 3rd judging unit 93, according to the index secondary file, judge whether the blocks of files under the file sheet that receives has been written in the temporary file, if not, the file sheet that receives of buffer memory then, and notify the 4th judging unit 94 to carry out self function, if, then abandon the file sheet that receives, and notify second receiving element 92 to carry out self function;
The 4th judging unit 94, be used to judge whether the file sheet of buffer memory enough forms a blocks of files,, then the blocks of files of being formed be written in the temporary file if enough, and in the index secondary file, carry out record, notify the 5th judging unit 95 to carry out self function then; Otherwise, notify second receiving element 92 to carry out self function;
The 5th judging unit 95 is used to judge whether to receive the All Files piece for the treatment of received data file, if, end process; Otherwise, notify second receiving element 92 to carry out self function.
Wherein, the naming method of temporary file is: add suffix .ltmp after treating the filename of received data file; The naming method of index secondary file is: add suffix .lfbi after treating the filename of received data file.Temporary file and index secondary file are positioned under the catalogue at the same level.
Comprise in the index secondary file: be used for identifying the resource identification field for the treatment of received data file, be used to identify the renewal sequence number field for the treatment of received data file version number, the total digital section of piece that is used to identify the blocks of files sum for the treatment of received data file, and be used for identifying N the piece receiving flag field whether different blocks of files have been written to temporary file; The value of N is identical with the blocks of files sum.
In addition, second sets up unit 91 can be further used for, after complete reception FAT file, judge whether to exist and treat corresponding temporary file of received data file and index secondary file, if there is no, then set up temporary file and index secondary file for treating received data file according to the FAT file; If exist, further judge then whether the renewal sequence number for the treatment of received data file of carrying in renewal sequence number and the FAT file in the already present index secondary file is consistent, if not, then delete already present temporary file and index secondary file, and set up temporary file and index secondary file for treating received data file according to the FAT file, if then directly notify second receiving element 92 to carry out self function.
The 5th judging unit 95 can be further used for, judge receive the All Files piece for the treatment of received data file after, the suffix .ltmp in the filename of deletion temporary file, and deletion index secondary file.
The concrete workflow of Fig. 8 and 9 shown device embodiment please respectively with reference to the respective description among the method embodiment shown in Fig. 6 and 7, repeats no more herein.
In a word, adopt technical scheme of the present invention, the blocks of files/file sheet that receives is directly write in the temporary file, and need not to take for a long time memory headroom, thereby saved memory source for treating that received data file distributes.And, adopt technical scheme of the present invention, even terminal breaks down suddenly in the data file receiving course, such as unexpected shutdown, after starting shooting again, the data file that before receives still can keep, scheme promptly of the present invention can be supported breakpoint transmission.
In sum, more than be preferred embodiment of the present invention only, be not to be used to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (24)

1. the data file receiving method in the mobile multimedia broadcast system is characterized in that this method comprises:
A, complete reception file attribute table FAT file are set up temporary file and index secondary file according to described FAT file for treating received data file; Whether described index secondary file is used for identifying the described different file sheets of received data file for the treatment of and has been written in the described temporary file;
B, the described file sheet for the treatment of received data file of reception;
C, according to described index secondary file, judge whether the file sheet receive has been written in the described temporary file, if then abandon the described file sheet that receives, and execution in step D; Otherwise, the described file sheet that receives is written in the described temporary file, and in described index secondary file, carries out record, then execution in step D;
D, judge whether to receive the described All Files piece for the treatment of received data file, if, process ends; Otherwise, execution in step B.
2. method according to claim 1 is characterized in that, the naming method of described temporary file is: add suffix .ltmp described after treating the filename of received data file; The naming method of described index secondary file is: add suffix .lfbi described after treating the filename of received data file; The described file filename that comprises extension name by name for the treatment of received data file.
3. method according to claim 1 is characterized in that, described temporary file and described index secondary file are positioned under the catalogue at the same level.
4. according to each described method in the claim 1~3, it is characterized in that,
Comprise in the described index secondary file: be used for identifying the resource identification field for the treatment of received data file, be used to identify the renewal sequence number field for the treatment of received data file version number, the total digital section of sheet that is used to identify the file sheet sum for the treatment of received data file, and be used for identifying N the sheet receiving flag field whether different file sheets have been written to described temporary file; The value of described N is identical with file sheet sum.
5. method according to claim 4 is characterized in that, after the described complete reception FAT file, further comprises:
Judge whether to exist and described corresponding temporary file of received data file and the index secondary file treated, if there is no, then set up temporary file and index secondary file for treating received data file according to described FAT file;
If exist, further judge then whether the renewal sequence number for the treatment of received data file of carrying in renewal sequence number and the described FAT file in the already present described index secondary file is consistent, if not, then delete already present described temporary file and index secondary file, and set up temporary file and index secondary file for treating received data file according to described FAT file, if, execution in step B then.
6. method according to claim 2 is characterized in that, judges among the described step D to receive after the described All Files piece for the treatment of received data file, further comprises:
Delete the suffix .ltmp in the filename of described temporary file, and delete described index secondary file.
7. the data file receiving method in the mobile multimedia broadcast system is characterized in that this method comprises:
A, complete reception file attribute table FAT file, set up temporary file and index secondary file according to described FAT file for treating received data file, described index secondary file is used for identifying the described different blocks of files of received data file for the treatment of and whether has been written to described temporary file;
The file sheet of received data file is treated in B, reception, judge according to described index secondary file whether the blocks of files under the file sheet that receives has been written in the described temporary file, if not, the described file sheet that receives of buffer memory then, execution in step C then, if then abandon the described file sheet that receives, and continue execution in step B;
C, judge whether the file sheet in the buffer memory enough forms a blocks of files, if, then the blocks of files of being formed is written in the described temporary file, and in described index secondary file, carries out record, execution in step D then, otherwise, execution in step B;
D, judge whether to receive the described All Files piece for the treatment of received data file, if, process ends; Otherwise, execution in step B.
8. method according to claim 7 is characterized in that, the naming method of described temporary file is: add suffix .ltmp described after treating the filename of received data file; The naming method of described index secondary file is: add suffix .lfbi described after treating the filename of received data file; The described file filename that comprises extension name by name for the treatment of received data file.
9. method according to claim 7 is characterized in that, described temporary file and described index secondary file are positioned under the catalogue at the same level.
10. according to each described method in the claim 7~9, it is characterized in that,
Comprise in the described index secondary file: be used for identifying the resource identification field for the treatment of received data file, be used to identify the renewal sequence number field for the treatment of received data file version number, the total digital section of piece that is used to identify the blocks of files sum for the treatment of received data file, and be used for identifying N the piece receiving flag field whether different blocks of files have been written to described temporary file; The value of described N is identical with the blocks of files sum.
11. method according to claim 10 is characterized in that, after the described complete reception FAT file, further comprises:
Judge whether to exist and described corresponding temporary file of received data file and the index secondary file treated, if there is no, then set up temporary file and index secondary file for treating received data file according to described FAT file;
If exist, further judge then whether the renewal sequence number for the treatment of received data file of carrying in renewal sequence number and the described FAT file in the already present described index secondary file is consistent, if not, then delete already present described temporary file and index secondary file, and set up temporary file and index secondary file for treating received data file according to described FAT file, if, execution in step B then.
12. method according to claim 8 is characterized in that, judges among the described step D to receive after the described All Files piece for the treatment of received data file, further comprises:
Delete the suffix .ltmp in the filename of described temporary file, and delete described index secondary file.
13. the data file receiving system in the mobile multimedia broadcast system is characterized in that this device comprises:
First sets up the unit, is used for complete reception file attribute table FAT file, sets up temporary file and index secondary file according to described FAT file for treating received data file; Whether described index secondary file is used for identifying the described different file sheets of received data file for the treatment of and has been written in the described temporary file;
First receiving element is used to receive the described file sheet for the treatment of received data file;
First judging unit is used for according to described index secondary file, judges whether the file sheet that receives has been written in the described temporary file, if then abandon the described file sheet that receives, and notify second judging unit to carry out self function; Otherwise, the described file sheet that receives is written in the described temporary file, and in described index secondary file, carries out record, notify described second judging unit to carry out self function then;
Described second judging unit is used to judge whether to receive the described All Files piece for the treatment of received data file, if, end process; Otherwise, notify described first receiving element to carry out self function.
14. device according to claim 13 is characterized in that, the naming method of described temporary file is: add suffix .ltmp described after treating the filename of received data file; The naming method of described index secondary file is: add suffix .lfbi described after treating the filename of received data file; The described file filename that comprises extension name by name for the treatment of received data file.
15. device according to claim 13 is characterized in that, described temporary file and described index secondary file are positioned under the catalogue at the same level.
16. according to each described device in the claim 13~15, it is characterized in that, comprise in the described index secondary file: be used for identifying the resource identification field for the treatment of received data file, be used to identify the renewal sequence number field for the treatment of received data file version number, the total digital section of sheet that is used to identify the file sheet sum for the treatment of received data file, and be used for identifying N the sheet receiving flag field whether different file sheets have been written to described temporary file; The value of described N is identical with file sheet sum.
17. device according to claim 16, it is characterized in that, described first sets up the unit is further used for, after complete reception FAT file, judge whether to exist and described corresponding temporary file of received data file and the index secondary file treated, if there is no, then set up temporary file and index secondary file for treating received data file according to described FAT file; If exist, further judge then whether the renewal sequence number for the treatment of received data file of carrying in renewal sequence number and the described FAT file in the already present described index secondary file is consistent, if not, then delete already present described temporary file and index secondary file, and set up temporary file and index secondary file for treating received data file according to described FAT file, if then directly notify described first receiving element to carry out self function.
18. device according to claim 14, it is characterized in that, described second judging unit is further used for, judge receive the described All Files piece for the treatment of received data file after, delete the suffix .ltmp in the filename of described temporary file, and delete described index secondary file.
19. the data file receiving system in the mobile multimedia broadcast system is characterized in that this device comprises:
Second sets up the unit, be used for complete reception file attribute table FAT file, set up temporary file and index secondary file according to described FAT file for treating received data file, whether described index secondary file is used for identifying the described different blocks of files of received data file for the treatment of and has been written in the described temporary file;
Second receiving element is used to receive the file sheet for the treatment of received data file;
The 3rd judging unit, according to described index secondary file, judge whether the blocks of files under the file sheet that receives has been written in the described temporary file, if not, the described file sheet that receives of buffer memory then, and notify the 4th judging unit to carry out self function, if, then abandon the described file sheet that receives, and notify described second receiving element to carry out self function;
The 4th judging unit, be used to judge whether the file sheet of buffer memory enough forms a blocks of files, if then the blocks of files of being formed is written in the described temporary file, and in described index secondary file, carry out record, notify described the 5th judging unit to carry out self function then; Otherwise, notify described second receiving element to carry out self function;
Described the 5th judging unit is used to judge whether to receive the described All Files piece for the treatment of received data file, if, end process; Otherwise, notify described second receiving element to carry out self function.
20. device according to claim 19 is characterized in that, the naming method of described temporary file is: add suffix .ltmp described after treating the filename of received data file; The naming method of described index secondary file is: add suffix .lfbi described after treating the filename of received data file; The described file filename that comprises extension name by name for the treatment of received data file.
21. device according to claim 19 is characterized in that, described temporary file and described index secondary file are positioned under the catalogue at the same level.
22. according to each described device in the claim 19~21, it is characterized in that, comprise in the described index secondary file: be used for identifying the resource identification field for the treatment of received data file, be used to identify the renewal sequence number field for the treatment of received data file version number, the total digital section of piece that is used to identify the blocks of files sum for the treatment of received data file, and be used for identifying N the piece receiving flag field whether different blocks of files have been written to described temporary file; The value of described N is identical with the blocks of files sum.
23. device according to claim 22, it is characterized in that, described second sets up the unit is further used for, after complete reception FAT file, judge whether to exist and described corresponding temporary file of received data file and the index secondary file treated, if there is no, then set up temporary file and index secondary file for treating received data file according to described FAT file; If exist, further judge then whether the renewal sequence number for the treatment of received data file of carrying in renewal sequence number and the described FAT file in the already present described index secondary file is consistent, if not, then delete already present described temporary file and index secondary file, and set up temporary file and index secondary file for treating received data file according to described FAT file, if then directly notify described second receiving element to carry out self function.
24. device according to claim 20, it is characterized in that, described the 5th judging unit is further used for, judge receive the described All Files piece for the treatment of received data file after, delete the suffix .ltmp in the filename of described temporary file, and delete described index secondary file.
CN2009100762790A 2009-01-08 2009-01-08 Data file receiving method and device in mobile multimedia broadcasting system Expired - Fee Related CN101552646B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100762790A CN101552646B (en) 2009-01-08 2009-01-08 Data file receiving method and device in mobile multimedia broadcasting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100762790A CN101552646B (en) 2009-01-08 2009-01-08 Data file receiving method and device in mobile multimedia broadcasting system

Publications (2)

Publication Number Publication Date
CN101552646A CN101552646A (en) 2009-10-07
CN101552646B true CN101552646B (en) 2010-07-21

Family

ID=41156659

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100762790A Expired - Fee Related CN101552646B (en) 2009-01-08 2009-01-08 Data file receiving method and device in mobile multimedia broadcasting system

Country Status (1)

Country Link
CN (1) CN101552646B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101958761B (en) * 2010-05-14 2012-10-10 北京创毅视讯科技有限公司 Data file receiving method and device in mobile multimedia broadcasting system
CN102882776B (en) * 2012-09-13 2017-03-08 中广传播集团有限公司 A kind of mobile multi-media broadcast terminal file packet level and file-level data subsequent collection method
CN102929982B (en) * 2012-10-17 2017-07-28 Tcl通力电子(惠州)有限公司 Multimedia scanning file indexing means and device
CN103207891B (en) * 2013-02-25 2017-09-05 北京智谷睿拓技术服务有限公司 multimedia information display method and device
CN103559898B (en) 2013-10-11 2017-01-18 华为技术有限公司 Method, device and system for playing multi-media file
CN105160030B (en) * 2015-09-30 2018-11-20 北京金山安全软件有限公司 Method and device for transmitting media cache files on mobile terminal

Also Published As

Publication number Publication date
CN101552646A (en) 2009-10-07

Similar Documents

Publication Publication Date Title
CN101552646B (en) Data file receiving method and device in mobile multimedia broadcasting system
CN103702171B (en) Method for downloading video stream and electronic equipment
CN110096685B (en) Equipment identifier generation method and device
CN101188622B (en) A method and device for downloading file by using P2P living broadcast channel
CN101882409A (en) Electronic advertising system and advisement playing method thereof
CN103609131A (en) Reception device, reception method, transmission device, transmission method, and program
CN102486926B (en) Method and system for acquiring personalized music media information
CN101043645B (en) Stream media program interactive realization method and system thereof
CN102916907A (en) Download method and system based on home gateway, and home gateway
CN101848366B (en) Filing and program broadcasting method and equipment of time shift slicing files in IPTV (Internet Protocol Television) system
CN101345882B (en) Playing device and method for inter-cutting audio files
CN101552651B (en) Data file receiving method and device in mobile multimedia broadcasting system
CN106993236B (en) A kind of video broadcasting method and terminal
CN101702732A (en) Document synchronous method and document synchronous system
CN100578980C (en) Document receiving method of mobile multimedia broadcasting system
CN103297272A (en) Device binding and unbinding method and physical device of device buffer recycling pool
CN101616168A (en) The processing method of streaming media interactive information, Apparatus and system
ATE450997T1 (en) METHOD AND SYSTEM FOR DELIVERY OF DATA
CN102752310B (en) A kind of broadcast control method for CMMB data broadcast and system
CN101146107A (en) A method and device for data download
CN100521783C (en) Method for management of auxiliary programs and corresponding receiver and system
EP2890134A1 (en) Content management method and system
CN101022602B (en) Mobile multimedia terminal and updating method for network information list by the same terminal
CN111479142A (en) Program content updating method and system based on information release
CN103763018B (en) Data receiving method for user terminal of satellite

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

Termination date: 20180108