[go: up one dir, main page]

CN100359835C - Decoding method based on explanation type signal - Google Patents

Decoding method based on explanation type signal Download PDF

Info

Publication number
CN100359835C
CN100359835C CNB2005101093409A CN200510109340A CN100359835C CN 100359835 C CN100359835 C CN 100359835C CN B2005101093409 A CNB2005101093409 A CN B2005101093409A CN 200510109340 A CN200510109340 A CN 200510109340A CN 100359835 C CN100359835 C CN 100359835C
Authority
CN
China
Prior art keywords
data
signaling
data structure
field
information table
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CNB2005101093409A
Other languages
Chinese (zh)
Other versions
CN1764097A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CNB2005101093409A priority Critical patent/CN100359835C/en
Publication of CN1764097A publication Critical patent/CN1764097A/en
Application granted granted Critical
Publication of CN100359835C publication Critical patent/CN100359835C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The present invention discloses a decoding method based on explanation type signaling, which comprises the steps that an interface document which comprises a signaling data structure is scanned, characteristic information data of the data structure is extracted, and a characteristic information table is generated according to the characteristic information data; the characteristic information table is visited by aiming at original signaling code flow needed analyzing, and the mapping relationship of each data element and the original signaling code flow in the signaling data structure is calculated; the positional information and the attribute information of specific data of each data element in the signaling data structure can be obtained from the original signaling code flow according to the mapping relationship of each data element and the original signaling code flow in the signaling data structure, and the positional information and the attribute information of the specific data of each data element are stored in a decoding data result set. A signaling resolving process can be more visualized according to the method of the present invention, and the generalization of a display process of the signaling detailed information can be realized; meanwhile, the positioning to problems can be more convenient. The present invention can be used for visual display of signaling tracking system terminal original code flow.

Description

A kind of coding/decoding method based on explanation type signal
Technical field
The present invention relates to signaling decoding method, specifically, relate to a kind of coding/decoding method based on explanation type signal.
Background technology
Traditional original signaling code stream analyzing shows, normally realizes by hard coded.That is to say that decode logic and display mode bundle, every kind of signaling decoding all will be write corresponding display logic process.The shortcoming of doing like this is to cause very complexity easy care not of decoding and displaying module, and directly perceived inadequately in the resolving of signaling, bring difficulty to positioning problems.
Therefore, how to provide a kind of coding/decoding method of more common signaling, can make that the process of resolving signaling is more directly perceived to the procedure for displaying generalization of signaling details, become problem demanding prompt solution.
Summary of the invention
Technical problem to be solved by this invention provides a kind of coding/decoding method based on explanation type signal, and signaling resolving realizes the procedure for displaying generalization of signaling details more intuitively, makes convenient to the location of problem simultaneously.
For solving the problems of the technologies described above, it is as follows to the invention provides scheme:
A kind of coding/decoding method based on explanation type signal comprises the steps:
Scanning comprises the interface document of signaling data structure, extracts the characteristic information data of data structure;
According to described characteristic information data generating feature information table;
Visit described characteristic information table at the original signaling code stream that needs are resolved, the mapping relations of each data element and original signaling code stream in the calculating signaling data structure;
According to the mapping relations of each data element and original signaling code stream in the described signaling data structure, from original signaling code stream, obtain the positional information and the attribute information of the concrete data of each data element in the signaling data structure;
The positional information and the attribute information of the concrete data of described each data element are saved in the decoded data result set.
Compared with prior art, the invention has the advantages that:
Method of the present invention has realized the signaling code stream of 16 systems and the conversion that corresponding data structural information feature arrives result set, the procedure for displaying generalization of signaling details, can show decoded results with tree, directly perceived and clear more; Come the different node in overall situation location with DN (DistinguishedName) simultaneously.
Technical problem to be solved by this invention, technical scheme main points and beneficial effect will be in conjunction with the embodiments, are further described with reference to accompanying drawing.
Description of drawings
Fig. 1 is the flow chart of the method for the invention;
Fig. 2 obtains the process chart of decoded data result set for the present invention.
Embodiment
As shown in Figure 1, be the flow chart of the method for the invention.
At first, scanning comprises the interface document of signaling data structure, extracts the characteristic information data (step 101) of data structure; Then, according to described characteristic information data generating feature information tables (step 102); Visit described characteristic information table at the original signaling code stream that needs are resolved, the mapping relations (step 103) of each data element and original signaling code stream in the calculating signaling data structure; According to the mapping relations of each data element and original signaling code stream in the described signaling data structure, from original signaling code stream, obtain the positional information and the attribute information (step 104) of the concrete data of each data element in the signaling data structure; The positional information and the attribute information of the concrete data of described each data element are saved in decoded data result set (step 105).
Described characteristic information table comprises signaling abstract (as shown in table 1), and data structure information table (as shown in table 2); In the signaling abstract, ID represents that number field, MsgName represent that signaling name field, MsgNo represent that signaling message field, StructName represent the data structure name field; In the data structure information table, ID represents that number field, ParentID represent that number field, the StructName of the data structure that belonged to represent that data structure name field, StructLen represent that data structure length field, Position represent that location field in the data structure, FieldConstrainedID represent that restriction relation identification field, the ShowValue of interfield value represent the video data field.
Title Describe Type
ID Numbering WORD32
MsgName The signaling message title Char[100]
MsgNo Message number WORD32
StructName The data structure title Char[100]
Table 1
Title Describe Type
ID Numbering WORD32
ParentID Belong to the numbering of data structure WORD32
StructName The data structure title Char[100]
StructLen Data structure length WORD16
Position Position in the data structure WORD16
FieldConstrainedID The restriction relation sign of interfield value WORD32
ShowValue Video data Char[100]
Table 2
When some element of signaling data structure is subjected to the restriction of other elements, can customize a field relation constraint table (as shown in table 3) according to protocol specification, wherein, ID represents that number field, MfieldName represent that main fields, SfieldName represent that auxilliary field, ConstrainedType represent the restriction relation type field.
Title Describe Type
ID Numbering WORD32
MfieldName Main fields Char[100]
SfieldName Auxilliary field is with deciding the major word value Char[100]
ConstrainedType The restriction relation type WORD16
Table 3
In the method for the invention, described original signaling code stream of resolving at needs is visited described characteristic information table, and the process of calculating the mapping relations of each data element and original signaling code stream in the signaling data structure is to obtain in the data structure each data element corresponding to deviation post and data length in the original signaling code stream according to the characteristic information table.
When resolving a signaling, begin to resolve from the top layer of the corresponding data structure of decoding, all elements in the ergodic data structure forms the decoded data result set that signaling shows.The decoded data result set is to distinguish with DN, and each element of data structure all has a DN to come unique identification.Each DN can have one and describe attribute, is used for further describing, as showing description, location expression etc.
In the said process, described decoded data result set comprises and is used for storing the differentiation file-name field DN (Distinguished Name) of each data element positional information of signaling data structure and the attribute list field that is used for storing each data element attribute information of signaling data structure; Wherein, described attribute list field comprises whether position attribute information Position in video data attribute information ShowValue, the data structure, sign have the attribute information IsLeaf of child node.
DN in the decoded data result set is unique, has wherein comprised hierarchical relationship, and we can show in the mode of tabulation or tree.Travel through all DN,, just can obtain the visual final result of a signaling decoding according to its hierarchical relationship that comprises.The source code flow of signaling is stored in the tables of data, and the relevant source code flow in selecting different tree node tables of data can show with special color.
As shown in Figure 2, obtain the process chart of decoded data result set for the present invention.
At first, import 16 system source code flows, and visit corresponding characteristic information table, as, the data structure information table, perhaps, when some element of signaling data structure is subjected to the restriction of other elements, then visit data structural information table and field relation constraint table (step 201); Each data element in the decoding data structure is equivalent to a tree node, by the principle of depth-first, travels through whole data structure (step 202).The concrete processing of each data element needs the access characteristic information table, obtains the feature of this element, thereby calculates the mapping relations with source code flow, obtains the data of element.The process of calculating the mapping relations of an element and source code flow is exactly the summation that obtains the effective length of the structure length of this yuan number and treated structural element according to the data structure information table, and according to the relation of the interfield in the field relation constraint table, obtain the position of the corresponding source code flow of this element and the length of skew, thereby obtain the data of this element.In the processing of depth-first rule, the result of each data element is a DN and attribute list.The result of this element is stored in decoded result and concentrates (step 203).Judge whether to have traveled through all untreated data structure elements (step 204), after having traveled through the decoding data structure all elements, the information of source code flow all is resolved to the decoded result collection.The decoded results collection can be used as data source and is used for visual (step 205).
Below, we are an embodiment again.
At first, data structure is:
typedef?struct
{
BYTE?byType;
WORD16?wLen;
BYTE*abyMsg;
}TexmSigData;
The characteristic information table comprises:
Data structure information table data:
ID ?ParentI ?D ?StructNa ?me ?StructL ?en ?Positio ?n ?FieldCo ?nstraine ?dID ShowValue
1 ?0 ?TexmSig ?Data ?4 ?0 ?0 Signaling data
2 ?1 ?byType ?1 ?1 ?0 Type
3 ?1 ?Wlen ?2 ?2 ?0 Length
4 ?1 ?abyMsg ?1 ?3 ?1 Data
Table 4
Field relation constraint table data:
ID ?MfieldName ?SfieldName ?ConstrainedType
?1 ?abyMsg ?wLen ?8
Table 5
Then, input source code flow: 0x020008010203041a1b0c0d
Begin to handle the input data below:
A) handle data structures element T exmSigData, StructName is TexmSigData in the question blank 4, ParentID is that to obtain ID be 1 for 0 record.
B) ParentID is 1 record in the question blank 4, and obtain the unit that TexmSigData comprises and have: ID is 2,3,4.
C) ParentID is 2 record in the question blank 4, does not have corresponding record, illustrates that byType is final element.According to ParentID be 1 and ID be the record data of 2 correspondence, obtain StructName byType, StructLen is 1, Position is 1, FieldConstrainedID is 0, ShowValue is a type.The position that calculates in the corresponding source code flow is 0, and deflected length is 1, is 0x02 so can obtain the value of byType.
D) according to the handling principle of step 3, the value that obtains wLen is 0x0008, and the value of abyMsg is 0x010203041a1b0c0d.FieldConstrainedID is 1 when handling abyMsg, and the restriction relation that has interfield is described, thereby access list 5, and obtaining SfieldName is wLen, and ConstrainedType is 8, is length relation.Thereby obtain the value of abyMsg according to the handling principle of the length of wLen and step 3.
E) element of a data structure of every parsing is just concentrated to decoded result increases a record.Final results set such as the table 6 that forms:
ID ?DN Property set
1 ?Root=TexmSigData The ShowValue=signaling data; Position=0; IsLeaf=false
2 ?Root=TexmSigData,byType=0x02 The ShowValue=type; Position=1; IsLeaf=true;
3 ?Root=TexmSigData,wLen=8 ShowValue=length; Position=2 IsLeaf=true;
4 ?Root=TexmSigData,abyMsg=0x01 ?0203041a1b0c0d The ShowValue=data; Position=3 IsLeaf=true;
Table 6
DN is unique, comprises hierarchical relationship among the DN, and simultaneously according to attribute IsLeaf, whether decision has child node.Can be when showing ShowValue as the node show value, the position that on same level, shows according to the value decision of Position simultaneously.
A kind of coding/decoding method of the present invention based on explanation type signal, be not restricted to listed utilization in specification and the execution mode, it can be applied to various suitable the present invention's field fully, for those skilled in the art, can easily realize additional advantage and make amendment, therefore under the situation of the spirit and scope of the universal that does not deviate from claim and equivalency range and limited, the examples shown that the present invention is not limited to specific details, representational equipment and illustrates here and describe.

Claims (10)

1, a kind of coding/decoding method based on explanation type signal is characterized in that comprising the steps:
Scanning comprises the interface document of signaling data structure, extracts the characteristic information data of data structure;
According to described characteristic information data generating feature information table;
Visit described characteristic information table at the original signaling code stream that needs are resolved, the mapping relations of each data element and original signaling code stream in the calculating signaling data structure;
According to the mapping relations of each data element and original signaling code stream in the described signaling data structure, from original signaling code stream, obtain the positional information and the attribute information of the concrete data of each data element in the signaling data structure;
The positional information and the attribute information of the concrete data of described each data element are saved in the decoded data result set.
2, method according to claim 1, it is characterized in that: described characteristic information table comprises signaling abstract and data structure information table, and described signaling abstract comprises number field, signaling name field, signaling message field, data structure name field; Location field, the restriction relation identification field of interfield value, video data field in the number field of the data structure that described data structure information table comprises number field, belonged to, data structure name field, data structure length field, the data structure.
3, method according to claim 2 is characterized in that: described characteristic information table further comprises field relation constraint table, and this field relation constraint table comprises number field, main fields, auxilliary field, restriction relation type field.
4, method according to claim 3 is characterized in that: described field relation constraint table customizes according to protocol specification.
5, method according to claim 1, it is characterized in that: described original signaling code stream of resolving at needs is visited described characteristic information table, and the process of calculating the mapping relations of each data element and original signaling code stream in the signaling data structure is to obtain in the data structure each data element corresponding to deviation post and data length in the original signaling code stream according to the characteristic information table.
6, method according to claim 5 is characterized in that: describedly obtaining in the data structure each data element corresponding to deviation post and data length in the original signaling code stream according to the characteristic information table, is that the data structure information table by visit obtains.
7, method according to claim 5, it is characterized in that: describedly obtain according to the characteristic information table that each data element obtains by visit data structural information table and field relation constraint table corresponding to deviation post and data length in the original signaling code stream in the data structure.
8, method according to claim 1 is characterized in that: described decoded data result set comprises and is used for storing the differentiation file-name field of each data element positional information of signaling data structure and the attribute list field that is used for storing each data element attribute information of signaling data structure.
9, method according to claim 8 is characterized in that: described attribute list field comprises whether position attribute information in video data attribute information, the data structure, sign have the attribute information of child node.
10, method according to claim 8 is characterized in that further comprising the steps: that described decoded data result set is according to distinguishing the hierarchical relationship that file-name field comprised, with the visual output of tree.
CNB2005101093409A 2005-10-13 2005-10-13 Decoding method based on explanation type signal Expired - Fee Related CN100359835C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005101093409A CN100359835C (en) 2005-10-13 2005-10-13 Decoding method based on explanation type signal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005101093409A CN100359835C (en) 2005-10-13 2005-10-13 Decoding method based on explanation type signal

Publications (2)

Publication Number Publication Date
CN1764097A CN1764097A (en) 2006-04-26
CN100359835C true CN100359835C (en) 2008-01-02

Family

ID=36748070

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005101093409A Expired - Fee Related CN100359835C (en) 2005-10-13 2005-10-13 Decoding method based on explanation type signal

Country Status (1)

Country Link
CN (1) CN100359835C (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101783712B (en) * 2009-01-19 2014-06-04 华为技术有限公司 Method, user terminal and network node for identifying LTE (Long Term Evolution) version
CN101826113A (en) * 2010-05-14 2010-09-08 珠海世纪鼎利通信科技股份有限公司 High-efficiency and unified method for storing wireless measurement data
CN101916202B (en) * 2010-08-09 2014-04-09 中兴通讯股份有限公司 Signaling display method and system
CN102467348B (en) * 2010-11-03 2016-01-20 北京普源精电科技有限公司 The method and system of data are received from surveying instrument

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6031840A (en) * 1995-12-07 2000-02-29 Sprint Communications Co. L.P. Telecommunications system
WO2003098895A1 (en) * 2002-05-22 2003-11-27 Thomson Licensing S.A. Signing and authentication devices and processes and corresponding products, notably for dvb/mpeg mhp digital streams
CN1533093A (en) * 2003-03-19 2004-09-29 华为技术有限公司 A method of analyzing signaling
CN1678110A (en) * 2004-03-31 2005-10-05 西门子(中国)有限公司 Method and apparatus for displaying measure report in mobile communication system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6031840A (en) * 1995-12-07 2000-02-29 Sprint Communications Co. L.P. Telecommunications system
WO2003098895A1 (en) * 2002-05-22 2003-11-27 Thomson Licensing S.A. Signing and authentication devices and processes and corresponding products, notably for dvb/mpeg mhp digital streams
CN1533093A (en) * 2003-03-19 2004-09-29 华为技术有限公司 A method of analyzing signaling
CN1678110A (en) * 2004-03-31 2005-10-05 西门子(中国)有限公司 Method and apparatus for displaying measure report in mobile communication system

Also Published As

Publication number Publication date
CN1764097A (en) 2006-04-26

Similar Documents

Publication Publication Date Title
US6825781B2 (en) Method and system for compressing structured descriptions of documents
US7089543B2 (en) Use of formal logic specification in construction of semantic descriptions
TWI509435B (en) Method, device and computer program product for automatically performing join operations
CN109086046A (en) A kind of front-end code automatic generation method and system based on interface specification document
CN109165209B (en) Data verification method, device, equipment and medium for object types in database
CN103744987B (en) Video website media asset aggregation method and system based on DOM tree matching
CN113821531B (en) Method, system and equipment for isolating fused media multi-tenant data
CN115185986A (en) Method and device for matching provincial and urban area address information, computer equipment and storage medium
CN101296441B (en) Method and device for scanning two-dimension bar code and transmitting message
CN106599968A (en) Multi-dimensional input commodity information processing method and apparatus for generating 2D codes
Yang et al. Open-world human-object interaction detection via multi-modal prompts
CN102147863A (en) Method for locating and recognizing letters in network animation
WO2021135103A1 (en) Method and apparatus for semantic analysis, computer device, and storage medium
CN100359835C (en) Decoding method based on explanation type signal
CN114928648A (en) Method and system for realizing communication interconnection of various devices based on intelligent message template
KR101102629B1 (en) How to code structured documents
KR101155146B1 (en) Method for encoding an xml document, decoding method, encoding and decoding method, coding device, and encoding and decoding device
CN113434650A (en) Question and answer pair expansion method and device, electronic equipment and readable storage medium
CN101826087B (en) Configuration device and method of coding information data
CN116188033A (en) Product tracing method and device, electronic equipment and storage medium
CN102087666B (en) An index based on the covering relationship between nodes and keywords, its construction method and query method
CN113360591A (en) House address information management method and system
CN109977715A (en) Two-dimensional code identification method and two dimensional code based on outline identification
Li et al. A novel network protocol syntax extracting method for grammar-based fuzzing
CN113705753A (en) Space-time tag code city management system and management method thereof

Legal Events

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

Granted publication date: 20080102

Termination date: 20151013

EXPY Termination of patent right or utility model