CN101404515A - Decoding, debugging and display equipment and method for mobile wireless network message - Google Patents

Decoding, debugging and display equipment and method for mobile wireless network message Download PDF

Info

Publication number
CN101404515A
CN101404515A CNA2008101758834A CN200810175883A CN101404515A CN 101404515 A CN101404515 A CN 101404515A CN A2008101758834 A CNA2008101758834 A CN A2008101758834A CN 200810175883 A CN200810175883 A CN 200810175883A CN 101404515 A CN101404515 A CN 101404515A
Authority
CN
China
Prior art keywords
bit
message
module
string
bit string
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.)
Pending
Application number
CNA2008101758834A
Other languages
Chinese (zh)
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.)
Wuhan Hongxin Telecommunication Technologies Co Ltd
Original Assignee
Wuhan Hongxin Telecommunication Technologies 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 Wuhan Hongxin Telecommunication Technologies Co Ltd filed Critical Wuhan Hongxin Telecommunication Technologies Co Ltd
Priority to CNA2008101758834A priority Critical patent/CN101404515A/en
Publication of CN101404515A publication Critical patent/CN101404515A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention relates to a device for decoding, debugging and displaying the information of a movable wireless network and a method thereof. The device comprises a decoding module, a displaying module and a debugging module; wherein, the decoding module comprises a series of information decoding modules and the decoded information is stored in a corresponding information structure 203; the displaying module formats the information structure into a displaying character series comprising voice meanings to be displayed in an interface; the debugging module builds testing code flows and outputs debugging information for the decoding module. The invention effectively shields the inconsistency between logical description and actual memory, and improves the efficiency and accuracy of the decoding working.

Description

A kind of decoding of mobile wireless network message, debugging, display unit and method thereof
Technical field
What the present invention relates to is decoding, debugging, display unit and the method thereof that is applied to the signaling message of the substantial grammar SGML CSN.1 description in the mobile wireless network drive test product.
Background technology
The mobile wireless network driver test system is the system that utilizes instruments such as testing software, testing mobile phone, sweep generator, electronic chart, GPS and testing vehicle that mobile wireless network is planned and optimized.Mainly satisfy the needs such as cell sites selection, routine optimization of network, radio-frequency quality assessment of network.
In the planning of network and optimizing, testing mobile phone will report a large amount of signaling messages, and network is planned and the prerequisite optimized is that these message code streams are carried out correct decoding.These message are described with different syntax formats, wherein GSM L3 message all is to adopt substantial grammar SGML CSN.1 (Concrete Syntax Notation 1) to describe, this language is introduced by 3GPP late nineteen nineties, it is the implication that is used for the description logic bit stream, the stream that bit stream is made up of bit, each bit can value 0 or 1, and CSN.1 has defined the grammer of the transmission of bit stream, but does not describe its semanteme.
In the transmission of reality, employing all be the mode of byte-oriented stream.Each byte in the byte stream all is made up of 8 bits, byte is stored as one 8 signless integer in computer, byte stream is stored as the array of this 8 signless integers usually, and the base unit that CSN.1 describes is a bit, its syntactic class is similar to high-level programming language, normally the Bit String of forming by a plurality of successive bits is described an information, and a Bit String may be since any one bit of a byte, also may cross over the border of a plurality of bytes, and the bit stream that CSN.1 describes can have length arbitrarily, it also needn't just in time be 8 integral multiple, inconsistent between this description and the actual storage, considerable influence the development efficiency and the quality of the GSM L3 source codec module in the drive test software.
CSN.1 syntactic structure itself also is a more complicated, this will bring difficulty in the understanding to the decoding personnel, sum up and could reduce ambiguity and guarantee the validity and the correctness of decoding so the concrete application mode of its basic syntax in actual encoding and decoding must be done certain conclusion.
Based on above analysis, the present invention analyzes and has summed up all message of describing with CSN.1 in 3GPP TS 44.018 and 3GPP TS 44.060 agreements, in conjunction with CSN.1 basic syntax rule the various Bit Strings in the message are classified, and develop a kind of decoding, debugging, display unit and method thereof of message of the CSN.1 of being exclusively used in description on this basis.
Summary of the invention
The invention provides a kind of decoding, debugging, display unit and method thereof of mobile wireless network message, this device comprises: decoder module 201, a series of source codec modules are provided, and decoded message is saved in the corresponding message structure 203; Display module 204 is formatted as message structure the character display statements based on collusion interface display that contains message semantics; Debugging module 202 is decoder module structure test code streams, output Debugging message; Decoder module 201 further comprises: obtain integer Bit String module 205, the Bit String that obtains designated length from message byte stream is converted into the unsigned int value; Obtain bit sequence module 206, from message byte stream, obtain the Bit String of designated length and it is saved as elongated bit array; Judge filling bit module 207, judge that current bit is L or H in the message byte stream, and transfer its bit value to unsigned int value 0/1; Back shifting formwork piece 208 is from moving the number of bits of appointment after message byte flows current bit; Jump to designated bit position module 209 and obtain current bit position module 210 and in message byte stream, be provided with and obtain current bit position arbitrarily; The bit position changes byte location module 211 and byte location changes the mutual conversion of bit position module 212 execution byte locations and bit position; Debugging module 202 further comprises: test code streams editing interface 213 for the user provides a patterned code stream structure, editing interface, and is converted into byte arrays and carries out source codec, shows test; Decoding Debugging message output module 214, if obtaining integer Bit String module 205, obtain bit sequence module 206, judge filling bit module 207, be right after after the back shifting formwork piece 208 and call this module, then diagnostic message is debugged in output; Formatting messages field output module 215 is embedded in the formatting messages data field module 216, formative field is outputed to debug window diagnose; Display module 204 further comprises: formatting messages data field module 216, each field in the message structure is called this module, and the semantic information that the message field Additional Agreement is specific, and control its indentation form; Obtain the message display string module 217 after the format, in message, call after each field formatization, obtain the display string that entire message comprises message semantics and value.
The present invention has shielded the logical description of message and the inconsistency between the actual storage effectively, has improved the efficient and the correctness of decoding work.
Description of drawings
Fig. 1 is according to driver test system structure chart of the present invention;
Fig. 2 is the structure chart of CSN.1 source codec, debugging, display unit;
Fig. 3 utilizes decoding shown in Figure 2, debugging, display unit to carry out the flow chart of source codec;
Fig. 4 is the flow chart that utilizes decoding shown in Figure 2, debugging, display unit to debug;
Fig. 5 is the flow chart that utilizes decoding shown in Figure 2, debugging, display unit to show.
Embodiment
Convenient for description of the invention, the core term of substantial grammar SGML CSN.1 is once at first briefly described here:
1, Bit String.The sequence of rules that Bit String is made up of bit, each bit can be got a value in 0 or 1, the string of symbol " bit " expression 1 bit long.
2, empty string.Empty string is that length is 0 Bit String.Represent with symbol " null ".
3, series connection.Series connection is used to express the string of length greater than 1 bit.Its expression mode is the back that simply symbol 0 or 1 is placed on other 0,1 symbols, and the centre can comprise empty string.
4, select.Selection is used to express interchangeable notion.The notion that symbol " | " or " or " expression are selected.The priority of series connection is higher than selection.Change priority and will use brace " { } ".
5, name.The definition of CSN.1 can be named, and name limits with a pair of angle brackets "<〉".
6, definition.The use symbol ": :=" description string and name of CSN.1 interrelated.After being defined, a name just can in other definition, quote.If quoted oneself in same definition, the recursive definition that this just forms, recurrence are a kind of modes that CSN.1 expresses circulation.
7, Spare bit string.Spare bit is that those appear at the bit that the Bit String end is not used usually, conduct expansion after it can be stayed.
8, filling bit.CSN.1 can L or H replace 0 or 1, CSN.1 has defined one 8 Bit String 00101011 (0x2B) and has been used as the filling use, compared with the bit value of the same position of the bit stream that is formed by unlimited repetition of byte-aligned by this fixing filling string in a certain position of a bit stream, if value is identical is exactly L, and the value difference is exactly H.
9, label.Can use label is that a Bit String distributes a name.Its form is:<label: the series connection Bit String or quote other definition.
10, index.Be used for representing circulation.It allows to repeat a Bit String by fixed number of times, is expressed as: Bit String (arithmetic expression) or Bit String * arithmetic expression.If use (*) or * * then represent Infinite Cyclic.
After all structures with the message of CSN.1 description, the Bit String of CSN.1 being described in conjunction with grammer has carried out following summary classification in having analyzed 3GPP TS 44.018 and 3GPP TS 44.060 agreements in the present invention:
1, message data field.Such Bit String is described to<label usually: bit (arithmetic expression)〉form, it has its special implication semantically corresponding to a data field in the message, its semantic interpretation has detailed description in other places of agreement usually.This message data field can be divided into three types according to its semanteme: a kind of is that whole Bit String is treated as a signless integer value, all exist as a number in subsequent analysis processing and in showing, at this moment the length of this Bit String can be above 32.Another kind is that it just is considered as a bit sequence, each bit wherein all has the special implication of oneself, can handle by turn in subsequent analysis processing and in showing, at this moment the length of this Bit String without limits, and to be described to fixed length in agreement sometimes be elongated (being generally elongated) that the time could determine up to concrete decoding sometimes; Also having a kind of is that length only has only 1, and value is the Bit String of L or H, and this value is that L or H have represented different semantemes.Except data field, other Bit String does not belong to message itself, is not saved after decoding is finished, and has only data field to be saved in the specific message structure when decoding, for subsequent analysis processing and demonstration.
2, Spare bit string.Such Bit String is generally used for the end of a bigger Bit String, and it uses predefined symbol<spare padding usually 〉,<implicit spare 〉,<spare bit〉or<padding bits〉expression.This Bit String is fixed length sometimes, but all is elongated most of the time, and the length that deducts other substrings in the big Bit String by the length with the bigger Bit String that comprises it when its length needs concrete decoding obtains.This Bit String need be skipped, and it is without any physical meaning.
3, control bit string.Such Bit String can be used as the logic flow controlled condition of CSN.1, and CSN.1 is the same with high-level programming language to exist two kinds of logic flows to control: a kind of is exactly that branch is selected; Another kind is exactly circulation, recurrence.The Bit String that is used for this purpose has two kinds of representations: a kind of is 0, the 1 constant Bit String of forming of series connection, the fixed bit string as " 0 ", " 1 ", " 1011 "; Another kind is filling bit L or H.The control bit string that is used for branch's alternative condition can appear at the front or the back of selection operator, and the control bit string that is used for loop control will appear at the front of circulation or recursive description or the condition that the back begins and finishes as circulation.Also have a kind of control bit string as the preamble synchronization string, it is positioned at another Bit String front, identifies the beginning of specific Bit String, and leading string is a constant Bit String normally.
4, VB vacancy bit string.Such Bit String use usually symbol " null " or<no string, this situation does not need to handle.
The present invention is directed to above-mentioned Bit String and be sorted in the decoder module of apparatus of the present invention a series of module is provided, shielded the rudimentary bit manipulation of bottom, make the user energy can be concentrated on the grammer aspect of agreement to the user.
1, at the Bit String that is regarded as the unsigned int number, the decoder module of apparatus of the present invention provides a module 205 of obtaining the integer Bit String, this module receive one less than 32 positive integer as length parameter, begin backward extraction continuously by the bit of the specified number of length parameter from the current bit position of message byte stream, the Bit String that gets access to is converted to a signless integer returns to the user, current bit position moves to the starting position of next Bit String simultaneously.This module can be used for extracting the message data field Bit String that is regarded as integer, also can be used to extract the constant Bit String that is used to control purpose.
2, at the Bit String that is regarded as bit sequence, the decoder module of apparatus of the present invention provides a module 206 of obtaining bit sequence, this module receives the unrestricted positive integer of size as length parameter, begin backward extraction continuously by the bit of the specified number of length parameter from the current bit position of message byte stream, consider that follow-up processing to this Bit String will be to carry out by turn, and the length of Bit String normally could be determined when real decoder, so this module can save as the Bit String of obtaining the form of elongated bit array, promptly use standard C ++ the nested vector of typelib<bitset<1〉realize, should elongated bit array return to the user then, current bit position moves to the starting position of next Bit String simultaneously.This module can be used for extracting the message data field Bit String that is regarded as bit sequence.
3, at filling bit L/H, the decoder module of apparatus of the present invention provides one to judge filling bit module 207, this module is not accepted any parameter, it can judge that the current bit value of message byte stream is L or H, and return this bit value and give the user, simultaneously current bit position is moved a starting position to next Bit String backward.This module can be used for the judgement and the extraction of the filling bit in control bit string and the data field Bit String.
4, at the Spare bit string, shifting formwork piece 208 after the decoder module of apparatus of the present invention provides one, this module receives the unrestricted positive integer of size as length parameter, begin continuously the mobile backward bit by the specified number of length parameter from the current bit position of message byte stream, this module is not returned any value and is given the user.
5, in concrete decode procedure, need to navigate to a certain particular bit position sometimes, or rollback, redirect backward forward from a certain position, therefore also provide a pair of position module in the decoder module of apparatus of the present invention, one is the module 210 that is used to obtain current bit position, and it returns to the Bit String length of the starting position of the current bit distance message byte stream of user; Another is the module 209 that is used to be provided with current bit position, and its receives the positive integer of an expression bit position as parameter, and the current bit position of byte stream is set to the parameter appointed positions.
6, also provide a pair of location conversion module in the decoder module of apparatus of the present invention, one is the module 211 that the bit position is converted to byte location; Another is the module 212 that byte location is converted to the bit position.These two modules will be facilitated by a plurality of decoding personnel cooperation decodings for a message.
7, the decoder module inside of apparatus of the present invention is safeguarded the vernier of a current bit position of indication voluntarily, need not the user and intervenes.
For the ease of the debugging of source codec, apparatus of the present invention also provide a debugging module in conjunction with decoder module, and this debugging module is divided into two parts, and a part is used to export Debugging message; Another part is used to construct test code streams.
In order when debugging, to export Debugging message to debug window or file, debugging module provides a decoding Debugging message output module 214, a this module reception format character string and a variable element (being similar to the printf function parameters in the C language) are exported different Debugging message as the semantic information of Bit String according to the difference of the decoder module that is called:
If 1 calls this module 214 after obtaining integer Bit String module, then will export the semantic information of this Bit String, the starting position in bit stream, the start byte in byte stream and byte bias internal position, Bit String length, binary value, decimal value.
If 2 call this module 214 after obtaining the bit sequence module, then will export the semantic information of this Bit String, the starting position in bit stream, the start byte in byte stream and byte bias internal position, Bit String length, binary value.
If 3 call this module 214 after judging the filling bit module, then will export the semantic information of this filling bit, the starting position in bit stream, the start byte in byte stream and byte bias internal position, filling bit value, be L or H, which bit, the binary value of byte of padding corresponding to byte of padding.
If 4 call this module 214 after the shifting formwork piece of back, then will export the semantic information of this Bit String, the starting position in bit stream, the start byte in byte stream and byte bias internal position, Bit String length, binary value.
Debugging module also provides a formatting messages field output module, and it is embedded into formatting messages data field inside modules, can be to the character string as a result of debug window output formatization when the formatting messages data field.
Device of the present invention uses a macro switch to control whether carry out the output of Debugging message, the Debugging message here comprised obtain integer Bit String module, obtain the bit sequence module, judge the filling bit module, the Debugging message of back these decoder modules of shifting formwork piece and the character string as a result of the formatting messages data field in the display module.
Construct test code streams for convenience, and can make the test process of decoding can accomplish the test request that condition covers and branch covers, debugging module provides the graphical interfaces of a windowization, and promptly the test code streams editing interface 213, for user's input, modification code stream.This interface has following function:
1, receive the input of binary system or hexadecimal character string, the character string of input be converted to the unsigned int byte arrays of 8 bit boundaries alignment, with this array as the decoding of input message call, test and display module.
2, the mutual conversion between execution hexadecimal and the string of binary characters.
3, the positioning function of Bit String is provided.
4, the editting function of Bit String is provided.
5, the replacement function of Bit String is provided.
6, the insertion function of Bit String is provided.
This graphic user interface will be used with other module in the debugging module, promptly adjusts the binary code stream character string according to the output of Debugging message, to reach the purpose that condition covers and branch covers in the test.
In drive test software, also need the semantic information that each data field affix of message is specific to format demonstration behind the source codec, and message will be carried out the stairstepping indentation according to the inclusion relation of its data field and be shown, therefore apparatus of the present invention also provide a display module, this module comprises formatting messages data field module 216, for each data field of message all calling module 216 to come be additional specific semantic information and the indentation form of data field value, module 216 receives an indentation grade and controls the indentation form as input, each grade is all than a predefined space of last grade indentation number, also receive simultaneously one format character string as semantic and variable element as field value (being similar to the printf function parameters in the C language), and be that each message field generates a character string that shows to the end user with the value of message field with semanteme and indentation format combination, the format character string that can call semanteme that the message display string module of obtaining after the format obtains whole each field of message and value at last is used for graphic user interface 106 demonstrations. together
Utilizing CSN.1 decoding, debugging, display unit and method thereof to carry out source codec below in conjunction with accompanying drawing to the present invention describes in detail.
Fig. 1 is the driver test system structure chart that the present invention relates to.This system comprises testing mobile phone 101, interface module 102, message resolution module 103, message-analysis module 104, view, data processing module 105, graphic user interface 106, a interface 107, b interface 108, c interface 109, d interface 110, e interface 111, f interface 112 and g interface 113.
Testing mobile phone 101, report signaling message by a interface 107,102 pairs of interface modules are received that signaling message is classified and are unpacked, message content is reported message resolution module 103 by b interface 108, this module can be resolved the byte stream of message, the data field value of message is saved in the corresponding message structure, decoder module 201 of apparatus of the present invention and debugging module 202 are key submodules of message resolution module 103, it is the engine of parsing module, whether message all uses decoder module of the present invention that the byte stream of message is resolved with substantial grammar SGML CSN.1 description in actual use, uses debugging module that message parse is debugged.Message is through after resolving, giving message-analysis module 104 message structure of having preserved the message field value by c interface 109 analyzes, tabulate statistics, analysis result and former message structure will be given view by d interface 110, data processing module 105 carries out the establishment and the further analyzing and processing of multiple view, giving user interface 106 with result by e interface 111 then shows, display module 204 that apparatus of the present invention provide and debugging module 202 have been formed the message display sub-module of subscriber interface module 106, display module is finished the structure of message displaying contents, and debugging module is debugged the message procedure for displaying.The user can initiatively initiate various mobile phone businesses in view, data processing module, various mobile phone commands will be handed down to interface module by f interface 112, interface module sends order by the g interface again makes it carry out miscellaneous service to testing mobile phone, and mobile phone continues to report signaling message.
Fig. 2 is the structure chart according to the decoding that is used for the message that substantial grammar SGML CSN.1 describes of the present invention, debugging, display unit.Decoder module 201 comprises a series of source codec modules, decoded message is saved in the corresponding message structure 203, display module 204 is formatted as the character display statements based on collusion graphic user interface 106 that contains message semantics with message structure and shows that debugging module 202 is decoder module and display module structure test code streams, exports Debugging message.Obtaining integer Bit String module 205 obtains the Bit String of designated length and is converted into the unsigned int value from message byte stream, obtaining bit sequence module 206 obtains the Bit String of designated length and it is saved as elongated bit array from message byte stream, judge that current bit is L or H in the filling bit module 207 judgement message byte streams, and transfer its bit value to unsigned int value 0/1, back shifting formwork piece 208 is from moving the number of bits of appointment after message byte flows current bit, call decoding Debugging message output module 214, then output debugging diagnostic message if after above four modules, be right after.Jump to designated bit position module 209 and obtain current bit position module 210 and in message byte stream, be provided with and obtain current bit position arbitrarily, the bit position changes byte location module 211 and byte location changes the mutual conversion of bit position module 212 execution byte locations and bit position, to each the field call format message data field module 216 in the message structure with the specific semantic information of message field value Additional Agreement, and add indentation form control, its also embedded formatting messages field output module 215 in the debugging module simultaneously, can output to debug window to formative field result diagnoses, the message display string module of obtaining after the format 217 is called after each field formatization in message, can obtain the display string that entire message comprises field semanteme and value, test code streams editing interface 213 provides a patterned code stream structure for the user, editing interface, and be converted into byte arrays and carry out source codec, show test.
Fig. 3 utilizes device of the present invention to carry out the flow chart of source codec.Step 301 input a piece of news byte arrays complete or part, step 302 are comprehensively used bit position and the mutual modular converter of byte location and are jumped to the designated bit position module current location vernier is navigated to the bit position that decoding begins.Step 303 is judged the type of Bit String current to be separated according to agreement, if the Bit String of message data field type, judge according to the semantic description of message field whether this field value is regarded as signless integer with regard to execution in step 304, obtain integer Bit String module if call with regard to execution in step 305, and import Bit String length into as parameter according to agreement, step 306 is saved in the field value that obtains in the corresponding message structure.If field value is not a signless integer, then execution in step 307 judges according to the semanteme of message field whether this field will be regarded as bit sequence, if then execution in step 308 is called the bit sequence acquisition module, and import Bit String length into as parameter according to agreement, the elongated bit array that step 309 is returned step 308 is inserted in the corresponding field of message structure.If judge this field in step 307 is to do the filling bit that L/H judges, then execution in step 310 is called and judged the filling bit module, and judged result is inserted message structure through step 311.Step 312 judges according to agreement whether current Bit String is the Spare bit string, if calculate the length of Spare bit string with regard to execution in step 313, sometimes the length of this class Bit String has been marked as a fixed value in agreement, more often agreement and its length of indeterminate appointment, at this moment calculate its length in the following way: the Spare bit string always appears at the end of certain message field, when beginning to decode the field greatly that comprises it, call and obtain the starting position that current bit position module is write down big field in advance, call once more after other son fields in the big field of having decoded and obtain current bit position module and write down the field end position, deduct the total length that the starting position obtains other son fields in the big field with this end position, the length with big field deducts the length that it just obtains the Spare bit string again.Step 314 is called back shifting formwork piece, the number of bits of mobile appointment backward.Step 315 judges whether current Bit String is the control bit string, if judge whether it is filling bit with regard to execution in step 316, if filling bit, then execution in step 317 is called and judged the filling bit module.If constant Bit String, then execution in step 318 is called and is obtained integer Bit String module, then execution in step 319 judges whether it is that Bit String is selected by branch, if then with the value (L/H judged result or integer constant) of the Bit String that obtains Rule of judgment as if else statement or switchcase statement, otherwise execution in step 320 judges whether it is the loop control Bit String, if then with the value of the Bit String that obtains cycling condition as for circulation or while Do statement, otherwise this Bit String is the precedence bits string, execution in step 323 judges whether the value of precedence bits string is the value of agreement regulation, if not just directly forwarding step 327 decoding abnormal ending to.After step 305,308,310,314,317,318, can be right after step 324, the message semantics of importing Bit String into is called decoding Debugging message output module, this module will be to debug window or file output decoder Debugging message, can be different according to the output format of the different Debugging message of bitstring type.Step 325 judges follow-uply whether also have Bit String, if having then change step 303 and continue to handle, if just do not change the decoding that step 326 finishes this message.
Fig. 4 is the flow chart that utilizes apparatus of the present invention to debug.Step 401 is understood the description of a Bit String, step 402 is checked the Debugging message of having exported, starting position and length according to last Bit String are determined the original position of current Bit String in bit stream, use positioning function to locate this position at the test code streams editing interface.Step 403 judges whether this Bit String is the data field of message, if then execution in step 404 is imported the bit strings that satisfies protocol requirement, judge if not execution in step 405 then whether this Bit String is that control field is selected by branch, if then execution in step 406 checks which conditional branching the Debugging message of having exported determines to have tested, never select one in Ce Shi the conditional branching, satisfy the condition control bit string of this selection branch according to the agreement structure.If not condition control bit string then execution in step 407 judge whether it is the loop control Bit String, if then execution in step 408 is according to the controlled condition Bit String of Debugging message of having exported and agreement structure cycle-index, emphasis should be paid close attention to the condition test of the boundary value of circulation.If Bit String neither the loop control string, then execution in step 409 judges whether it is the precedence bits string, if, with regard to execution in step 410 according to agreement structure precedence bits string.If the Spare bit string, step 411 structure satisfies the bit strings of the arbitrary content of agreement length.After having constructed the bit character string, step 412 determines that according to the Debugging message of having exported the bit strings when front construction is to increase newly in the bit stream, still there has been the string (promptly wanting former bit stream is made an amendment) that strings same function with this bit in the former bit stream, if newly-increased then step 413 uses the insertion function at interface the Bit String of neotectonics to be inserted into the assigned address of bit stream, if will replace the then replacement function at step 414 use interface of old string, specify start-stop position or the starting position and the length of the old string that will replace in conjunction with the Debugging message exported, replace old string with new string.Then step 415 is called the test function of test code streams editing interface, bit strings is converted to the binary word throttling carries out test decode as input, step 416 can be exported the various Debugging message of the test decode of current bit stream, can then construct next Bit String or revise old Bit String according to this output result.Structure bit stream and output decoder Debugging message are iterated carry out, the complete test code streams that progressively constructs a piece of news that just can increment type, and can cover all conditions branch and various test case.
Fig. 5 is the flow chart that utilizes apparatus of the present invention to show.Message field value of step 501 input, step 502 is constructed the semantic description character string of this message field according to agreement, step 503 is determined the indentation grade of this message field according to the inclusion relation of interfield, step 504 is called the formatting messages data field module in the display module, with the indentation grade is the indentation Control Parameter, with semantic character string is the format character string, with the field value is the variable element value (being similar to the printf function parameter in the C language) of format character string, step 505 judges whether to also have other need format the field of demonstration, if have and forward step 501 processing again to, if do not call the format display string that the message display string module of obtaining after the format obtains entire message with regard to execution in step 506, this character string has comprised semanteme and the value and the indentation form of each field in the message, will directly carry out message at graphic user interface 106 and show.
Above the invention has been described in conjunction with example, should point out, those skilled in the art can make the change on various forms of and the details, and do not depart from by the determined the spirit and scope of the present invention of claims.

Claims (5)

1. the decoding of a mobile wireless network message, debugging, display unit is characterized in that comprising:
Decoder module (201) comprises a series of source codec modules, and decoded message is saved in the corresponding message structure (203);
Display module (204) is formatted as the character display statements based on collusion graphic user interfaces (106) that contain message semantics with message structure and shows;
Debugging module (202) is decoder module and display module structure test code streams, output Debugging message;
Decoder module (201) further comprises:
Obtain integer Bit String module (205), the Bit String that obtains designated length from message byte stream is converted into the unsigned int value;
Obtain bit sequence module (206), from message byte stream, obtain the Bit String of designated length and it is saved as elongated bit array;
Judge filling bit module (207), judge that current bit is L or H in the message byte stream, and transfer its bit value to unsigned int value 0/1;
Back shifting formwork piece (208) is from moving the number of bits of appointment after message byte flows current bit;
Jump to designated bit position module (209) and obtain current bit position module (210) and in message byte stream, be provided with and obtain current bit position arbitrarily;
The bit position changes byte location module (211) and byte location changes the mutual conversion that bit position module (212) is carried out byte location and bit position;
Debugging module (202) further comprises:
Test code streams editing interface (213) for the user provides a patterned code stream structure, editing interface, and is converted into byte arrays and carries out source codec, shows test;
Decoding Debugging message output module (214), if obtaining integer Bit String module (205), obtaining bit sequence module (206), judging that filling bit module (207), back shifting formwork piece (208) are right after afterwards and call this module, then output debugging diagnostic message;
Formatting messages field output module (215) is embedded in the formatting messages data field module (216), the formatted message field is outputed to debug window diagnose;
Display module (204) further comprises:
Formatting messages data field module (216) is called this module to each field in the message structure, the semantic information that the message field Additional Agreement is specific, and can control its indentation form;
Obtain the message display string module (217) after the format, in message, call after each field formatization, obtain the display string that entire message comprises message semantics and value.
2. method of utilizing the described device of claim 1 to carry out source codec is characterized in that comprising step:
Step (301) input a piece of news byte arrays complete or part;
Comprehensive use location transfer function of step (302) and mapping function navigate to the current location vernier bit position of decoding beginning;
Step (303) is according to the type of agreement judgement Bit String current to be separated, if the Bit String of message data field type, with regard to execution in step (304);
Step (304) judges according to the semantic description of message field whether this field is regarded as signless integer, if with regard to execution in step (305);
Step (305) is called and is obtained integer Bit String module, and imports Bit String length into as parameter according to agreement;
Step (306) is saved in the field value that obtains in the corresponding message structure;
Step (307) judges according to the semanteme of message field whether this field will be regarded as bit sequence, if execution in step (308) then; If judge this field in step (307) is the L/H filling bit, then execution in step (310);
Step (308) is called and is obtained the bit sequence module, and imports Bit String length into as parameter according to agreement;
The elongated bit array that step (309) will be returned is inserted in the corresponding message structure;
Step (310) is called and is judged the filling bit module, and judged result is inserted message structure through step (311);
Step (312) judges according to agreement whether current Bit String is the Spare bit string, if with regard to execution in step (313);
Step (313) is calculated the length of Spare bit string, sometimes the length of this class Bit String has been marked as a fixed value in agreement, more often agreement and its length of indeterminate appointment, because it always appears at the end of certain message field, can when beginning to decode the field greatly that comprises it, call and obtain the starting position that current bit position module is write down big field in advance, call once more after other son fields in the big field of having decoded and obtain current bit position module and write down its position, deduct the total length that the starting position obtains other son fields in the big field with this position, the length with big field deducts the length that it just obtains the Spare bit string again;
Step (314) is called back shifting formwork piece, the number of bits of mobile appointment backward;
Step (315) judges whether current Bit String is the control bit string, if with regard to execution in step (316);
Step (316) judges whether it is filling bit, if filling bit, then execution in step (317); If constant Bit String, then execution in step (318);
Step (317) is called and is judged the filling bit module;
Step (318) is called and is obtained integer Bit String module;
Step (319) judges whether it is that Bit String is selected by branch, if then with the value L/H of the Bit String that obtains or integer constant Rule of judgment as ifelse statement or switch case statement, otherwise execution in step (320);
Step (320) judges whether it is the loop control Bit String, if then with the value of the Bit String that the obtains cycling condition as for circulation or while Do statement, otherwise this Bit String is the precedence bits string;
Step (323) judges whether the value of precedence bits string is the value of agreement regulation, if not just directly forwarding step (327) decoding abnormal ending to.
3. method according to claim 2 is characterized in that further comprising step:
Can be right after step (324) afterwards in step (305), (308), (310), (314), (317), (318), call decoding Debugging message output module, this module will be to debug window or file output decoder Debugging message, can be different according to the output format of the different Debugging message of bitstring type;
Step (325) judges follow-uply whether also have Bit String, if having then change step (303) and continue to handle, if just do not change step (326);
Step (326) finishes the decoding of this message.
4. method of utilizing the described device of claim 1 to debug is characterized in that comprising step:
Step (401) is understood the description of a Bit String;
Step (402) is checked the Debugging message of having exported, and determines the original position of current Bit String in bit stream according to the starting position and the length of last Bit String, uses positioning function to locate this position at the test code streams editing interface;
Step (403) judges whether this Bit String is the data field of message, if execution in step (404) then;
The bit strings of protocol requirement is satisfied in step (404) input, if not execution in step (405) then;
Step (405) judges that whether this Bit String is that control field is selected by branch, if execution in step (406) then;
Step (406) checks which conditional branching the Debugging message of having exported determines to have tested, and never selects one in Ce Shi the conditional branching, satisfies the condition control bit character string of this selection branch according to the agreement structure; If not condition control bit string execution in step (407) then;
Step (407) judges whether it is the loop control Bit String, if execution in step (408) then;
Step (408) is according to the controlled condition Bit String of the Debugging message exported and agreement structure cycle-index, and emphasis should be paid close attention to the condition test of the boundary value of circulation, if Bit String neither loop control string, then execution in step (409);
Step (409) judges whether it is the precedence bits string, if, with regard to execution in step (410);
Step (410) is according to agreement structure precedence bits character string;
Step (411) is if the Spare bit string, and structure satisfies the bit strings of the arbitrary content of agreement length;
Step (412) is after having constructed the bit character string, determine that according to the Debugging message of having exported the Bit String when front construction is to increase newly in the bit stream, still there has been the string that strings same function with this bit in the former bit stream, if newly-increased then execution in step (413); If will replace then execution in step (414) of old string;
The insertion function of step (413) use test code stream editing interface is inserted into the Bit String of neotectonics the assigned address of bit stream;
The replacement function of step (414) use test code stream editing interface is specified start-stop position or the starting position and the length of the old string that will replace in conjunction with the Debugging message exported, replaces old string with new string;
Step (415) is called the test function of test code streams editing interface, the bit stream of character style is converted to the binary word throttling carries out test decode as input;
Step (416) can be exported the test decode information of current bit stream, can then construct next Bit String or revise old Bit String according to this output result; Make structure bit stream and output Debugging message iterate and carry out like this, the complete test code streams that progressively constructs a piece of news that just can increment type, and can cover all conditions branch and various test case.
5. method of utilizing the described device of claim 1 to show is characterized in that comprising step:
Message field value of step (501) input;
Step (502) is constructed the semantic description character string of this message field according to agreement;
Step (503) is determined the indentation grade of this message field according to the inclusion relation of interfield;
Step (504) is called the formatting messages data field module in the display module, is the indentation Control Parameter with the indentation grade, serves as the format character string with semantic character string, is the variable element value of format character string with the field value;
Step (505) judges whether to also have other need format the field of demonstration, forwards step (501) processing again to if having, if not with regard to execution in step (506);
Step (506) is called the format display string that the message display string module of obtaining after the format obtains entire message, this character string has comprised semanteme and the value and the indentation form of each field in the message, will directly show at graphic user interface (106).
CNA2008101758834A 2008-11-07 2008-11-07 Decoding, debugging and display equipment and method for mobile wireless network message Pending CN101404515A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2008101758834A CN101404515A (en) 2008-11-07 2008-11-07 Decoding, debugging and display equipment and method for mobile wireless network message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2008101758834A CN101404515A (en) 2008-11-07 2008-11-07 Decoding, debugging and display equipment and method for mobile wireless network message

Publications (1)

Publication Number Publication Date
CN101404515A true CN101404515A (en) 2009-04-08

Family

ID=40538397

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2008101758834A Pending CN101404515A (en) 2008-11-07 2008-11-07 Decoding, debugging and display equipment and method for mobile wireless network message

Country Status (1)

Country Link
CN (1) CN101404515A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102158881A (en) * 2011-04-28 2011-08-17 武汉虹信通信技术有限责任公司 Method and device for completely evaluating 3G visual telephone quality
CN107872506A (en) * 2017-08-09 2018-04-03 成都萌想科技有限责任公司 A kind of broadcasting method based on real-time messages
CN111126021A (en) * 2019-12-25 2020-05-08 济南大陆机电股份有限公司 Method for displaying report data in binary stream format in heterogeneous architecture

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102158881A (en) * 2011-04-28 2011-08-17 武汉虹信通信技术有限责任公司 Method and device for completely evaluating 3G visual telephone quality
CN102158881B (en) * 2011-04-28 2013-07-31 武汉虹信通信技术有限责任公司 Method and device for completely evaluating 3G visual telephone quality
CN107872506A (en) * 2017-08-09 2018-04-03 成都萌想科技有限责任公司 A kind of broadcasting method based on real-time messages
CN111126021A (en) * 2019-12-25 2020-05-08 济南大陆机电股份有限公司 Method for displaying report data in binary stream format in heterogeneous architecture

Similar Documents

Publication Publication Date Title
EP3740863B1 (en) Code suggestion based on machine learning
CN106227668B (en) Data processing method and device
Ciccozzi et al. Blended modelling-what, why and how
US10628130B2 (en) Code completion of custom classes with machine learning
US8091071B2 (en) Method and system for template-based code generation
US10990358B2 (en) Code completion for overloaded methods
CN110673854A (en) SAS language compiling method, device, equipment and readable storage medium
JP2007141173A (en) Compiling system, debug system and program development system
KR100456023B1 (en) Method and apparatus for wrapping existing procedure oriented program into component based system
JP4001286B2 (en) Program maintenance support apparatus, program maintenance support method, and program
CN114064601B (en) Storage process conversion method, device, equipment and storage medium
CN103235757B (en) Several apparatus and method that input domain tested object is tested are made based on robotization
CN106790108B (en) Protocol data analysis method, device and system
CN100579120C (en) Implementation method for automatic generation of PDU coding/decoding code based on ASN.1 definition
CN101404515A (en) Decoding, debugging and display equipment and method for mobile wireless network message
CN101201750B (en) Method of providing data for encoding/decoding using syntax lexical analysis tool
CN103049504A (en) Semi-automatic instrumentation method based on source code inquiring
CN116610558A (en) Code detection method, device, electronic equipment and computer readable storage medium
CN111639504A (en) Multi-language translation method, device and equipment for webpage
GB2366402A (en) Syntax validation using syntax trees
CN115964269A (en) Test processing method and device, electronic equipment and storage medium
EP3942404B1 (en) Code completion for overloaded methods
CN113505061A (en) Automatic test software platform
CN100562008C (en) Message handling system and processing method thereof
CN114328572A (en) Data query method, device, system and medium based on SQL parser

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20090408