Summary of the invention
The invention provides a kind of method that realizes the reception of data file mode terminal based on CMMB data broadcasting channel, terminal receives the data casting file data by this method, realize that packet intercuts the differentiation of information and packet loss data, reduce unnecessary tolerant fail algorithm, it is ageing to guarantee again simultaneously that service scripts priority receives, in time the buffer memory full block of data is avoided memory consumption.Effectively raise the terminal receiving efficiency of data broadcasting.
For achieving the above object, the present invention is by the following technical solutions:
A kind ofly realize that based on CMMB data broadcasting channel data file realizes reducing the method that terminal fault-tolerant and redundant operation receives under the situation that guarantees priority, comprise the steps: preferentially to detect the FAT file data and receive; Receive the process of service scripts sheet data; The process of file is intercutted in identification; The differentiation of file sheet integrality; The differentiation of blocks of files integrality, the piecemeal storing process, thus alleviate computing and the memory consumption burden that terminal receives.
Press such scheme, the data broadcasting terminal receives strategy and comprises: formation, FAT sheet intercut, blocks of files is intercutted, file sheet mistake is reduced, the file sheet is lost reduction.
Press such scheme, this method is implemented in the existing acquiescence method of reseptance, and according to the needs and the characteristic of business, invalid fault-tolerant computing is avoided in terminal very first time identification and judge service data loss, mistake, still intercut data.
Press such scheme, terminal can be that unit stores in the middle of the memory by blocks of files, under situation about guaranteeing data integrity, has saved memory consumption.
Press such scheme, front end is the broadcast data business under ad hoc rules, and terminal can receive strategy according to this ad hoc rules recognition data, reduces the make-up time.
Be used to adopt such scheme, the present invention compared with prior art has the following advantages:
The present invention is by receiving the definition of strategy to the data broadcast terminal, can make decision data file sheet accepting state in the terminal shortest time, optimize internal memory and CPU computing, storage in time avoids reasonably causing because of intercutting that the fault-tolerant and file sheet of unnecessary file sheet reduces computing.Make terminal when receiving data broadcasting, broadcast the complete reception of finishing data service in the cycle at steamboat, thereby improve the terminal inbound pacing.The present invention has improved data file greatly in CMMB data broadcasting channel transmitting efficiency, thereby has improved user's experience.
Specific implementation method
Below in conjunction with accompanying drawing concrete enforcement of the present invention is further described.
Before describing the present invention in detail, below now China Mobile multimedia broadcasting (China Mobile MultimediaBroadcasting is called for short CMMB) and China Mobile multimedia broadcasting data broadcasting are introduced, so that better understand the present invention.
The CMMB system utilizes high-power S-band satellite-signal to cover the whole country, utilize ground supplement translator with covering the satellite-signal blind area with content repeater satellite signal, benefit point simultaneously frequently, utilize mobile radio networks to make up return path, form the mobile media broadcasting network that One-to-All Broadcast and two-way interactive combine.
It is different with common family expenses large screen television with the transmission environment demand to be used for the required data quantity transmitted of mobile multimedia broadcast system, and therefore according to the characteristics of China's Mobile Multimedia Broadcasting, the CMMB system has adopted the multiplex technique of independent research.Multiplexed frame is made up of multiplex frame head, multiplexing payload and filling, and its effect and purpose are exactly encapsulation and the arrangement in order to finish audio frequency, video, data and control information, it can be fitted on the mobile multimedia broadcasting channel transmit.Each multiplexed frame is by the MF_ID unique identification, and the MF_ID span is 0~39, and wherein the multiplexed frame of MF_ID==0 is used for bear control information, and other multiplexed frame is used for bearer service, comprises data service.
In GY/T 220.5-2008, defined the data broadcasting basic format and cut apart section, transmission and method of reseptance for the realization of data broadcasting at mobile multimedia broadcast system.The present invention is exactly on this basis, further the data broadcast terminal being received formation and priority defines and differentiates, make terminal differentiate the data slice mistake, lose, still normally intercut by this method, avoid unnecessary fault-tolerant computing, simultaneously integrity data in time is saved in storage medium from buffer memory, thereby realize mobile multimedia data broadcast different priorities and traffic performance high efficiency transmission and reception in the CMMB system, reduce terminal CPU processing requirements and memory consumption.
The invention provides a kind of method that receives strategy based on the terminal of CMMB data broadcasting passage.This method realizes the very big raising of terminal to data broadcasting service receiving ability by the formation of data broadcast data being differentiated realization and data distributed store process.The present invention mainly comprises the content of the following aspects:
Terminal is screened data file sheet rule, and data broadcasting is defaulted as continuous file sheet, if next file sheet terminal, then judgement and processing rule are as follows, see Fig. 1:
The XPE/FEC data receive method
This method is differentiated and the prerequisite of reduction is
Front end: XPE encapsulation loads the CRC32 indication, and carried out the XPE-FEC encapsulation, front end sends rule, and order sends, the XPE-FEC data of corresponding sequence number are closelyed follow after the XPE encapsulation, example: XPE0, XPE-FEC0, XPE1, XPE-FEC1, XPE2, XPE-FEC2......
Terminal is judged when receiving the XPEn packet when receiving file sheet XPE encapsulation;
Carry out CRC check;
A) if data integrity is then ignored reception XPE-FECn, the data intercept sheet.
B) if data integrity, then receive the XPE-FECn data, attempt to reduce the XPEn data, if reduce successfully, the data intercept sheet gets nowhere if reduce, and receives next packet.
Data slice (file sheet/FAT sheet) method of reseptance
1) when receiving the FAT sheet
CRC judgment data integrality,
A) if data integrity intercepts payload;
B) if corrupted data is ignored this payload, receive next data slice;
2) when receiving the file sheet
The intercepting payload;
Intercut data and loss of data differentiation and method of reseptance
Front end: FAT sheet sequential loop sends; The FAT sheet is pressed the file block sequence circulation and is sent; The file sheet is pressed sequential loop transmission in the piece.
Suppose: FAT sheet number is 200 (maximum FAT sheet number be 199); The sheet number is 512 in the blocks of files, (maximum file sheet number be 511).
If the current FAT sheet G (G<199) that is received as, when receiving down a slice G1:
Be defaulted as G1=G+1 file sheet;
If G1>G+1, then G+1 to G1FAT sheet is lost.
If the current file sheet M (M<511) that is received as, when receiving down a slice:
Be defaulted as M+1 file sheet; Other situation is as follows.
1) be the FAT sheet, sheet number is N1
A) if N1=0 then is considered as these data for intercutting.
B) if N1>0 then is considered as 0 to N1-1, the FAT sheet is lost.
2) file sheet in the presents piece, sheet N2
A) if N2>M+1 then is considered as M+1 to N2-1 file sheet and loses.
B) if N2=M+1 then is considered as data and normally broadcasts, nothing is intercutted.
C) if N2<M+1 then is considered as data exception.
D) if N2=511 then is considered as the presents piece and receives.
3) other blocks of files file sheet, sheet number is N3
A) if N3=0 then is considered as intercutting, if M<511 presents piece M+1 to 511 a file sheet is lost.
B) if N3>0 then is considered as intercutting, other blocks of files 0 to N3-1 file sheet is lost.
If the current file sheet M (M=511) that is received as, when receiving down a slice:
If this sheet is that blocks of files of last this document is defaulted as first first data of next file; If last blocks of files of the non-this document of this sheet is defaulted as first data of next blocks of files of this document, other situation is considered as intercutting.
If current being received as intercutted data slice P (non-piece of P or the last a slice of FAT file), when receiving down a slice P1:
The following a slice that is defaulted as the P1=P+1 numbering is intercutted data, if not then be considered as P+1 to P1-1 loss of data.
File assembly unit and storage means
1) FAT sheet
Payload user data is saved in the storage medium by the sequence number order, if any losing sheet, then is stored as isometric file payload, receives to remedy in next round broadcasting, and is complete up to file.
2) file sheet
Payload user data is saved in the storage medium by the sequence number order, when having met a blocks of files unit, if file sheet data are imperfect in the piece, then carries out the LDGC computing, attempts reduction.If data can't reduce, in next round broadcasting, receive and remedy, complete up to file.
The invention provides a kind of terminal that allows and when receiving the data of data casting file pattern, allow the terminal recognition interpolation data still be the method for loss of data or damage, carry out necessary tolerant fail algorithm for terminal foundation is provided, avoided unnecessary erroneous judgement algorithm.The present invention will avoid same business datum formation to repeat to intercut in its data formation automatically, and the default sequence and the continuity that keep sequence number, the least unit that blocks of files and single or multiple data file are intercutted is defined as blocks of files, thereby make things convenient for terminal to receive and the transmit queue of differentiating the information of intercutting, strengthen user experience, under finite bandwidth, effectively raise ageing that business datum sends.