CN105812335A - Function field insertion method and analysis method - Google Patents

Function field insertion method and analysis method Download PDF

Info

Publication number
CN105812335A
CN105812335A CN201410853416.8A CN201410853416A CN105812335A CN 105812335 A CN105812335 A CN 105812335A CN 201410853416 A CN201410853416 A CN 201410853416A CN 105812335 A CN105812335 A CN 105812335A
Authority
CN
China
Prior art keywords
field
length
byte
data
split
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410853416.8A
Other languages
Chinese (zh)
Other versions
CN105812335B (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

Landscapes

  • Communication Control (AREA)

Abstract

The invention provides a function field insertion method and an analysis method, and the function field insertion method is characterized in that the method can determine whether there is a main field for carrying system function data or not through a general mark field; the method inserts one field inlet before a field body of each split field, so as to mark the data type and field length of a subsequent field body; the method achieves the flexible insertion of a function field, and can support different application occasions: inserting no function field, inserting one function field, and inserting a plurality of function fields; the method does not need to reserve a space for the function field, does not limit the number of inserted function fields, and improves the packaging efficiency.

Description

The insertion method of function field and analytic method
Technical field
The present invention relates to broadcast system, particularly to insertion method and the analytic method of function field in a kind of base band frame and this function field.
Background technology
Base band frame is the elementary cell of data encapsulation in broadcast system, is generally made up of frame head and data field, and frame head is for carrying the configuration information of current base band frame, and data field is used for carrying user data.Function field is a kind of data with special role, is often referred to the systemic-function data illustrating broadcast system, for instance configuration and parameter etc., and these configure, the function field of supplemental characteristic needs to be placed in base band frame and carries.Owing to the demand of broadcast system is different, so a base band frame needing the function field of carrying be often possible to as one or more, it is also possible to need not bearing function field.
Existing in base band frame the method for bearing function field be: frame head specify position reserve certain space with bearing function field, the type of institute's bearing function field, position, length and number need to specify in advance.When resolving base band frame, receiver, according to the type of defined, position, length and number information, extracts each function field respectively, and is used.
Existing methodical deficiency is in that, owing to having specified in advance, then when not needing certain function field in system, and the space reserved for this function field then cannot discharge to carry other data, like this, not only reduces packaging efficiency;And system also cannot support new function field.
Therefore to solve to insert the problem of function field at base band frame, main difficulty is embodied in: in order to indicate whether how function field and quantity reduce the information bit reserved in base band frame as far as possible;How to design a kind of structure, it is possible in the function field inserting varying number, or when being not inserted into function field, all there is significantly high packaging efficiency, it does not have space waste;The length excursion of function field is very big, how to indicate its length, so that large-scale length can either be indicated, can reduce again encapsulation overhead;And how to make the structure of function field have extensibility, it would be preferable to support and newly-designed function field, do not affect the normal use of original function field simultaneously;And receiver is when receiving the New function field do not supported, how to identify its type and length, and skip this new do not support function field after reprocess data thereafter.
Summary of the invention
The problem that this invention address that is that current to be inserted into the method packaging efficiency of function field at base band frame relatively low;Autgmentability is not high simultaneously, and cannot support the New function field extended, and compatibility is not good.
For solving the problems referred to above, embodiments provide the insertion method of a kind of function field, for inserting in the base band frame with frame head and data field, it is characterised in that comprise the following steps: in the frame head of base band frame, reserved predetermined number bit is as total attribute field;When do not need carrying body field time, total attribute field is set to without field value, then after frame head position as data field in order to carry user data;And when there is a need to the body field of carrying, by the numerical value relative set of total attribute field for there being field value, then at least one split fields all in the body field that need to carry are sequentially inserted into position after frame head, then using remaining position as data field in order to carry user data, wherein, split field has field bodies and the field entrance generated according to this field bodies, is inserted in base band frame by this field entrance, more corresponding field bodies is inserted into this field entry back.
Optionally, the highest order of the first paragraph byte of field entrance is a point attribute field, for indicating whether residing split field is last split field, if only one of which needs the split field of carrying, then a point attribute field in corresponding field entrance is set to last field value;If need the split field of carrying more than one, and the split field being currently inserted into is when being last split field, then in this last split field, a point attribute field is set to last field value, and point attribute field in other split field is set to non-final field value respectively.
Optionally, the data type field of first paragraph byte is for indicating several different types of data of respective field body, it is arranged in the length field at first paragraph byte end, for indicating the physical length of the carried data of respective field body according to predetermined instruction rule, predetermined instruction rule comprises at least one in direct indicating mode and mapping indicating mode, determining that length field is that employing maps indicating mode or adopting direct indicating mode is determined by the data type of field bodies, in predetermined data types field, some kinds adopt mapping indicating mode.
The embodiment of the present invention additionally provides the analytic method of a kind of function field, for resolving from the base band frame that above-mentioned insertion method generates, it is characterised in that comprise the following steps: first detect total attribute field in the frame head of base band frame;If this total attribute field is without field value, then without body field in current base band frame, the data field after frame head is the user data transmitted;If and this total attribute field is for there being field value, then carry body field in current base band frame, then need to be received the body field after frame head processing, wherein, when reception processes body field, the corresponding data type field carrying out extraction process by the first paragraph byte after being pointed to frame head and obtain, length field intercepts out first split field, and detect point attribute field being arranged in this first split field: if the difference of this minute mark will field indicates as last split field, it is then user data after this split field, then function field receives and is disposed;If the difference of this minute mark will field to indicate be not last split field, it should process from the reception continuing next split field after this first split field.
Optionally, wherein, passing through first paragraph byte-extraction is processed the corresponding data type field that obtains, length field intercept out in the step of first split field, comprise the steps of according to the data type of predetermined field bodies adopts is map indicating mode or adopt direct indicating mode, the Bit data in length field and in data type field is carried out corresponding decoding according to corresponding predetermined instruction rule and obtains physical length and the data type of the carried data of field bodies subsequently;And start to intercept according to physical length after field entrance, obtain the first character segment body matched with first character section entrance, thus obtaining first split field.
Optionally, wherein, carry out in the step intercepted in physical length and the data type according to decoding gained, further comprising the steps of: receiver judges whether the data type of decoding gained is the data type supported;When being judged as the data type supported, then start to intercept according to physical length after field entrance, thus obtaining first split field;And when being judged as the data type do not supported, then start to skip according to physical length after field entrance, start next split field is carried out extraction process after skipping end position.
Optionally, wherein, when indicated predetermined instruction rule is direct indicating mode, then the Bit data in length field and in data type field is carried out corresponding decoding and obtain physical length, comprise the steps of: obtained the data type of field bodies subsequently by data type field, and most significant bit in length field is extracted;If when this most significant bit is short pattern, then in this length field, remaining bit represents the physical length of field bodies in residing body field subsequently, and it is absent from the second segment byte of field entrance, then after first paragraph byte, start to intercept out the field bodies of corresponding physical length;And if when this most significant bit is long pattern, then the remaining bits position after removing most significant bit in first paragraph byte and second segment byte are spliced, calculate the physical length of field bodies subsequently, and after second segment byte, start to extract the field bodies of corresponding physical length.
Optionally, wherein, when indicated predetermined instruction rule is for mapping indicating mode, then the Bit data in length field and in data type field is obtained physical length according to carrying out corresponding decoding, comprise the steps of: the Bit data of data type field and length field in first paragraph byte is extracted, be absent from the second segment byte of extension;And by the Bit data extracted by data type field and length field mutually one by one matchingly demapping be data type and the physical length of field bodies subsequently.
The embodiment of the present invention additionally provides a kind of function field, is arranged in the base band frame with frame head and data field, it is characterised in that including: be positioned at total attribute field of frame head;And according to system requirements and being indicated and passive morphogenetic body field by total attribute field.
Optionally, when the content of total attribute field is designated as and there is body field, then body field is inserted between frame head and data field;When the content of total attribute field be designated as be absent from body field time, then be absent from this body field.
Optionally, wherein, body field comprises at least one the split field being sequentially connected with, split field has the field bodies for bearing system performance data and generates according to this field bodies and be inserted in the field entrance before this field bodies, the first paragraph byte in each field entrance with the first predetermined length contains: point attribute field, data type field and be arranged in the length field at first paragraph byte end, and point attribute field is for distinguishing last the split field indicated in body field.
Optionally, wherein, data type field is for indicating several different types of data of respective field body, length field for indicating the physical length of the carried data of respective field body according to predetermined instruction rule, predetermined instruction rule comprises at least one in direct indicating mode and mapping indicating mode, direct indicating mode, for physical length carrying out direct coding and being carried in length field, maps indicating mode and is all physical lengths several data types different being had and different length field is mated according to predetermined matching way phase one_to_one corresponding.
Optionally, wherein, in direct indicating mode, utilize in first paragraph byte the most significant bit of length field whether to indicate physical length entirety more than certain certain length byte, when being not more than this certain length byte, most significant bit is set to short pattern, and is directly carried on the remaining bit bit of length field after physical length coding;When more than this certain length byte, field entrance is possibly together with having the second segment byte of the second predetermined length for the extension as first paragraph byte, most significant bit is set to long pattern, and according to remaining bits in first paragraph byte and the second predetermined length being spliced the total bit length obtained, physical length after coding is carried out zero filling cover, sequentially it is loaded with the remaining bits in first paragraph byte and in second segment byte by filling up rear physical length.
Optionally, wherein, in mapping indicating mode, would correspond to a certain predetermined data types likely field bodies physical length respectively one by one by different length fields carry out coupling map, only with the first paragraph byte in field entrance, physical length is indicated when by mapping indicating mode, it is not necessary to extension second segment byte.
Optionally, wherein it is determined that length field is that employing maps indicating mode or adopting direct indicating mode is determined by the data type of field bodies, in predetermined data types field, some kinds adopt mapping indicating mode.
Compared with prior art, technical solution of the present invention has the advantages that
According to function field involved in the present invention, and the insertion method of this function field and analytic method, because can determine whether the body field for bearing system performance data by total attribute field, a field entrance will be inserted before field bodies in each split field, data type and field length in order to mark field bodies subsequently, achieve and insert function field flexibly, can support to be not inserted into function field, insert a function field and insert the different application scenes such as multiple function fields, it is not necessary for function field headspace, and it is not intended to the number of the function field inserted, improve packaging efficiency.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the insertion method of function field in the specific embodiment of the present invention;
The structural representation of base band frame when Fig. 2 is to be not inserted into body field in the specific embodiment of the present invention;
The structural representation of base band frame when Fig. 3 is to insert body field in the specific embodiment of the present invention;
Fig. 4 be in the specific embodiment of the present invention containing 1 split field time base band frame structural representation;
Fig. 5 be in the specific embodiment of the present invention containing 2 split fields time base band frame structural representation;
Fig. 6 is the first structural representation of split field in the specific embodiment of the present invention;
Fig. 7 is the second structural representation of split field in the specific embodiment of the present invention;
Fig. 8 is the 3rd structural representation of split field in the specific embodiment of the present invention;
Fig. 9 is the schematic flow sheet of the analytic method of function field in the specific embodiment of the present invention;And
Figure 10 is the schematic flow sheet being received body field in the analytic method of function field in the specific embodiment of the present invention processing.
Detailed description of the invention
Inventor have found that in prior art, be currently inserted into the method packaging efficiency of function field at base band frame relatively low;Autgmentability is not high simultaneously, and cannot support the New function field extended, and compatibility is not good.
For the problems referred to above, inventor is through research, provide a kind of function field, and the insertion method of this function field and analytic method, because can determine whether the body field for bearing system performance data by total attribute field, a field entrance will be inserted before field bodies in each split field, data type and field length in order to mark field bodies subsequently, achieve and insert function field flexibly, can support to be not inserted into function field, insert a function field and insert the different application scenes such as multiple function fields, it is not necessary for function field headspace, and it is not intended to the number of the function field inserted, improve packaging efficiency.
Understandable for enabling the above-mentioned purpose of the present invention, feature and advantage to become apparent from, below in conjunction with accompanying drawing, the specific embodiment of the present invention is described in detail.
<embodiment>
Embodiments provide the insertion method of a kind of function field, for inserting in the base band frame with frame head and data field.It is the schematic flow sheet of the insertion method of function field in the specific embodiment of the present invention as shown in Figure 1.
With reference to Fig. 1, the insertion method of function field, comprise the steps:
Step S11: reserved predetermined number bit is as total attribute field in the frame head of base band frame;
Step S12: when do not need carrying body field time, total attribute field is set to without field value, then after frame head position as data field in order to carry user data;And
Step S13: when there is a need to the body field of carrying, by the numerical value relative set of total attribute field for there being field value, then at least one split fields all in the body field that need to carry are sequentially inserted into position after frame head, then using remaining position as data field in order to carry user data.
Wherein, split field has field bodies and the field entrance generated according to this field bodies, is inserted in base band frame by this field entrance, more corresponding field bodies is inserted into this field entry back.
The structural representation of base band frame 10 when Fig. 2 is to be not inserted into body field in the specific embodiment of the present invention;The structural representation of base band frame 11 when Fig. 3 is to insert body field in the specific embodiment of the present invention.
Base band frame has frame head and data field, and function field is arranged in base band frame, and function field includes the total attribute field being positioned at frame head;And according to system requirements and being indicated and passive morphogenetic body field by total attribute field.
Fig. 2 is the foundation system requirements situations without the body field of bearing system performance data, so, the content of total attribute field 10a is designated as and is absent from body field, refers specifically to be shown as 0 in the present embodiment, then it is absent from this body field in base band frame 10, after data field is inserted directly into frame head.
Fig. 3 is the situation of the body field needing bearing system performance data according to system requirements, so, the content of total attribute field 11a is designated as when there is body field 11b, with above-mentioned to be absent from body field relative, refer specifically in the present embodiment be shown as 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 are inserted in the end position of frame head, in the present invention, it is also possible to be inserted in other positions in frame head.
Continue the situation that there is body field 11b is illustrated, this body field 11b comprises at least one the split field being sequentially connected with, by Fig. 4 and Fig. 5 only to comprising 1 split field and the situation comprising 2 split fields is specifically described respectively in the present embodiment, other are similar more than the situation principle of 2 split fields, omit repeat specification.
Fig. 4 be in the specific embodiment of the present invention containing 1 split field time base band frame 20 structural representation;Fig. 5 be in the specific embodiment of the present invention containing 2 split fields time base band frame 30 structural representation.
Split field has the field bodies for bearing system performance data and generates according to this field bodies and be inserted in the field entrance before this field bodies.
In the diagram, body field 11b has 1 split field, is the first split field, and this split field comprises the first field entrance and is positioned at the first field bodies below.
In Figure 5, body field 11b has 2 split fields, i.e. respectively the first split field and the first split field, first split field comprises the first field entrance and is positioned at this field entrance the first field bodies below, and then, the second split field comprises the second field entrance and is positioned at this field entrance the second field bodies below.
As shown in Figure 4 and Figure 5, the first paragraph byte in each field entrance with the first predetermined length contains: point attribute field, data type field and be arranged in the length field at first paragraph byte end.Such as, in Fig. 4, first paragraph byte contains point attribute field 21, data type field 22 and length field 23.Such as, in Fig. 5, the first paragraph byte of the first field entrance contains point attribute field 31, data type field 32 and length field 33;The first paragraph byte of the second field entrance contains point attribute field 34, data type field 35 and length field 36.
Wherein, point attribute field 21,31,34 is for distinguishing last the split field indicated in body field.In the present embodiment such as Fig. 4, only comprise a split field, thus the numerical value of point attribute field 21 is 0;And in Fig. 5, comprise the first split field and the second split field, thus point attribute field 31 of the first split field is set to 1 for non-final field value, point attribute field 34 of the second split field is set to 0 for last field value, thus, it is last the split field in body field that difference indicates this second split field.
The structure of field entrance is more clearly illustrated by the present embodiment by table 1, and the length of field entrance is 1 byte or 2 bytes, and the definition of its structure is as follows:
Table 1: field entrance structure
By table 1 it can be seen that in the present embodiment, the entire length of field entrance is 8 (first paragraph bytes) or 16 (first paragraph byte+second segment byte).
The highest order (namely the 7th) of the first paragraph byte of field entrance is a point attribute field, whether it is last split field for what indicate residing split field, if only one of which needs the split field of carrying, then a point attribute field in corresponding field entrance is set to last field value (taking 0 in Fig. 4);If need the split field of carrying more than one, and the split field being currently inserted into is when being last split field, then in this last split field, a point attribute field is set to last field value (taking 0 in Fig. 5), and point attribute field in other split field is set to non-final field value (taking 1 in Fig. 5) respectively.
In table 1, except a point attribute field, first paragraph byte also has data type field (namely the 6th to 3) and length field (namely the 2nd to 0).
Data type field is for indicating several different types of data of respective field body.The value of data type field and define as shown in table 2 below:
Table 2: the value of data type field and definition
6th to 3 value Definition Function field content
0000 Zero filling With zero padding, play occupy-place effect, without actual functional capability
0001 Time synchronization information The temporal information of user data package in data field
0010 In-band signaling The relevant configuration information of physical layer
0011 Addressing information The address information of user data package in data field
0100~1111 Reserved Reserved
It is arranged in the length field at first paragraph byte end for indicating the physical length of the carried data of respective field body according to predetermined instruction rule.
The present embodiment provides two kinds of predetermined instruction rules, can according to the actual demand of broadcast system in application, direct indicating mode or employing is adopted to map indicating mode, and use that direct indicating mode and mapping indicating mode are combined, namely predetermined instruction rule comprises at least one in direct indicating mode and mapping indicating mode.It is described in detail for direct indicating mode and mapping indicating mode individually below.
First, direct indicating mode is described in detail.Direct indicating mode by by field bodies the physical length of carrying data carry out direct coding and be carried in length field.
Fig. 6, Fig. 7 and Fig. 8 are the first structure the 100, second structure 200 and the 3rd structure 300 schematic diagram of split field in the specific embodiment of the present invention respectively.
As shown in Figure 6 to 8, in direct indicating mode, utilize highest order (namely the 2nd) bit of length field in first paragraph byte whether to indicate physical length entirety more than certain certain length byte, in the present embodiment, owing to length field figure place is 3, remove this highest order (the 2nd) for indicating overall physical length, so residue 2 namely the 0th and the 1st carries physical length, so, whether physical length n is overall is 3 more than the value of certain certain length byte.
As shown in Figure 6, when the physical length of field bodies is zero n=0, when namely not needing the performance data of bearing system, length field 3 all takes zero, is 000.
As shown in Figure 7, when the physical length of field bodies is not more than these certain length byte 0 < n≤3, most significant bit is set to short pattern, the present embodiment represents short pattern with 0, and directly it is carried on the remaining bit bit of length field after physical length is encoded, then it represents that for 0XX.
As shown in Figure 8, when the physical length of field bodies is more than this certain length byte n > 3, field entrance is used for the extension as first paragraph byte possibly together with the second segment byte (shown in table 1) with the second predetermined length, most significant bit is set to long pattern, the present embodiment represents short pattern with 1, and according to by remaining bits in first paragraph byte (2) and the second predetermined length (8, namely in table 1 the 0th to the 7th) physical length after coding carries out zero filling cover by total bit length (2+8=10 position) of obtaining of splicing, the remaining bits in first paragraph byte sequentially it is loaded with and in second segment byte by filling up rear physical length, then it is expressed as 1XXYYYYYYYY, employ 10 bits and represent the physical length of field bodies, namely the greatest length that can support field bodies is 1023.
Furthermore, it is described in detail to mapping indicating mode, it is also possible to be referred to as indirect indicating mode.Map indicating mode and be all physical lengths several data types different being had and different length field is mated according to predetermined matching way phase one_to_one corresponding.
In the present invention, it is determined that length field can only with direct indicating mode or only with mapping indicating mode, it is also possible to directly indicating mode and map indicating mode and combine use.Table 3 below just lists by direct indicating mode and mapping indicating mode are combined and made for determining the such situation of length field.
As shown in table 3 below, data type field has 4, can support 16 different types of data, wherein make use of 4 (0000 to 0011), has reserved 12 (0100~1111) and other data type is defined.
Determining that length field is that employing maps indicating mode or adopting direct indicating mode is determined by the data type of field bodies, in predetermined data types field, some kinds adopt mapping indicating mode.
In the present embodiment, as shown in Table 3, being respectively adopted mapping indicating mode during by data type for " time synchronization information " and " addressing information ", other remaining data types adopt direct indicating mode.
Would correspond to a certain predetermined data types likely field bodies physical length respectively one by one by different described length fields carry out coupling map, 8 kinds of combinations (000 to 111) that now length field can represent distinguish physical length that can be corresponding 8 kinds different, with the length field corresponding to " time synchronization information ", when physical length respectively " 1 " " 2 " " 4 " " 8 " of all field bodies that may be present, mapping respectively field value " 000 " " 001 " " 010 " " 011 " by mating one by one, other is reserved.Being carried in length field it is noted that not physical length " 1 " " 2 " " 4 " " 8 " be separately encoded in direct indicating mode for binary system, directly indicating mode and mapping indicating mode are different herein.It is identical for the principle that coupling is mapped in field length one by one that physical length is carried out corresponding to " addressing information " in table 3, is not repeated.
Further as shown in Table 3, consider to match with in direct indicating mode 3 of length field, when determining length field when by mapping indicating mode, only with the first paragraph byte in field entrance, physical length is indicated, merely with the 0th in first paragraph byte to the 2nd, it is not necessary to extension second segment byte (namely not utilizing " YYYYYYYY " part shown in Fig. 8).
Table 3: the type of data type field is made a reservation for instruction rule relation table with adopting
Embodiments provide the analytic method of a kind of function field, in the base band frame generated for the insertion method of function field from use above-described embodiment, parse function field accordingly.Fig. 9 is the schematic flow sheet of the analytic method of function field in the specific embodiment of the present invention.
As it is shown in figure 9, the analytic method of function field, comprise the steps:
Step S21: first detect the total attribute field in the frame head of base band frame;
Step S22: if this total attribute field is for without field value (namely attribute field as total in Fig. 2 is 0), then without body field in current base band frame, the data field after frame head is the user data transmitted;And
Step S23: if this total attribute field is for there being field value (namely attribute field as total in Fig. 3 is 1), then carry body field in current base band frame, then need to be received the body field after frame head processing.
Figure 10 is the schematic flow sheet being received body field in the analytic method of function field in the specific embodiment of the present invention processing.
As shown in Figure 10, wherein it is determined that carry body field, when reception processes body field, specifically comprise following sub-step:
Step S23-1: carry out extraction process by the first paragraph byte after being pointed to frame head and the corresponding data type field that obtains, length field intercept out first split field, and detect point attribute field being arranged in this first split field:
Step S23-2: if the difference of this minute mark will field indicates as last split field, then be user data after this split field, then function field reception is disposed, thus receiver obtains this function field and is used;And
Step S23-3: if the difference of this minute mark will field to indicate be not last split field, it should process from the reception continuing next split field after this first split field.
Specifically, passing through first paragraph byte-extraction is processed the corresponding data type field that obtains, length field intercept out in the step of first split field, comprise the steps of
According to the data type of predetermined field bodies adopts is map indicating mode or adopt direct indicating mode (as shown in Table 3 above), the Bit data in length field and in data type field is carried out corresponding decoding according to corresponding predetermined instruction rule and obtains physical length and the data type of the carried data of field bodies subsequently;And
Starting to intercept according to physical length after field entrance, obtaining the first character segment body matched with first character section entrance, thus obtaining first split field.
Such as, when obtaining physical length for " zero filling " in table 3 and " in-band signaling " data type parsing length field, owing to transmitting terminal and receiving terminal predetermined " zero filling " and " in-band signaling " adopt direct indicating mode to insert, resolve length field, so, receiving terminal side, adopt direct indicating mode to carry out corresponding decoding the Bit data in length field and in data type field and obtain physical length, specifically comprise the steps of:
Step S1-a: the Bit data carried by data type field obtains the data type of field bodies subsequently, and most significant bit in length field is extracted;
Step S1-b: if when this most significant bit is short pattern (such as situation in Fig. 6 and Fig. 7), then in this length field, remaining bit represents the physical length of field bodies in residing body field subsequently, and it is absent from the second segment byte of field entrance, after first paragraph byte, so start to intercept out the field bodies of corresponding physical length, namely begun to intercept the field bodies of carrying system performance data by field entrance one end position;And
Step S1-c: if when this most significant bit is long pattern (in Fig. 8 situation), then the remaining bits position after removing most significant bit in first paragraph byte and second segment byte are spliced, calculate the physical length of field bodies subsequently, and after second segment byte, start to extract the field bodies of corresponding physical length, namely also it is the field bodies being begun to intercept carrying system performance data by field entrance one end position.
Mutually side by side, such as, when obtaining physical length for data type parsing length fields such as " time synchronization information " in table 3, owing to transmitting terminal and receiving terminal predetermined " time synchronization information " etc. adopt mapping indicating mode indirectly to insert, resolve length field, so, receiving terminal side, Bit data in length field and in data type field adopts mapping indicating mode carry out corresponding decoding and obtains physical length, specifically comprise the steps of:
Step S2-a: the Bit data of data type field and length field in first paragraph byte is extracted, it is absent from the second segment byte of extension, for instance extract such 7 Bit datas in " 0001000 " " 0001001 " " 0001010 " " 0001011 " corresponding with data type " time synchronization information " in table 3;And
Step S2-b: by the Bit data extracted by data type field and length field mutually one by one matchingly demapping be data type and the physical length of field bodies subsequently, this just can reversely be known by inference by table 3, it is determined that goes out physical length and data type.
It addition, specific embodiments of the invention carry out in the step intercepted in physical length and the data type according to decoding gained, further comprising the steps of: receiver judges whether the data type of decoding gained is the data type supported;
When being judged as the data type supported, then start to intercept according to physical length after field entrance, thus obtaining first split field;And when being judged as the data type do not supported, then start to skip according to physical length after field entrance, start next split field is carried out extraction process after skipping end position.
The present invention has above-mentioned such process step, it is capable of: when receiver is when receiving the function field data type do not supported, it also is able to parse the length of this field bodies and determine that this skips how many Bit datas according to the length parsed, thus realizing skipping this function field do not supported, and then process data thereafter, for instance next split field or data field are carried out extraction process.
This point, owing in prior art, the parameter such as the type of data type field, length is that carrying is encapsulated in this data type field, once the type receiver of this data type field is unassisted, so, receiver cannot parse length from this data type field, also just cannot learning that should jump out the data that next section be likely to support by many long length processes, this point has greater significance compared with prior art.
By the described above of specific embodiment, specific embodiments of the invention have the effect that and effect further:
The present invention extends the type of the function field that system can be supported, it is possible to represent 16 kinds dissimilar;Can support to be not inserted into body field, insert a split field and insert the different application scenes such as multiple split fields, tackle these scenes flexibly, it is not necessary for the body field headspace in function field, and is not intended in the body field inserted the number of split field;The method providing two kinds of indication field length, directly instruction rule and mapping instruction rule, namely directly instruction rule ensure that the space that can indicate that the function field length being 1023 bytes to the maximum also can save 1 byte when indicating the length of shorter field bodies, improve packaging efficiency, use and map instruction rule and can more flexibly the physical length of field bodies be carried in length field, and can by will directly indicate rule and map instruction rule and combine further packaging efficiency.
Additionally, the analytic method of function field proposed in the specific embodiment of the invention, it is possible to the type of field bodies and length in each split field that in making receiver resolve successively, base band frame carries, and extract each field bodies and be used;Receiver is when receiving the data type of the field bodies do not supported simultaneously, it is also possible to parses the length of this field bodies and skips this field bodies, processes data thereafter.
Although the present invention is with preferred embodiment openly as above; but it is not for limiting the present invention; any those skilled in the art are without departing from the spirit and scope of the present invention; may be by the method for the disclosure above and technology contents and technical solution of the present invention is made possible variation and amendment; therefore; every content without departing from technical solution of the present invention; according to any simple modification, equivalent variations and modification that above example is made by the technical spirit of the present invention, belong to the protection domain of technical solution of the present invention.

Claims (15)

1. an insertion method for function field, for inserting in the base band frame with frame head and data field, it is characterised in that comprise the following steps:
In the frame head of base band frame, reserved predetermined number bit is as total attribute field;
When do not need carrying body field time, total attribute field is set to without field value, then after frame head position as described data field in order to carry user data;And
When there is a need to the body field of carrying, by the numerical value relative set of total attribute field for there being field value, then at least one split fields all in the described body field that need to carry are sequentially inserted into position after frame head, then using remaining position as described data field in order to carry user data
Wherein, described split field has field bodies and the field entrance generated according to this field bodies, is inserted in base band frame by this field entrance, more corresponding described field bodies is inserted into this field entry back.
2. the insertion method of function field as claimed in claim 1, it is characterised in that:
Wherein, whether the highest order of the first paragraph byte of described field entrance is a point attribute field, be last split field for indicating residing described split field,
If only one of which needs the split field of carrying, then a point attribute field in corresponding described field entrance is set to last field value;
If need the split field of carrying more than one, and the split field being currently inserted into is when being last split field, then a point attribute field described in this last split field is set to last field value, and described point of attribute field in other described split field is set to non-final field value respectively.
3. the insertion method of function field as claimed in claim 2, it is characterised in that:
Wherein, the data type field of described first paragraph byte is used for indicating several different types of data of corresponding described field bodies,
It is arranged in the length field at described first paragraph byte end, for indicating the physical length of corresponding the carried data of described field bodies according to predetermined instruction rule,
Described predetermined instruction rule comprises at least one in direct indicating mode and mapping indicating mode,
Determine that length field is to adopt described mapping indicating mode or adopting described direct indicating mode is is determined by the data type of field bodies, make a reservation for some kinds in described data type field and adopt described mapping indicating mode.
4. an analytic method for function field, for resolving from base band frame as claimed in claim 1, it is characterised in that comprise the following steps:
First total attribute field in the frame head of described base band frame is detected;
If this total attribute field is without field value, then without body field in current base band frame, the data field after frame head is the user data transmitted;And
If this total attribute field is for there being field value, then carry body field in current base band frame, then need to be received the body field after frame head processing,
Wherein, when reception processes described body field, the corresponding data type field, the length field that carry out extraction process by the first paragraph byte after being pointed to frame head and obtain intercept out first split field, and detect point attribute field being arranged in this first split field:
If the difference of this minute mark will field indicates as last split field, then be user data after this split field, then function field reception is disposed;
If the difference of this minute mark will field to indicate be not last split field, it should process from the reception continuing next split field after this first split field.
5. the analytic method of function field as claimed in claim 4, it is characterised in that:
Wherein, passing through first paragraph byte-extraction is processed the corresponding data type field that obtains, length field intercept out in the step of first split field, comprise the steps of
According to the data type of predetermined field bodies adopts is map indicating mode or adopt direct indicating mode, the Bit data in described length field and in described data type field is carried out corresponding decoding according to corresponding predetermined instruction rule and obtains physical length and the data type of the carried data of described field bodies subsequently;And
Start to intercept according to physical length after field entrance, obtain the first character segment body matched with first character section entrance, thus obtaining described first split field.
6. the analytic method of function field as claimed in claim 5, it is characterised in that:
Wherein, carry out in the step intercepted in physical length and the data type according to decoding gained, further comprising the steps of:
Receiver judges whether the data type of decoding gained is the data type supported;
When being judged as the data type supported, then start to intercept according to physical length after described field entrance, thus obtaining first split field;And
When being judged as the data type do not supported, then start to skip according to physical length after described field entrance, start next split field is carried out extraction process after skipping end position.
7. the analytic method of function field as claimed in claim 5, it is characterised in that:
Wherein, when indicated described predetermined instruction rule is direct indicating mode, then the Bit data in described length field and in described data type field is carried out corresponding decoding and obtains described physical length, comprise the steps of:
Obtained the data type of described field bodies subsequently by described data type field, and most significant bit in described length field is extracted;
If when this most significant bit is short pattern, then in this length field, remaining bit represents the physical length of field bodies in residing body field subsequently, and it is absent from the described second segment byte of described field entrance, then after described first paragraph byte, start to intercept out the described field bodies of corresponding physical length;And
If when this most significant bit is long pattern, then the remaining bits position after removing most significant bit in first paragraph byte and second segment byte are spliced, calculate the physical length of described field bodies subsequently, and start to extract the field bodies of corresponding physical length after described second segment byte.
8. the analytic method of function field as claimed in claim 5, it is characterised in that:
Wherein, when indicated described predetermined instruction rule is for mapping indicating mode, then the Bit data in described length field and in described data type field is obtained described physical length according to carrying out corresponding decoding, comprises the steps of:
The Bit data of data type field described in first paragraph byte and described length field is extracted, is absent from the second segment byte of extension;And
By the Bit data extracted by described data type field and described length field mutually one by one matchingly demapping be the described data type of described field bodies subsequently and described physical length.
9. a function field, is arranged in the base band frame with frame head and data field, it is characterised in that including:
It is positioned at total attribute field of described frame head;And
Indicate and passive morphogenetic body field according to system requirements and by described total attribute field.
10. function field as claimed in claim 9, it is characterised in that:
When the content of total attribute field is designated as and there is described body field, then described body field is inserted between described frame head and described data field;
When the content of total attribute field be designated as be absent from described body field time, then be absent from this body field.
11. function field as claimed in claim 10, it is characterised in that:
Wherein, described body field comprises at least one the split field being sequentially connected with,
Described split field has the field bodies for bearing system performance data and generates according to this field bodies and be inserted in the field entrance before this field bodies,
The first paragraph byte in each described field entrance with the first predetermined length contains: point attribute field, data type field and be arranged in the length field at described first paragraph byte end,
Described point of attribute field is for distinguishing last the described split field indicated in described body field.
12. function field as claimed in claim 11, it is characterised in that:
Wherein, described data type field is used for indicating several different types of data of corresponding described field bodies,
Described length field is used for indicating the physical length of corresponding the carried data of described field bodies according to predetermined instruction rule,
Described predetermined instruction rule comprises at least one in direct indicating mode and mapping indicating mode,
Described direct indicating mode is described physical length carries out direct coding and is carried in described length field,
Described mapping indicating mode is that all physical lengths several data types of described difference being had are mated according to predetermined matching way phase one_to_one corresponding with difference described length field.
13. function field as claimed in claim 12, it is characterised in that:
Wherein, in described direct indicating mode, utilize the most significant bit of length field described in described first paragraph byte whether to indicate described physical length entirety more than certain certain length byte,
When being not more than this certain length byte, described most significant bit is set to short pattern, and is directly carried on the remaining bit bit of described length field after described physical length coding;
When more than this certain length byte, described field entrance is possibly together with having the second segment byte of the second predetermined length for the extension as described first paragraph byte, described most significant bit is set to long pattern, and according to by total bit length that remaining bits described in described first paragraph byte and described second predetermined length splicing obtain, described physical length after coding is carried out zero filling cover, sequentially it is loaded with the remaining bits in described first paragraph byte and in described second segment byte by filling up rear described physical length.
14. function field as claimed in claim 12, it is characterised in that:
Wherein, in described mapping indicating mode, would correspond to the physical length of institute's likely described field bodies of a certain predetermined described data type and undertaken mating mapping by different described length fields one by one respectively,
Only with the described first paragraph byte in described field entrance, described physical length is indicated when by described mapping indicating mode, it is not necessary to extend described second segment byte.
15. function field as claimed in claim 12, it is characterised in that:
Wherein it is determined that length field is to adopt described mapping indicating mode or adopting described direct indicating mode is determined by the described data type of described field bodies,
In predetermined described data type field, some kinds adopt described mapping indicating mode.
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 true CN105812335A (en) 2016-07-27
CN105812335B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020224380A1 (en) * 2019-05-08 2020-11-12 深圳前海微众银行股份有限公司 Blockchain-based data processing method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010034799A1 (en) * 2000-04-25 2001-10-25 Matsushita Electric Industrial Co., Ltd. Packet transmission/reception processor
CN101127768A (en) * 2007-08-24 2008-02-20 张建中 Method, device and system for creating multi-dimension inter-network protocol
US20110058509A1 (en) * 2008-05-07 2011-03-10 Zte Corporation Method and device for updating plug-in of multimedia broadcast conditional access
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
US20140307747A1 (en) * 2011-12-20 2014-10-16 Huawei Technologies Co., Ltd. Method and apparatus for transmitting data frame

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010034799A1 (en) * 2000-04-25 2001-10-25 Matsushita Electric Industrial Co., Ltd. Packet transmission/reception processor
CN101127768A (en) * 2007-08-24 2008-02-20 张建中 Method, device and system for creating multi-dimension inter-network protocol
US20110058509A1 (en) * 2008-05-07 2011-03-10 Zte Corporation Method and device for updating plug-in of multimedia broadcast conditional access
EP2362653A1 (en) * 2010-02-26 2011-08-31 Panasonic Corporation Transport stream packet header compression
US20140307747A1 (en) * 2011-12-20 2014-10-16 Huawei Technologies Co., Ltd. Method and apparatus for transmitting data frame
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封装与传输技术研究》", 《电视技术—万方数据库》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020224380A1 (en) * 2019-05-08 2020-11-12 深圳前海微众银行股份有限公司 Blockchain-based data processing method and device

Also Published As

Publication number Publication date
CN105812335B (en) 2019-07-23

Similar Documents

Publication Publication Date Title
CN106354568A (en) Method and device for communication between different processes
US10284319B2 (en) Method and apparatus for multiplexing machine type communication data of multiple MTC devices in a wireless network environment
CN105052178A (en) System information processing method, apparatus and communication system
CN108123775A (en) The method and apparatus of transmission packet
CN105446975A (en) File packing method and device
CN105740405B (en) Method and device for storing data
KR20200100759A (en) Data transmission method, transmission device, and reception device
CN111667679A (en) Data transmission method and device, terminal equipment and storage medium
CN105812335A (en) Function field insertion method and analysis method
EP3198728A1 (en) Sharing initial dictionaries and huffman trees between multiple compressed blocks in lz-based compression algorithms
CN108881124B (en) Method, system, storage medium and device for realizing high-performance communication between modules
CN104753891B (en) A kind of XML message analysis method and device
GB0409227D0 (en) Creating and analyzing an identifier indicating whether data is in an expected form
CN114466087B (en) Data transmission method, device, equipment and storage medium
CN102855115A (en) Method and system for displaying character label based on splicing wall
CN105637956A (en) Access network node and paging method
CN108600856A (en) The recognition methods of plug-in subtitle language and device in video file
CN109922330B (en) Data sending method, data receiving method and device
EP2689565A2 (en) Mpdu structure and related methods for use in a wireless communications protocol
JP3725443B2 (en) Method and system for converting Unicode text to a mixed code page
CN105872605B (en) Signalling coding modulator approach and demodulation coding method based on supercomposed coding
CN103778117B (en) A kind of method and system of information of mobile terminal load
CN110941946A (en) Information extraction method, device, equipment and storage medium
US8661162B2 (en) Address handling
CN112100170B (en) Method and device for decoding interactive data of database

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