Summary of the invention
The purpose of the present invention: proposing that a kind of pair of telemetering asynchronous parameters carry out the demodulation method of information reduction,
Different processing methods can be used for different asynchronous parameters, Meaning of Information be restored, thus favorably
In the data for all bus for calculating guided missile.
The technical scheme is that one, telemetering asynchronous parameters demodulation method, which is characterized in that packet
Include following steps:
Step 1: according to telemetry system charter, determine need telemetry-acquisition subsystem (as guiding,
Fly control, draw war etc.) parameter, according to each subsystem provide interface protocol, obtain the biography of asynchronous parameters
Defeated rate and data format;Further in accordance with the above content, the arrangement pattern of asynchronous parameters is determined, and distant
Surveying is the fixed channel region of each asynchronous parameters distribution in frame;According to air-to-air missile telemetering asynchronous parameters
The characteristics of, it devises triad and encodes to distinguish, the arrangement pattern of asynchronous parameters are as follows: the
One is address bit, and second is flag bit, and third position is subframe position, specific as shown in table 1:
The arrangement pattern of 18 kinds of asynchronous parameters of table
Serial number |
Binary coding |
The description of asynchronous parameters frame format |
1 |
000 |
Zero-address, no marks, without subframe |
2 |
001 |
Zero-address, has subframe at no marks |
3 |
010 |
Zero-address has mark, without subframe |
4 |
011 |
Zero-address has mark, has subframe |
5 |
100 |
There are address, no marks, without subframe |
6 |
101 |
There is address, no marks, have subframe |
7 |
110 |
There is address, have mark, without subframe |
8 |
111 |
There is address, has mark, has subframe |
Address bit indicates whether asynchronous parameters include address information;Flag bit indicates asynchronous ginseng in telemetry frame
Whether data are effective in number region;Subframe position indicates whether the telemetering frame format contains subframe;
Step 2: being stored as binary file for the telemetry data stream received, is determined according to step 1
Asynchronous parameters mode second and third position, by the asynchronous parameters of each subsystem in telemetry frame
It extracts and is respectively put into calculator memory, to the different mark of asynchronous parameters of each subsystem
Knowledge distinguishes;
Step 3: to the asynchronous parameters of each subsystem, the data that step 2 is proposed are according to asynchronous ginseng
Several mode seconds carries out invalidation word rejecting processing, and the asynchronous parameters that flag bit is 0 will be invalid
Word carries out spelling frame processing after rejecting again, and data do not contain invalidation word when flag bit is 1, can directly carry out
Spell frame processing;
Step 4: the asynchronous parameters without invalidation word that step 3 is obtained are carried out according to mode first
Spell frame processing;It, will be different with last address definition according to the first address in configuration file when address bit is 1
Step parameter is combined into the complete frame asynchronous parameters frame in address;When address bit is 0, according to configuration file
In asynchronous frame head/tail definition, asynchronous frame head/tail is found in asynchronous parameters and is spliced into one accordingly
The correct asynchronous parameters frame of frame;Intercept telemetry in asynchronous parameters frame frame head where telemetry frame when
Code, then time-code addition asynchronous parameters frame is obtained into complete asynchronous parameters frame;
Step 5: the asynchronous parameters frame that step 4 is obtained is defined according to asynchronous parameters library, by data
The subsystem bus input value for reverting to telemetry system acquisition front end, completes the demodulation of telemetering asynchronous parameters.
In order to which asynchronous parameters are classified, the characteristics of according to air-to-air missile telemetering asynchronous parameters, design
Triad coding is shown in 1 asynchronous parameters mode declaration pattern specification figure of attached drawing to distinguish.
In order to realize above-mentioned steps, need using to following three module: data extraction module spells frame
Processing module, data calculation module.
Data extraction module: reading the complete telemetry frame of a frame from telemetry file, in configuration text
Asynchronous mode is obtained in part, and subframe mode is determined whether by mode third position (subframe position).There is pair
The position of asynchronous parameters is different in each frame telemetry when frame mode;When without subframe mode, often
The position of asynchronous parameters is fixed and invariable in one frame telemetry.If current data is subframe mode,
Next the subframe ID for needing to judge current data, obtains asynchronous ginseng according to the configuration file of subframe ID
Position of the number in the telemetry frame;If can directly be obtained by configuration file asynchronous without subframe mode
Position of the parameter in the telemetry frame.
Asynchronous parameters are being obtained after the position in the telemetry frame, are next being needed according to mode second
Position (flag bit) judges that the asynchronous parameters have no marks.Mark is one 8 or 4 bits,
Mark asynchronous parameters indicated when mark is complete 1 the asynchronous parameters in current telemetry frame be it is effective,
Asynchronous parameters are extracted according to position and are put into memory;If mark is full 0, current telemetry is indicated
Asynchronous parameters are not contained in frame, need to skip current telemetry frame at this time, continue to read next frame telemetering number
According to.No marks asynchronous parameters are not necessarily to judgement symbol, and asynchronous parameters are extracted in each telemetering, due to asynchronous
Parameter can not match in bit rate with synchrodata, so when the asynchronous parameters that extract must contain
A certain amount of invalid data is put into remaining asynchronous parameters in memory after picking out these invalid datas
It is spare.
It spells frame processing module: after extracting complete correctly asynchronous parameters, needing to splice the asynchronous parameters
At complete async framing, according to mode first (address bit), there are address and ground according to address bit for 1
Location position is 0 zero-address two ways to carry out.
There is address date: the asynchronous parameters of acquirement being extracted into address data corresponding with the address, are pressed
The address of acquirement is rearranged according to the sequence of addresses in configuration file, when a frame asynchronous parameters
After address is all got, that is, think that the frame data are complete, intercepts the asynchronous ginseng of distance in telemetry
Time-code addition asynchronous parameters frame is obtained complete asynchronous parameters frame by the nearest time-code of the first address of number frame,
The frame data are transferred to data calculation module, calculate final result.
Zero-address data: the asynchronous parameters of acquirement are detected in order, judge the number of current location
According to whether matching with frame head/tail in configuration file;When finding the asynchronous ginseng to match with frame head/tail
After number, in memory using it as the frame head of async framing record, then search after the same method
Another frame head/tail followed by asynchronous parameters, after finding frame head/tail, judge two frame heads/
Whether the data length between tail meets data length requirement specified in configuration file;If length is full
Foot requires, then this complete async framing is passed to data calculation module and calculated;If length is not
It meets the requirements, then gives up this section of asynchronous parameters, restart to search frame head/tail according to the method described above.
Data calculation module: the effect of data calculation module be will spell frame processing module transmitting it is complete different
Parameter frame (containing time-code) is walked, is defined according to asynchronous parameters library, before data are reverted to telemetry system acquisition
The subsystem bus input value at end.First by the binary system of parameter corresponding channel in asynchronous parameters frame
Value.
The beneficial effects of the present invention are: this method is novel in design, reliable and stable, for the asynchronous of complexity
Parameter situation is abstracted as 8 kinds of modes, is capable of handling all subsystem bus datas of air-to-air missile,
Meets absolutely empty the needs of leading at this stage and in the longer term later well.Through detailed test, the calculation
Method is reliable and stable, occupancy computer resource is low, versatility with higher, and in model application
To sufficient verifying, good effect is achieved, it is distant to realize each model air-to-air missile complexity well
Survey the fast and reliable demodulation of asynchronous parameters.
Specific embodiment:
The present invention is described in further details with reference to the accompanying drawing, as shown in Figure 1.
The complete telemetry frame of a frame is read from telemetry file, and asynchronous mould is obtained in configuration file
Formula determines whether subframe mode by mode third position (subframe position).Each frame when having a subframe mode
The position of asynchronous parameters is different in telemetry;When without subframe mode, in each frame telemetry
The position of asynchronous parameters is fixed and invariable.If current data is subframe mode, next need to sentence
The subframe ID of disconnected current data, obtains asynchronous parameters in the telemetry frame according to the configuration file of subframe ID
In position;If directly asynchronous parameters can be obtained in the telemetering by configuration file without subframe mode
Position in frame.
Asynchronous parameters are being obtained after the position in the telemetry frame, are next being needed according to mode second
Position (flag bit) judges that the asynchronous parameters have no marks.Mark is one 8 or 4 bits,
Mark asynchronous parameters indicated when mark is complete 1 the asynchronous parameters in current telemetry frame be it is effective,
Asynchronous parameters are extracted according to position and are put into memory;If mark is full 0, current telemetry is indicated
Asynchronous parameters are not contained in frame, need to skip current telemetry frame at this time, continue to read next frame telemetering number
According to.No marks asynchronous parameters are not necessarily to judgement symbol, and asynchronous parameters are extracted in each telemetering, due to asynchronous
Parameter can not match in bit rate with synchrodata, so when the asynchronous parameters that extract must contain
A certain amount of invalid data is put into remaining asynchronous parameters in memory after picking out these invalid datas
It is spare.
After extracting complete correctly asynchronous parameters, need for the asynchronous parameters to be spliced into complete async framing,
It is 1 to have address and address bit is 0 zero-address two according to address bit according to mode first (address bit)
Kind of mode carries out.
There is address date: the asynchronous parameters of acquirement being extracted into address data corresponding with the address, are pressed
The address of acquirement is rearranged according to the sequence of addresses in configuration file, when a frame asynchronous parameters
After address is all got, that is, think that the frame data are complete, intercepts the asynchronous ginseng of distance in telemetry
Time-code addition asynchronous parameters frame is obtained complete asynchronous parameters frame by the nearest time-code of the first address of number frame,
The frame data are transferred to data calculation module, calculate final result.
Zero-address data: the asynchronous parameters of acquirement are detected in order, judge the number of current location
According to whether matching with frame head/tail in configuration file;When finding the asynchronous ginseng to match with frame head/tail
After number, in memory using it as the frame head of async framing record, then search after the same method
Another frame head/tail followed by asynchronous parameters, after finding frame head/tail, judge two frame heads/
Whether the data length between tail meets data length requirement specified in configuration file;If length is full
Foot requires, then this complete async framing is passed to data calculation module and calculated;If length is not
It meets the requirements, then gives up this section of asynchronous parameters, restart to search frame head/tail according to the method described above.
The complete asynchronous parameter frame (containing time-code) that the transmitting of frame processing module will be spelled, passes to data calculation mould
Block is defined according to asynchronous parameters library, and data are reverted to the subsystem bus of telemetry system acquisition front end
Input value.First by the binary value of parameter corresponding channel in asynchronous parameters frame.