CN105812335B - The analytic method of function field - Google Patents

The analytic method of function field Download PDF

Info

Publication number
CN105812335B
CN105812335B CN201410853416.8A CN201410853416A CN105812335B CN 105812335 B CN105812335 B CN 105812335B CN 201410853416 A CN201410853416 A CN 201410853416A CN 105812335 B CN105812335 B CN 105812335B
Authority
CN
China
Prior art keywords
field
length
data type
data
seperated
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.)
Active
Application number
CN201410853416.8A
Other languages
Chinese (zh)
Other versions
CN105812335A (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.)
Shanghai National Engineering Research Center of Digital Television Co Ltd
Original Assignee
Shanghai National Engineering Research Center of Digital Television 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 Shanghai National Engineering Research Center of Digital Television Co Ltd filed Critical Shanghai National Engineering Research Center of Digital Television Co Ltd
Priority to CN201410853416.8A priority Critical patent/CN105812335B/en
Publication of CN105812335A publication Critical patent/CN105812335A/en
Application granted granted Critical
Publication of CN105812335B publication Critical patent/CN105812335B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention provides a kind of insertion method of function field and analytic methods, it is characterized in that, it can determine whether the body field for bearing system performance data by total attribute field, a field entrance will be inserted into before field bodies in each seperated field, to indicate the data type and field length of subsequent field bodies, realize flexible insertions function field, it can support to be not inserted into function field, it is inserted into a function field and is inserted into the different applications scenes such as multiple function fields, it does not need as function field reserved space, and do not limit the number of the function field of insertion, improve packaging efficiency.

Description

The analytic method of function field
Technical field
The present invention relates to broadcast system, in particular to the insertion method of function field and the function field in a kind of base band frame And analytic method.
Background technique
Base band frame is the basic unit that data encapsulate in broadcast system, is usually made of frame head and data field, frame head is used for The configuration information of current base band frame is carried, data field is for carrying user data.Function field is that have one kind of special role Data are often referred to show the system function data of broadcast system, such as configuration and parameter etc., these configurations, supplemental characteristic function Energy field needs to be placed on to be carried in base band frame.Since the demand of broadcast system is different, so needing to carry in a base band frame Function field be often possible to as one or more, it is also possible to do not need bearing function field.
The method of the existing bearing function field in base band frame is: the designated position of frame head reserve certain space with Bearing function field, type, position, length and the number of institute's bearing function field need to provide in advance.When parsing base band frame, Receiver extracts each function field, and be used according to the type of defined, position, length and number information respectively.
The deficiency of existing method is, since regulation is completed in advance, then when not needing some function word in system Duan Shi, the space reserved for the function field can not then be discharged to carry other data, in this case, not only reduce encapsulation effect Rate;And system can not also support new function field.
Therefore in order to solve the problems, such as that, in base band frame insertions function field, main difficulty is embodied in: in order to indicate whether to deposit How in function field and quantity the information bit reserved in base band frame is reduced as far as possible;How a kind of structure is designed, Can all have very high packaging efficiency, without space when being inserted into the function field of different number, or being not inserted into function field Waste;The length variation range of function field is very big, how to indicate its length, so that can either indicate large-scale length, Encapsulation overhead can be reduced again;And how to make the structure of function field that there is scalability, it can support newly-designed function Energy field, while the normal use of original function field is not influenced;And receiver is when receiving the new function field that do not support, How to identify its type and length, and skip this it is new do not support function field after reprocess data thereafter.
Summary of the invention
Problems solved by the invention is that the method packaging efficiency of the currently insertion function field in base band frame is lower;Expand simultaneously Malleability is not high, and can not support extended new function field, and compatibility is bad.
To solve the above problems, having the embodiment of the invention provides a kind of insertion method of function field for being inserted into In the base band frame of frame head and data field, which comprises the following steps: reserve predetermined number ratio in the frame head of base band frame Spy is used as total attribute field;When the body field for not having to need to carry, no field value is set by total attribute field, then frame head Position is as data field to carry user data afterwards;And when the body field of carrying in need, by total attribute field Numerical value is accordingly provided with field value, then at least one seperated field all in the body field that need to be carried is sequentially inserted into frame head Position afterwards, then using remaining position as data field to carry user data, wherein seperated field has field bodies and foundation The field entrance is inserted into base band frame, then corresponding field bodies are inserted into the field by the field entrance that the field bodies generate Entry back.
Optionally, the highest order of the first segment byte of field entrance is to divide attribute field, is used to indicate locating split-type word Whether section is the last one seperated field, if only one needs the seperated field carried, by corresponding field entrance points Attribute field is set to last field value;The seperated field for needing to carry if more than one, and the seperated field being currently inserted into is most When the latter fission field, then a point attribute field is set to last field value, other fission fields in the last one seperated field In point attribute field be set to non-last field value respectively.
Optionally, the data type field of first segment byte is used to indicate several different data classes of respective field body Type, the length field at end in first segment byte, for indicating that respective field body is carried according to predetermined instruction rule The physical length of data makes a reservation for instruction rule and includes at least one of direct indicating mode and mapping indicating mode, determines length Degree field, which is using mapping indicating mode or using direct indicating mode, to be determined by the data type of field bodies, predetermined number Mapping indicating mode is used according to several species in type field.
The embodiment of the invention also provides a kind of analytic methods of function field, for generated from above-mentioned insertion method It is parsed in base band frame, which comprises the following steps: total attribute field in the frame head of detection base band frame first;If this is total Attribute field is no field value, then in current base band frame without body field, the data field after frame head is transmitted number of users According to;And if total attribute field is to have field value, carries body field in current base band frame, then needs to after frame head Body field carries out reception processing, wherein receive handle body field when, by be located at frame head after first segment byte into Corresponding data type field, length field obtained from row extraction process intercept out first seperated field, and check bit Point attribute field in this first seperated field: if minute mark will field difference indicates as the last one seperated field, It is then user data after the fission field, then function field reception is disposed;If minute mark will field difference indicates not It is the last one seperated field, the reception processing of next seperated field should be continued after this first seperated field.
Optionally, wherein in the corresponding data type field by handling first segment byte-extraction, length word Section intercepted out in the step of first seperated field comprising the steps of: according to predetermined field bodies data type Direct indicating mode is still used using mapping indicating mode, to the bit number in length field and in data type field The physical length and data of the carried data of subsequent field bodies are obtained according to corresponding decoding is carried out according to corresponding predetermined instruction rule Type;And after field entrance intercepted according to physical length, obtain to match with first character section entrance One field bodies, to obtain first seperated field.
Optionally, wherein in the step of being intercepted according to the resulting physical length of decoding and data type, further include Following steps: receiver judges to decode whether resulting data type is the data type supported;When the data for being judged as support When type, then after field entrance intercepted according to physical length, to obtain first seperated field;And works as and sentence Break for do not support data type when, then after field entrance skipped according to physical length, from skipping end position After start to extract processing to next seperated field.
Optionally, wherein when indicated predetermined instruction rule is direct indicating mode, then to sum number in length field Corresponding decoding is carried out according to the bit data in type field and obtains physical length, is comprised the following steps: being obtained by data type field It is extracted to the data type of subsequent field bodies, and to most significant bit in length field;If being short in the most significant bit When mode, then subsequent remaining bit indicates the physical length of field bodies in locating body field in the length field, and word is not present The second segment byte of section entrance, then intercepting out the field bodies of corresponding physical length after first segment byte;And if The most significant bit be long pattern when, then by first segment byte remove most significant bit after remaining bits position and second segment word Section spliced, calculate the physical length of subsequent field bodies, and after second segment byte extract corresponding physical length Field bodies.
Optionally, wherein when indicated predetermined instruction rule is mapping indicating mode, then to sum number in length field Physical length is obtained according to corresponding decoding is carried out according to the bit data in type field, is comprised the following steps: in first segment byte The bit data of data type field and length field extracts, and there is no the second segment bytes of extension;And it will be by data Type field and the extracted bit data of length field mutually one by one matchingly demapping be subsequent field bodies data type And physical length.
The embodiment of the invention also provides a kind of function field, it is arranged in the base band frame with frame head and data field, It is characterized in that, comprising: total attribute field in frame head;And according to system requirements and by total attribute field indicate by The body field of dynamic formation.
Optionally, when the content of total attribute field is designated as there are when body field, then body field is inserted in frame head Between data field;When the content of total attribute field is designated as that the body field is then not present there is no when body field.
Optionally, wherein body field includes at least one sequentially connected seperated field, and seperated field has for holding The field bodies of loading system performance data and the field entrance for generating and being inserted in front of the field bodies according to the field bodies, each field Contain in entrance with the first segment byte of the first predetermined length: point attribute field, data type field and being located at first segment word The length field at end in section, point attribute field are used to distinguish the last one the seperated field indicated in body field.
Optionally, wherein data type field is used to indicate several different types of data of respective field body, length word Section makes a reservation for instruction rule comprising straight for indicating the physical length of the carried data of respective field body according to predetermined instruction rule At least one of indicating mode and mapping indicating mode are connect, direct indicating mode is that physical length is carried out to direct coding and is held It is loaded in length field, mapping indicating mode is by all physical lengths and different length possessed by several different data types It spends field and mutually corresponds matching according to predetermined matching way.
Optionally, wherein in direct indicating mode, referred to using the most significant bit of length field in first segment byte Show whether physical length is whole is greater than certain certain length byte, when being not more than the certain length byte, by most significant bit It is set as short mode, and is directly carried on the remaining bit bit of length field after physical length is encoded;When greater than a fixed length When spending byte, field entrance also contains the second segment byte with the second predetermined length for extension as first segment byte, Most significant bit is set as long pattern, and total according to remaining bits in first segment byte and the second predetermined length are spliced Bit length to carry out zero filling cover to physical length after coding, will fill up rear physical length and is sequentially loaded in first segment byte In remaining bits and second segment byte.
Optionally, wherein in mapping indicating mode, all possible field bodies of a certain predetermined data types will be corresponded to Physical length matching mapping is carried out by different length fields one by one respectively, when by mapping indicating mode when only with word First segment byte in section entrance indicates physical length, without extending second segment byte.
Optionally, wherein determine that length field is using mapping indicating mode or using direct indicating mode is by word What the data type of segment body determined, several species use mapping indicating mode in predetermined data types field.
Compared with prior art, technical solution of the present invention has the advantages that
The insertion method and analytic method of related function field and the function field according to the present invention, because logical Crossing total attribute field can determine whether body field for bearing system performance data, by word in each seperated field It is inserted into a field entrance before segment body, to indicate the data type and field length of subsequent field bodies, realizes and flexibly inserts Enter function field, can support that being not inserted into the differences such as function field, one function field of insertion and the multiple function fields of insertion answers With scene, does not need as function field reserved space, and do not limit the number of the function field of insertion, improve packaging efficiency.
Detailed description of the invention
Fig. 1 is the flow diagram of the insertion method of function field in a specific embodiment of the invention;
Fig. 2 is the structural schematic diagram of base band frame when being not inserted into body field in a specific embodiment of the invention;
Fig. 3 is the structural schematic diagram of base band frame when being inserted into body field in a specific embodiment of the invention;
Fig. 4 is the structural schematic diagram of base band frame when containing 1 seperated field in a specific embodiment of the invention;
Fig. 5 is the structural schematic diagram of base band frame when containing 2 seperated fields in a specific embodiment of the invention;
Fig. 6 is the first structure diagram of seperated field in a specific embodiment of the invention;
Fig. 7 is the second structural schematic diagram of seperated field in a specific embodiment of the invention;
Fig. 8 is the third structural schematic diagram of seperated field in a specific embodiment of the invention;
Fig. 9 is the flow diagram of the analytic method of function field in a specific embodiment of the invention;And
Figure 10 is to carry out receiving area to body field in the analytic method of function field in a specific embodiment of the invention The flow diagram of reason.
Specific embodiment
Inventor has found that the method packaging efficiency for being currently inserted into function field in base band frame in the prior art is lower;Together When scalability it is not high, and can not support extended new function field, compatibility is bad.
In view of the above-mentioned problems, inventor after study, provides a kind of function field and the insertion side of the function field Method and analytic method, because can determine whether the body field for bearing system performance data by total attribute field, It will be inserted into a field entrance before field bodies in each seperated field, to indicate the data type and word of subsequent field bodies Segment length realizes flexible insertions function field, can support to be not inserted into one function field, insertion function field and be inserted into more The different applications scene such as a function field does not need as function field reserved space, and does not limit of the function field of insertion Number, improves packaging efficiency.
To make the above purposes, features and advantages of the invention more obvious and understandable, with reference to the accompanying drawing to the present invention Specific embodiment be described in detail.
<embodiment>
The embodiment of the invention provides a kind of insertion method of function field, for being inserted into frame head and data field In base band frame.It is the flow diagram of the insertion method of function field in a specific embodiment of the invention as shown in Figure 1.
With reference to Fig. 1, the insertion method of function field includes the following steps:
Step S11: predetermined number bit is reserved in the frame head of base band frame as total attribute field;
Step S12: when the body field for not having to need to carry, no field value is set by total attribute field, then frame head Position is as data field to carry user data afterwards;And
Step S13: when the body field of carrying in need, the numerical value of total attribute field is accordingly provided with field At least one seperated field all in the body field that need to be carried then are sequentially inserted into position after frame head, then remaining position by value It sets as data field to carry user data.
Wherein, which is inserted by the field entrance that seperated field has field bodies and generates according to the field bodies In base band frame, then corresponding field bodies are inserted into the field entry back.
Fig. 2 is the structural schematic diagram of base band frame 10 when being not inserted into body field in a specific embodiment of the invention;Fig. 3 is The structural schematic diagram of base band frame 11 when being inserted into body field in a specific embodiment of the invention.
Base band frame has frame head and data field, and function field is arranged in base band frame, and function field includes being located in frame head Total attribute field;And passive morphogenetic body field is indicated according to system requirements and by total attribute field.
The case where Fig. 2 is the body field according to system requirements without bearing system performance data, then, total attribute field The content of 10a is designated as that body field is not present, and is specifically designated as 0 in the present embodiment, then the main body is not present in base band frame 10 Field, after data field is inserted directly into frame head.
Fig. 3 is the case where foundation system requirements need the body field of bearing system performance data, then, total attribute field The content of 11a is designated as there are when body field 11b, and above-mentioned opposite there is no body field, is specifically indicated in the present embodiment It is 1, then body field 11b is inserted between frame head and data field.
In the present embodiment, shown in Fig. 2 and Fig. 3, optimally, total identification field 10a, 11a is inserted in the end of frame head Position, in the present invention, the other positions being also inserted into frame head.
Continue to be illustrated to there are the case where body field 11b, body field 11b includes sequentially connected at least one A fission field, in the present embodiment by Fig. 4 and Fig. 5 only to including 1 seperated field and including 2 seperated fields the case where Be specifically described respectively, the case where other are greater than 2 seperated fields principle it is similar, omit repeated explanation.
Fig. 4 is the structural schematic diagram of base band frame 20 when containing 1 seperated field in a specific embodiment of the invention;Fig. 5 is The structural schematic diagram of base band frame 30 when in a specific embodiment of the invention containing 2 seperated fields.
Seperated field has the field bodies for bearing system performance data and generates according to the field bodies and be inserted in the word Field entrance before segment body.
In Fig. 4, body field 11b has 1 seperated field, the as first seperated field, which includes the One field entrance and be located at subsequent first field bodies.
In Fig. 5, body field 11b has 2 seperated fields, i.e., the respectively first seperated field and the first split-type word Section, the first seperated field is comprising the first field entrance and is located at subsequent first field bodies of the field entrance, and then, second point Body field is comprising the second field entrance and is located at subsequent second field bodies of the field entrance.
As shown in Figure 4 and Figure 5, the first segment byte in each field entrance with the first predetermined length contains: minute mark will Field, data type field and in first segment byte end length field.Such as in Fig. 4, first segment byte contains point Attribute field 21, data type field 22 and length field 23.Such as in Fig. 5, the first segment byte of the first field entrance contains Divide attribute field 31, data type field 32 and length field 33;The first segment byte of second field entrance contains a point banner word Section 34, data type field 35 and length field 36.
Wherein, point attribute field 21,31,34 is used to distinguish the last one the seperated field indicated in body field.This Implement in such as Fig. 4, only comprising a seperated field, thus the numerical value of attribute field 21 is divided to be 0;And as in Fig. 5, included first Seperated field and the second seperated field, thus setting 1 for point attribute field 31 of the first seperated field is non-last field value, Point attribute field 34 of second seperated field is set as 0 as last field value, thus, difference indicates that the second seperated field is The last one seperated field in body field.
The present embodiment is more clearly illustrated the structure of field entrance by table 1, and the length of field entrance is 1 byte Or 2 bytes, structure are defined as follows:
Table 1: field entrance structure
By table 1 it is found that in the present embodiment, the entire length of field entrance is 8 (first segment bytes) or 16 (the One section of byte+second segment byte).
The highest order (i.e. the 7th) of the first segment byte of field entrance is to divide attribute field, is used to indicate locating fission Whether field is the last one seperated field, if only one needs the seperated field carried, by corresponding field entrance In a point attribute field be set to last field value (taking 0 in such as Fig. 4);The seperated field for needing to carry if more than one, and it is current slotting When the seperated field entered is the last one seperated field, then a point attribute field is set to last field in the last one seperated field Value (takes 0 in such as Fig. 5), and point attribute field in other fission fields is set to non-last field value (taking 1 in such as Fig. 5) respectively.
In table 1, in addition to dividing attribute field, first segment byte also has data type field (i.e. the 6th to 3) and length Field (i.e. the 2nd to 0).
Data type field is used to indicate several different types of data of respective field body.The value of data type field And it is defined as follows shown in table 2:
Table 2: the value and definition of data type field
The length field at end is used to indicate respective field body institute according to predetermined instruction rule in first segment byte Carry the physical length of data.
Two kinds of predetermined instruction rules are provided in the present embodiment, can be used according to the actual demand of broadcast system in Direct indicating mode is used in combination using mapping indicating mode, and by direct indicating mode and mapping indicating mode, I.e. predetermined instruction rule includes at least one of direct indicating mode and mapping indicating mode.Individually below for directly instruction Mode and mapping indicating mode are described in detail.
Firstly, direct indicating mode is described in detail.Direct indicating mode by by field bodies carrying data Physical length carries out direct coding and is carried in length field.
Fig. 6, Fig. 7 and Fig. 8 are the first structure 100, second of seperated field in a specific embodiment of the invention respectively 300 schematic diagram of structure 200 and third structure.
As shown in Figure 6 to 8, in direct indicating mode, the highest order (i.e. of length field in first segment byte is utilized 2) whether bit to indicate that physical length is whole be greater than certain certain length byte, in the present embodiment, due to length field position Number is 3, removes the highest order for being used to indicate whole physical length (the 2nd), then remaining 2 i.e. the 0th and the 1st comes Physical length is carried, so, the whole value for whether being greater than certain certain length byte of physical length n is 3.
As shown in fig. 6, when the physical length of field bodies is zero n=0, that is, it is not required to the performance data of bearing system When, 3 wholes of length field take zero, are 000.
As shown in fig. 7, when the physical length of field bodies is not more than 0 < n≤3 of the certain length byte, by highest order ratio Ad hoc is short mode, indicates short mode with 0 in the present embodiment, and remaining for length field is directly carried on after physical length is encoded On remaining position bit, then it represents that be 0XX.
As shown in figure 8, field entrance also contains tool when the physical length of field bodies is greater than certain length byte n > 3 There is the second segment byte (shown in table 1) of the second predetermined length for the extension as first segment byte, most significant bit is set For long pattern, short mode is indicated with 1 in the present embodiment, and make a reservation for according to by remaining bits in first segment byte (2) and second Length (8, i.e., the 0th to the 7th in table 1) splice obtained total bit length (2+8=10) come to physical length after coding into Row zero filling cover will be filled up in the remaining bits and second segment byte that rear physical length is sequentially loaded in first segment byte, then It is expressed as 1XXYYYYYYYY, has used 10 bits to indicate the physical length of field bodies, can support the maximum length of field bodies It is 1023.
Furthermore mapping indicating mode is described in detail, indirect indicating mode can also be referred to as.Map indicating mode For by all physical lengths possessed by several different data types and different length field according to predetermined matching way phase one One Corresponding matching.
In the present invention, determine length field can only with direct indicating mode or only with mapping indicating mode, It can directly indicating mode and mapping indicating mode be used in combination.Following Table 3 just list by by direct indicating mode and Mapping indicating mode is used in combination to determine the such situation of length field.
As shown in table 3 below, data type field has 4,16 different types of data can be supported, wherein being utilized 4 (0000 to 0011) has been reserved 12 (0100 ~ 1111) and has been defined to other data types.
Determine that length field is using mapping indicating mode or using direct indicating mode is the data class by field bodies What type determined, several species use mapping indicating mode in predetermined data types field.
In the present embodiment, as shown in Table 3, data type is respectively adopted when " time synchronization information " and " addressing information " Indicating mode is mapped, other remaining data types use direct indicating mode.
The physical length of all possible field bodies of a certain predetermined data types will be corresponded to respectively one by one by different The length field carries out matching mapping, and 8 kinds of combinations (000 to 111) that length field can indicate at this time can correspond to 8 kinds respectively Different physical lengths, and length field corresponding to " time synchronization information ", when the reality of all field bodies that may be present It is respectively field value " 000 " " 001 " " 010 " by matching mapping one by one when length is respectively " 1 " " 2 " " 4 " " 8 " " 011 ", it is other reserved.It is noted that not as compiled physical length " 1 " " 2 " " 4 " " 8 " respectively in direct indicating mode Code is that binary system is carried in length field, and direct indicating mode and mapping indicating mode are different herein.For in table 3 Corresponding to " addressing information " by physical length carry out the principle that is mapped in field length of matching one by one be it is identical, without Repeated explanation.
Further as shown in Table 3, it is contemplated that in order to match with 3 of length field in direct indicating mode, when logical When determining length field, physical length is referred to only with the first segment byte in field entrance when crossing mapping indicating mode Show, merely with the 0th to the 2nd in first segment byte, (is not utilized shown in fig. 8 without extending second segment byte Part " YYYYYYYY ").
Table 3: the type of data type field and use make a reservation for indicate rule relation table
The embodiment of the invention provides a kind of analytic method of function field, for from using function in above-described embodiment The insertion method of field and correspondingly parse function field in the base band frame that generates.Fig. 9 is specific embodiment party of the invention The flow diagram of the analytic method of function field in formula.
As shown in figure 9, the analytic method of function field, includes the following steps:
Step S21: total attribute field first in the frame head of detection base band frame;
Step S22: if total attribute field is no field value (i.e. as the total attribute field of Fig. 2 be 0), in current base band frame Without body field, the data field after frame head is transmitted user data;And
Step S23: if total attribute field is to have field value (i.e. if the total attribute field of Fig. 3 is 1), in current base band frame Body field is carried, then needs to carry out reception processing to the body field after frame head.
Figure 10 is to carry out receiving area to body field in the analytic method of function field in a specific embodiment of the invention The flow diagram of reason.
As shown in Figure 10, wherein determination carries body field, when receiving processing body field, specifically comprising following Sub-step:
Step S23-1: the corresponding data as obtained from extracting processing to the first segment byte after frame head Type field, length field intercept out first seperated field, and detect the minute mark will being located in this first seperated field Field:
Step S23-2: if minute mark will field difference indicates as the last one seperated field, after the fission field For user data, then function field reception is disposed, so that receiver obtains the function field and is used;And
Step S23-3:, should be first from this if it is not the last one seperated field that minute mark will field difference, which indicates, Continue the reception processing of next seperated field after seperated field.
Specifically, it is cut in corresponding data type field, the length field by handling first segment byte-extraction In the step of taking out first seperated field comprising the steps of:
According to predetermined field bodies data type using mapping indicating mode still using directly instruction Mode (as shown in Table 3 above), to the bit data in length field and in data type field according to corresponding predetermined instruction Rule carries out corresponding decoding and obtains the physical length and data type of the carried data of subsequent field bodies;And
It is intercepted after field entrance according to physical length, obtains match with first character section entrance first A field bodies, to obtain first seperated field.
Such as " zero filling " in table 3 and " in-band signaling " data type parsing length field come when obtaining physical length, Since transmitting terminal and receiving end predetermined " zero filling " and " in-band signaling " be inserted into using direct indicating mode, parses length Field is spent, then, receiving end side uses direct indicating mode to the bit data in length field and in data type field It carries out corresponding decoding and obtains physical length, specifically include the following steps:
Step S1-a: the data type of subsequent field bodies is obtained by the bit data that data type field is carried, and right Most significant bit extracts in length field;
Step S1-b: if when the most significant bit is short mode (situation in such as Fig. 6 and Fig. 7), in the length field Subsequent remaining bit indicates the physical length of field bodies in locating body field, and the second segment byte of field entrance is not present, that The field bodies of corresponding physical length are intercepted out after first segment byte, i.e., begin to cut by one end position of field entrance Take the field bodies of carrying system performance data;And
Step S1-c: it if when the most significant bit is long pattern (situation in such as Fig. 8), will be removed in first segment byte Remaining bits position and second segment byte after most significant bit are spliced, and calculate the physical length of subsequent field bodies, and from Start to extract the field bodies of corresponding physical length after second segment byte, i.e., and by one end position of field entrance begins to cut Take the field bodies of carrying system performance data.
Mutually side by side, such as the data types such as " time synchronization information " in table 3 length field is parsed to obtain reality When length, due to transmitting terminal and receiving end predetermined " time synchronization information " etc. using indirectly mapping indicating mode come Insertion, parsing length field, then, receiving end side uses the bit data in length field and in data type field Mapping indicating mode carries out corresponding decoding and obtains physical length, specifically includes the following steps:
Step S2-a: the bit data of data type field and length field in first segment byte is extracted, is not deposited In the second segment byte of extension, such as extract " 0001000 " corresponding with data type " time synchronization information " in table 3 7 bit datas as " 0001001 " " 0001010 " " 0001011 ";And
Step S2-b: will be by data type field and the extracted bit data of length field mutually matchingly demapping one by one For the data type and physical length of subsequent field bodies, this can reversely be deduced by table 3, determine physical length and data Type.
In addition, specific embodiments of the present invention are in the step intercepted according to the resulting physical length of decoding and data type Further comprising the steps of in rapid: receiver judges to decode whether resulting data type is the data type supported;
When being judged as the data type of support, then after field entrance intercepted according to physical length, thus Obtain first seperated field;And when being judged as the data type that do not support, then after field entrance according to reality Length is skipped, and extracts processing to next seperated field since skipping after end position.
The present invention has above-mentioned such processing step, can be realized: when receiver is receiving the function field that do not support When data type, it can also parse the length of the field bodies and determine that this skips how many bits according to the length parsed Data skip the function field that do not support to realize, and then handle data thereafter, for example, to next seperated field or Person's data field extracts processing.
This point, since the parameters such as the type of data type field, length are that carrying is encapsulated in the data class in the prior art In type-word section, once the type receiver of the data type field is unassisted, receiver can not be from the data class type-word Length is parsed in section, also can not just learn should jump out much length come at the data that may support to next section Reason, this point have greater significance compared in the prior art.
By the above description of specific embodiment, specific embodiments of the present invention further have the effect that and effect:
The present invention extends the type for the function field that system can be supported, can indicate 16 kinds of different types;It can prop up It holds and is not inserted into the different applications scenes such as body field, insertion one seperated field and the multiple seperated fields of insertion, flexibly cope with this A little scenes do not need as the body field reserved space in function field, and do not limit seperated field in the body field of insertion Number;The method of two kinds of indication field length is provided, directly instruction rule and mapping instruction rule, in directly instruction rule In ensure that can indicate to be up to the function field length of 1023 bytes also can be in the length time for indicating shorter field bodies The space for saving 1 byte, improves packaging efficiency, can the more flexible actual (tube) length by field bodies using mapping instruction rule Degree is carried in length field, and can further be encapsulated by combining direct instruction rule and mapping instruction rule Efficiency.
In addition, the analytic method of the function field proposed in the specific embodiment of the invention, can be such that receiver successively parses Middle base band frame each of is carried the type and length of field bodies in seperated field, and is extracted each field bodies and be used;Together When receiver when receiving the data type for the field bodies that do not support, can also parse the length of the field bodies and skip the word Segment body handles data thereafter.
Although the invention has been described by way of example and in terms of the preferred embodiments, but it is not for limiting the present invention, any this field Technical staff without departing from the spirit and scope of the present invention, may be by the methods and technical content of the disclosure above to this hair Bright technical solution makes possible variation and modification, therefore, anything that does not depart from the technical scheme of the invention, and according to the present invention Technical spirit any simple modifications, equivalents, and modifications to the above embodiments, belong to technical solution of the present invention Protection scope.

Claims (5)

1. a kind of analytic method of function field, for being parsed from base band frame, which comprises the following steps:
Total attribute field in the frame head of the base band frame is detected first;
If total attribute field is no field value, without body field in current base band frame, the data field after frame head is to be passed Defeated user data;And
If total attribute field is to have field value, body field is carried in current base band frame, then is needed to the master after frame head Body field carries out reception processing,
Wherein, when receiving the processing body field, and processing by being extracted to the first segment byte after frame head Obtained corresponding data type field, length field intercept out first seperated field, and detect and be located at this first point Divide attribute field in body field:
If minute mark will field difference indicates that for the last one seperated field, which is later user data, then Function field reception is disposed;
If it is not the last one seperated field that minute mark will field difference, which indicates, should after this first seperated field after Continue the reception processing of next seperated field.
2. the analytic method of function field as described in claim 1, it is characterised in that:
Wherein, by intercepting out to corresponding data type field, the length field that first segment byte-extraction is handled In the step of one seperated field comprising the steps of:
According to predetermined field bodies data type using mapping indicating mode still use direct indicating mode, The bit data in the data type field is neutralized to the length field to carry out accordingly according to predetermined instruction rule accordingly Decoding obtains the physical length and data type of subsequent the carried data of field bodies;And
It is intercepted after field entrance according to physical length, obtains the first character to match with first character section entrance Segment body, to obtain described first seperated field.
3. the analytic method of function field as claimed in claim 2, it is characterised in that:
Wherein, further comprising the steps of in the step of being intercepted according to the resulting physical length of decoding:
Receiver judges to decode whether resulting data type is the data type supported;
When being judged as the data type of support, then after the field entrance intercepted according to physical length, thus Obtain first seperated field;And
When being judged as the data type that do not support, then after the field entrance skipped according to physical length, from Start to extract processing to next seperated field after skipping end position.
4. the analytic method of function field as claimed in claim 2, it is characterised in that:
Wherein, when the indicated predetermined instruction rule is direct indicating mode, then to described in length field neutralization Bit data in data type field carries out corresponding decoding and obtains physical length, comprises the following steps:
The data type of the subsequent field bodies is obtained by the data type field, and to highest order ratio in the length field Spy extracts;
If then remaining bit indicates field in locating body field in the length field when the most significant bit is short mode The physical length of body, and the second segment byte of the field entrance is not present, then being intercepted after the first segment byte The field bodies of corresponding physical length out;And
If the most significant bit be long pattern when, by first segment byte remove most significant bit after remaining bits position and Second segment byte is spliced, and the physical length of the subsequent field bodies is calculated, and after second segment byte extract The field bodies of corresponding physical length.
5. the analytic method of function field as claimed in claim 2, it is characterised in that:
Wherein, when the indicated predetermined instruction rule is maps indicating mode, then to described in length field neutralization Bit data in data type field obtains physical length according to corresponding decoding is carried out, and comprises the following steps:
The bit data of data type field described in first segment byte and the length field is extracted, there is no extensions Second segment byte;And
Will by the data type field and the extracted bit data of the length field mutually one by one matchingly demapping be with The data type and the physical length of the field bodies afterwards.
CN201410853416.8A 2014-12-31 2014-12-31 The analytic method of function field Active CN105812335B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410853416.8A CN105812335B (en) 2014-12-31 2014-12-31 The analytic method of function field

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410853416.8A CN105812335B (en) 2014-12-31 2014-12-31 The analytic method of function field

Publications (2)

Publication Number Publication Date
CN105812335A CN105812335A (en) 2016-07-27
CN105812335B true CN105812335B (en) 2019-07-23

Family

ID=56421388

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410853416.8A Active CN105812335B (en) 2014-12-31 2014-12-31 The analytic method of function field

Country Status (1)

Country Link
CN (1) CN105812335B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110191156B (en) * 2019-05-08 2021-11-09 深圳前海微众银行股份有限公司 Data processing method and device based on block chain

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127768A (en) * 2007-08-24 2008-02-20 张建中 Method, device and system for creating multi-dimension inter-network protocol
EP2362653A1 (en) * 2010-02-26 2011-08-31 Panasonic Corporation Transport stream packet header compression
CN102694635A (en) * 2012-06-07 2012-09-26 中国科学院声学研究所 Method and device for generating and using selective acknowledgement (SACK) option
CN103595504A (en) * 2013-11-04 2014-02-19 上海数字电视国家工程研究中心有限公司 Encapsulation method and calibration method for data package

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3400772B2 (en) * 2000-04-25 2003-04-28 松下電器産業株式会社 Packet transmission / reception processing device
CN101286809A (en) * 2008-05-07 2008-10-15 中兴通讯股份有限公司 Method and device for conditional receiving update of plug-in by multimedia broadcast
CN103178931B (en) * 2011-12-20 2017-04-19 华为技术有限公司 Data frame transmission method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127768A (en) * 2007-08-24 2008-02-20 张建中 Method, device and system for creating multi-dimension inter-network protocol
EP2362653A1 (en) * 2010-02-26 2011-08-31 Panasonic Corporation Transport stream packet header compression
CN102694635A (en) * 2012-06-07 2012-09-26 中国科学院声学研究所 Method and device for generating and using selective acknowledgement (SACK) option
CN103595504A (en) * 2013-11-04 2014-02-19 上海数字电视国家工程研究中心有限公司 Encapsulation method and calibration method for data package

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《下一代数字电视广播IP封装与传输技术研究》;徐洪亮等;《电视技术—万方数据库》;20141205;全文

Also Published As

Publication number Publication date
CN105812335A (en) 2016-07-27

Similar Documents

Publication Publication Date Title
CN106777292B (en) A kind of Data Serialization method and device
CN103186510B (en) A kind of method and apparatus of convert documents form
CN103336690B (en) HTML (Hypertext Markup Language) 5-based text-element drawing method and device
CN102624685A (en) Encodable protocol processing method for intelligent equipment
CN105340282A (en) Data structure for physical layer encapsulation, data structure generating apparatus and method thereof
CN104579541B (en) A kind of building method of wireless communication system Medium Access Layer protocol Data Unit
CN108123775A (en) The method and apparatus of transmission packet
CN103607668B (en) Video play method and apparatus
CN106454432B (en) A kind of video frame treating method and apparatus
CN109684457A (en) A kind of method and system that personal share advertisement data is extracted
CN105812335B (en) The analytic method of function field
CN103997760A (en) Data packing and collecting method for user electricity information collecting system
CN104516859B (en) A kind of word modification method and system
CN102289445A (en) Method and device for analyzing XML (Extensible Markup Language) file and terminal
CN107436929A (en) Expandable mark language XML document analysis method and device
CN104424163B (en) Literal processing method and system
CN109062507A (en) The processing storage method and device of electrocardiogram (ECG) data
CN110019012A (en) Data preprocessing method, device and computer readable storage medium
CN102055549B (en) Rate matching device and method for long term evolution system
CN111061927B (en) Data processing method and device and electronic equipment
CN106293862B (en) A kind of analysis method and device of expandable mark language XML data
CN106446610A (en) Method and system for analyzing swf file embedded into PPT
CN114466087A (en) Data transmission method, device, equipment and storage medium
CN111026555B (en) Priority level flow separation compensation method and device and electronic equipment
CN111143554B (en) Data sampling method and device based on big data platform

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Room 1018, block B, No. three East Bridge Road, Pudong New Area, Shanghai, 200125, China

Applicant after: Shanghai NERC-DTV National Engineering Research Center Co., Ltd.

Address before: 200125 Shanghai East Road, Pudong New Area, No. three, No. 1018

Applicant before: Shanghai NERC-DTV National Engineering Research Center Co., Ltd.

COR Change of bibliographic data
GR01 Patent grant
GR01 Patent grant