A kind of efficient unified cordless communication network measurement parameter coding/decoding methodTechnical field
The present invention relates to a kind of wireless digital signal coding/decoding method, particularly a kind of coding/decoding method for cordless communication network measuring-signal parameter.
Background technology
At present in cordless communication network, the decoding of test parameter generally is the decoding for different testing mobile phone chips, for example the testing mobile phone of TD_SCDMA series mainly contains T3G chip and connection die chip in the market, certain solution code requirement for the TD network, generally can decode for different chips, thereby submit different solutions to; After separating the code requirement change, need again the decoding scheme different according to different chip designs.That is to say that decoding scheme can change along with the change of separating code requirement generally speaking, certainly also have corresponding change for different chips.As seen the variation of the type of chip and demand is unavoidable problem in traditional decode procedure, and a plurality of versions that this has just caused the decoding storehouse have increased developer and attendant's workload.
Concrete upper saying, the factor that restricts traditional wireless measurement parameter decode procedure has: the chip type of 1) selecting; 2) different solution code requirement; The different tissues form of the wireless measurement parameter output that 3) obtains after the decoding; 4) special treatment method of some special parameter etc.The existence of these factors has determined that traditional decode procedure is a kind of decode procedure of Demand-Oriented, and namely every kind of different solution code requirement just need to be constructed for it different decoding storehouses and adapted with it.
Summary of the invention
Variation for adaption demand, improve reliability and the maintainability in decoding storehouse, strengthen the versatility in decoding storehouse and make things convenient for secondary development, make things convenient between developer and the tester and link up better, the present invention proposes the efficient cordless communication network measurement parameter of a kind of unification coding/decoding method.
The technical solution used in the present invention can be described as:
A kind of efficient unified cordless communication network measurement parameter coding/decoding method may further comprise the steps:
1) from original signaling data, extracts the trace data piece;
2) from current trace data piece, extract Frame;
3) Frame that step 2 is extracted is resolved successively and is confirmed its useful test parameter and solve numerical value, and the test parameter value that wherein is used for showing is in real time reported, will be for test parameter and unified decoding chained list of numerical value structure thereof of non real-time demonstration;
4) after current data block is disposed, takes off a data block and carry out circular treatment.
The invention has the beneficial effects as follows:
This efficient unified cordless communication network measurement parameter coding/decoding method is stored in the chained list for all useful test parameters and the numerical value thereof that particular network will solve, the data surface that the user can call in this chained list is reached customization output to different demands, and this decode procedure with traditional Demand-Oriented has converted the decode procedure of network-oriented to.This technology provides a unified decoding middleware for certain concrete network, and this middleware can satisfy the most code requirements of separating of this network, and its interface is easy to use, and can realize the customization output according to user's request.In addition, the unified decoding middleware that this technology provides has good compatibility and extensibility, is convenient to extend to a plurality of networks.
Description of drawings
Fig. 1 is flow chart of the present invention.
Embodiment
As shown in Figure 1, the present invention at first is the processing of source data.What pass to that unified decoding middleware decodes should be tracking (trace) data of testing mobile phone, thereby will extract tracking (trace) data in various data sources.
Next is the judgement of decodable Frame.The form of different chip data frames is different, and which kind of chip the decoding storehouse will be judged and extract one by one data according to the characteristics of this type of chip data frame from current data block; If the beginning of current data block or end have incomplete Frame, carry out special processing to incomplete Frame, in order to avoid frame losing.
The decoding work to concrete frame data again.Frame decoding work is the emphasis of general decoding technique, also is the important component part that decoding technique of the present invention embodies its advantage.Now be described below in conjunction with flow chart will unify the to decode process of technical finesse Frame:
1) finds the message unique identification (MsgID) of current data frame according to current chip data frame institutional framework, confirm decodable code parameter in current data frame according to this MsgID again;
2) with the decodable code parameter of current data frame and solution to actual value store the memory space of subscribing for this or this class parameter in the decoding storehouse into.Before decoding, the decoding storehouse can the predefine series of parameters be these parametric distribution memory spaces also.Each parameter can be assigned to a parameter unique identification (ParamID), and the numbering two parts in the numerous parameters of current network form this parameter unique identification by current network type and this parameter.In addition, for the memory space of each decodable code parametric distribution is made of four parts, be respectively parameter unique identification (ParamID), flag F lag (whether this parameter of mark is current effective), decode value, test parameter descriptor etc.
3) next the current data frame decoded result is processed.Show in real time if decoded result is used for monitoring software, then the present frame decoded result is in time reported; If decoded result need to be stored the data source that is used as DAS, then need decoded result is further processed, be described below:
3.1) counter is set, the every solution of current data block increases 1 to a frame data Counter Value, and this counter currency was decodable data frame number in the current data block after this data block had traveled through;
3.2) chained list of structure, this chained list is used for storing the decoded result of each frame data.The nodal point number of storing in this chained list after the current data block traversal is complete is numerically equal to the Counter Value of this moment;
3.3) after current data block traversal is complete, data frame counter is resetted, and get the chained list that is used for the storage decoded result of first front construction, each node in this chained list includes the memory space of all decodable code parameters of current network, and user accordingly node realizes the customization output of different demands.
4) after current data block is disposed, takes off a data block and carry out circular treatment.
In sum, unified decoding technique can be realized the unified decoding of network-oriented, realizes the customization output of different demands, open storage organization also be convenient to the decode expansion of library facility and the realization of specific demand.