CN101753375B - Device for debugging UDP network packet in avionics simulation environment and method therefor - Google Patents
Device for debugging UDP network packet in avionics simulation environment and method therefor Download PDFInfo
- Publication number
- CN101753375B CN101753375B CN2009102010045A CN200910201004A CN101753375B CN 101753375 B CN101753375 B CN 101753375B CN 2009102010045 A CN2009102010045 A CN 2009102010045A CN 200910201004 A CN200910201004 A CN 200910201004A CN 101753375 B CN101753375 B CN 101753375B
- Authority
- CN
- China
- Prior art keywords
- data
- packet
- module
- port
- avionics
- 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
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a device for debugging a UDP network packet in avionics simulation environment and a method thereof. The device comprises a data engine module, a main frame module, a data recording module, a data analysis module and a data playback module, wherein the data engine module is used for specifying a local network card, obtaining all the packet information which passes through the network card, screening the packets as required and transmitting the useful information to the main frame module; and the main frame module is used for providing man-machine interfaces, controlling the start of the data engine module and storage, loading and emptying of the packet, monitoring the packet information passing through the network card and setting information of monitoring ports. The invention solves the trouble location problem during the interface debugging process in the avionics simulation environment, provides supplementary means for trouble shooting and obtains the benefits that the development time and labor cost are saved.
Description
Technical field
The invention belongs to avionics simulated environment technical field, particularly a kind of avionics simulated environment interface debugging devices and methods therefor.
Background technology
Avionics simulated environment technology is the important support technology of aviation electronics synthesization.It is responsible for information exchange and the resource-sharing between the various material objects and simulator on the aviation electronics.Because the critical role of avionics simulated environment in aviation electronics synthesization system makes reliability, the stability of avionics simulated environment become particularly important.
The avionics simulated environment plays an increasingly important role in all kinds of beforehand research, model, product at present; The avionics simulated environment becomes increasingly complex; Problem that runs into and inconvenience are also more and more; How in the exploitation joint-trial stage, efficiently and accurately the avionics simulated environment interface of complicacy being debugged, is the focus in the avionics simulated environment field.
The main effect of avionics simulated environment has: 1) for the avionics system beforehand research rapid prototype development support is provided; 2) test is provided for avionics system and all kinds of avionics product; 3) assess and verify all kinds of avionics system algorithms; 4) realize the installation of avionics system ground.
The structure of a typical avionics simulated environment is as shown in Figure 1; Avionics simulated environment inside is to adopt industry ethernet to carry out data communication among the figure; And when itself and outside all kinds of material object carry out exchanges data; Through data converter data transaction is become other aviation bus data, for example ARINC429,1553 etc.
In the time of the simulated environment system integration test, most of data communicate through Ethernet, and therefore, what run in the joint-trial process mainly is that problem is to occur in the ethernet communication part.
The problem that runs in the simulated environment debug process generally can be divided into following several types:
1) fault is sent in the Ethernet sending and receiving
Phenomenon performance: the data that communication that can not be correct between two simulators, receiver can not receiver transmitters.
The analysis of causes: netting twine is not connected, and network settings are not right, and transmitting terminal or receiving terminal program are not right.
2) Ethernet data does not match
Phenomenon performance: the data of reception that receiver can not be correct and parsing transmitter.
The analysis of causes: the data-interface definition of receiver and transmitter is wrong, and perhaps version does not match.
3) real-time problem
The phenomenon performance: receiver the usually saltus step of data here, perhaps overflow, perhaps frame losing.
The analysis of causes: the data transmitting period of transmitter is unstable, perhaps with not matching of requiring.
4) error in data problem
The phenomenon performance: the data of transmitter can not produce expected result at receiver.
The analysis of causes: the sender process algorithm is wrong; The receiver programmed algorithm is wrong.
5) unexpected error:
The phenomenon performance: sender process can cause the receiver program can not produce expected result after under a certain state.
The analysis of causes: the sender process algorithm is wrong, and the receiver programmed algorithm is wrong.
Summary of the invention
The objective of the invention is to, a kind of avionics simulated environment UDP network packet debugging apparatus and method thereof are provided, to solve the problem that network packet mistake that prior art exists is inconvenient to debug.
For realizing above-mentioned purpose, the present invention uses following technical scheme:
A kind of avionics simulated environment UDP network packet debugging apparatus comprises:
The data engine module is used to specify this machine network interface card, and obtains all packet informations through this network interface card, as required packet is screened, and is transferred to the main frame module to Useful Information;
The main frame module is connected with said data engine module, is used to provide man-machine interface, controls the startup of said data engine module, the preservation of packet, is written into, empties, and monitoring is provided with the information of policing port through the information of the packet of network interface card;
Data recordin module is connected with said main frame module, is used for writing down into data file to the packet that said main frame module receives;
Data analysis module is connected with said main frame module, is used to analyze the data file that said data recordin module is noted;
The data readback module is connected with said main frame module, is used for the data file noted according to data recordin module, the data of playback corresponding port.
Further, the man-machine interface of said main frame module comprises:
The controlled area is used for the startup of control data engine modules, and the preservation of packet is written into, and empties;
The traffic monitoring district is used to monitor all information through the packet of network interface card;
The port setting area is used to be provided with the information of policing port.
Further, the content of said packet comprises source address and port, destination address and port, current time and data content.
The present invention also provides a kind of avionics simulated environment UDP network packet adjustment method, comprising:
1) data screening step: be used to specify this machine network interface card, and obtain all packet informations, as required packet is screened through this network interface card;
2) main frame step is used to provide man-machine interface, controls the startup of said data screening step, the preservation of packet, is written into, empties, and monitoring is provided with the information of policing port through the information of the packet of network interface card;
3) data record step is used for said step 2) packet that receives writes down into data file;
4) data analysis step is used to analyze the data file that said step 3) is noted;
5) data readback step is used for the data file noted according to said step 4), the data of playback corresponding port.
Further, the man-machine interface said step 2) comprises:
The controlled area is used for the startup of control data engine modules, and the preservation of packet is written into, and empties;
The traffic monitoring district is used to monitor all information through the packet of network interface card;
The port setting area is used to be provided with the information of policing port.
Further, the content of said packet comprises source address and port, destination address and port, current time and data content.
Further, the form of data recorded file is a binary file in the said step 3).
Further, adopted the Winpcap technology to carry out data screening in the said step 1).
Further, adopt .net serializing technical notes data file in the said step 3).
The present invention can check the data transmit-receive situation of all Ethernet transmitting and receiving terminal mouths of this machine, and when " Ethernet data receives, sends fault " took place, the problem of can judging rapidly went out at transmitting terminal still at receiving terminal.Network settings fault that simultaneously also can various machines of auxiliary judgment.And can specify a port, monitor the data of this port with multiple mode, for example: binary mode, configuration file analysis mode.Can assist the mistake of correcting on interface definition mistake and some the data logical algorithms by this method.The present invention can specify a port, and monitoring is through the various information of the packet of this port transmitting-receiving, for example: source address, destination address, due in etc.Can assist some central address setting mistakes of correction program by this method, and can send the cycle by monitor data.The present invention can also specify a port, notes the packet through this port, and can be these data importings in other DAS.The present invention can analyze the running of whole system, is used for the mistake of further audit program.Can carry out data readback to this packet according to the packet of noting.Carry out fault recurrence in this way, the perhaps reproduction of certain process in the simulated environment, the logic error in can the auxiliary examination program.The invention solves the fault-location problem in the avionics simulated environment interface debugging process, and supplementary means is provided, obtained beneficial effects such as saving development time and human cost for fixing a breakdown.
Description of drawings
Fig. 1 is existing typical avionics simulated environment structure chart;
Fig. 2 is an avionics simulated environment UDP network packet debugging apparatus example structure sketch map of the present invention;
Fig. 3 is the data engine module work sketch map in the embodiment of the invention;
Fig. 4 is the data engine module workflow diagram in the embodiment of the invention;
Fig. 5 is the man-machine interface layout of the main frame module in the embodiment of the invention;
Fig. 6 is for checking packet information window sketch map in the embodiment of the invention;
Fig. 7 is the resolution data bag window sketch map in the embodiment of the invention;
Fig. 8 is the data readback operation interface sketch map in the embodiment of the invention.
Embodiment
Embodiment one
As shown in Figure 2, a kind of avionics simulated environment UDP network packet debugging apparatus, Fig. 2 hollow arrow is represented data flow, filled arrows represent control flows to, comprising:
The main frame module, data engine module, data analysis module, data recordin module, data readback module, document data record.
The data engine module, as shown in Figure 3, be used to specify this machine network interface card, and obtain all packet informations through this network interface card, as required packet is screened, be transferred to the main frame module to Useful Information;
Wherein, During screening; Data pack protocol through network interface card generally has two kinds of TCP and UDP, and circulation way has three kinds of clean cultures, multicast, broadcasting, because general simulated environment agreement has only been used UDP; And circulation way has only been used two kinds of clean culture and multicasts, therefore only need filter out and gets final product meeting packet that simulated environment requires.Transmits data packets defines like following table 1:
The definition of table 1 transmits data packets
Source address and port | Destination address and port | Current time | Data content |
In addition,, do not have other dependence, therefore help function expansion owing to only communicate by letter between main frame module and the data engine module through the packet of transmission definition.For example: be extended to the TCP monitoring, perhaps be extended to the debugging apparatus of other aviation bus integrated circuit boards.
Particularly, the data engine module in the present embodiment has adopted existing Winpcap technology.Winpcap is used for the kit that network package grasps; Applicable to resolving network package on 32 the operating platform; The filtering packets that has comprised core, a bottom dynamic link library and a higher-level system function library; With a higher-level system function library, and can be used to the API of direct access package.Its workflow is as shown in Figure 3, and the api function that utilizes Winpcap to provide obtains network interface card ID, enumerates out ethernet nics all on this machine, behind the selected network interface card of user, intercepts the packet of this network interface card, after the packet screening, is transmitted to the main frame module.
The main frame module is connected with said data engine module, is used for control and coordinates various other functional modules, and main man-machine interface is provided, and various parameters etc. are set.
Wherein, said man-machine interface is as shown in Figure 4, and whole framework interface is divided into following three zones:
1, controlled area is used for the startup of control data engine modules, and the preservation of packet is written into, and empties;
2, traffic monitoring district is used to monitor all information through the packet of network interface card, for example: source address, destination address, length, time, data content etc.
3, port setting area is used to be provided with the information of all kinds of policing ports, and for example: monitoring is sent in clean culture, and clean culture receives monitoring, the multi-broadcast group monitoring.Also can directly double-click traffic monitoring and remove to be provided with automatically port.
Data recordin module is connected with said main frame module, and the packet that receives the main frame module writes down into data file, and recording mode is the binary file record.
Particularly, in the present embodiment, data recordin module has adopted .net serializing technology, directly is converted into binary file to the array of data that receives in the main program.Serializing is meant the process that an object and its state information is converted into the binary file that can store.During serializing, object is written to interim or continuation memory block with its current state.After, can create this object again through from the memory block, reading or the state of unserializing object.Adopted the serializing technology to make the array in the main program framework be easy to be recorded as file, and document data record also is easy to changed into array by antitone sequence, is convenient to called by other program module.
Data analysis module is connected with said main frame module, is used for the data file that analytic record is got off, perhaps the main frame module records data of getting off.Said data analysis module can be checked the various information of the packet of designated port in real time, also can also resolve to the Various types of data type to packet according to C language structure form by the packet information of noting of checking of frame.Can also output to the data of noting and go to be convenient to further analysis in the Excel form.
Particularly, can data analysis module be designed to following structure:
Click a port by right key in the inside, port setting area, select " checking ".Window below occurring.
Select " historical frames " for checking packet by frame, " latest frame " is the real time inspection data.Comprise in " packet information district ": source address and port, destination address and port, current time, the interval of this frame pitch previous frame." data field " the inside is 16 system data presented bag data.
Click a port by right key in the inside, port setting area, select " parsing " following window to occur.
With checking that window, latest frame are the real time inspection data, historical frames is for checking data by frame.Write the configuration format of parsing at allocation window according to the grammer of C language structure definition earlier, stand-alone configuration comes into force, can be in the result after the analysis result window is seen parsing.Clicking output EXCEL analyzes and can analyze data importing to EXCEL.
The data readback module is connected with said main frame module, is used for according to the document data record of noting, the data of playback corresponding port.Can realize the reproduction of simulated environment scene, functions such as fault recurrence.
Particularly, through the reading and recording file, can obtain to pass through during this period of time the Various types of data of this machine network interface card designated port, the interval according to through every frame data inside the packet of this port is sent to the corresponding target address with them, and is as shown in Figure 8.
Embodiment two
The present invention also provides a kind of avionics simulated environment UDP network packet adjustment method, adopts the avionics simulated environment UDP network packet debugging apparatus of the foregoing description one, comprising:
1) data screening step: be used to specify this machine network interface card, and obtain all packet informations, as required packet is screened through this network interface card;
2) main frame step is used to provide man-machine interface, controls the startup of said data screening step, the preservation of packet, is written into, empties, and monitoring is provided with the information of policing port through the information of the packet of network interface card;
3) data record step is used for said step 2) packet that receives writes down into data file;
4) data analysis step is used to analyze data file or said step 2 that said step 3) is noted) data noted;
5) data readback step is used for the data file noted according to said step 4), the data of playback corresponding port.
Wherein, the man-machine interface said step 2) comprises:
The controlled area is used for the startup of control data engine modules, and the preservation of packet is written into, and empties;
The traffic monitoring district is used to monitor all information through the packet of network interface card;
The port setting area is used to be provided with the information of policing port.
Wherein, the content of said packet comprises source address and port, destination address and port, current time and data content.
Wherein, the form of data recorded file is a binary file in the said step 3).
Wherein, adopted the Winpcap technology to carry out data screening in the said step 1).
Wherein, adopt .net serializing technical notes data file in the said step 3).
Claims (9)
1. avionics simulated environment UDP network packet debugging apparatus is characterized in that comprising:
The data engine module is used to specify this machine network interface card, and obtains all packet informations through this network interface card, as required packet is screened;
The main frame module is connected with said data engine module, is used to provide man-machine interface, controls the startup of said data engine module, the preservation of packet, is written into, empties, and monitoring is provided with the information of policing port through the information of the packet of network interface card;
Data recordin module is connected with said main frame module, is used for writing down into data file to the packet that said main frame module receives;
Data analysis module is connected with said main frame module, is used to analyze the data file that said data recordin module is noted;
The data readback module is connected with said main frame module, is used for the data file noted according to data recordin module, the data of playback corresponding port.
2. avionics simulated environment UDP network packet debugging apparatus according to claim 1, it is characterized in that: the man-machine interface of said main frame module comprises:
The controlled area is used for the startup of control data engine modules, and the preservation of packet is written into, and empties;
The traffic monitoring district is used to monitor all information through the packet of network interface card;
The port setting area is used to be provided with the information of policing port.
3. avionics simulated environment UDP network packet debugging apparatus according to claim 1 and 2 is characterized in that:
The content of said packet comprises source address and port, destination address and port, current time and data content.
4. avionics simulated environment UDP network packet adjustment method is characterized in that comprising:
1) data screening step: be used to specify this machine network interface card, and obtain all packet informations, as required packet is screened through this network interface card;
2) main frame step is used to provide man-machine interface, controls the startup of said data screening step, the preservation of packet, is written into, empties, and monitoring is provided with the information of policing port through the information of the packet of network interface card;
3) data record step is used for said step 2) packet that receives writes down into data file;
4) data analysis step is used to analyze the data file that said step 3) is noted;
5) data readback step is used for the data file noted according to said step 4), the data of playback corresponding port.
5. avionics simulated environment UDP network packet adjustment method according to claim 4, it is characterized in that: the man-machine interface said step 2) comprises:
The controlled area is used for the startup of control data engine modules, and the preservation of packet is written into, and empties;
The traffic monitoring district is used to monitor all information through the packet of network interface card;
The port setting area is used to be provided with the information of policing port.
6. avionics simulated environment UDP network packet debugging apparatus according to claim 5 is characterized in that:
The content of said packet comprises source address and port, destination address and port, current time and data content.
7. avionics simulated environment UDP network packet debugging apparatus according to claim 6 is characterized in that:
The form of data recorded file is a binary file in the said step 3).
8. avionics simulated environment UDP network packet debugging apparatus according to claim 7 is characterized in that:
Adopted the Winpcap technology to carry out data screening in the said step 1).
9. avionics simulated environment UDP network packet debugging apparatus according to claim 8 is characterized in that:
Adopt .net serializing technical notes data file in the said step 3).
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009102010045A CN101753375B (en) | 2009-12-11 | 2009-12-11 | Device for debugging UDP network packet in avionics simulation environment and method therefor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009102010045A CN101753375B (en) | 2009-12-11 | 2009-12-11 | Device for debugging UDP network packet in avionics simulation environment and method therefor |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101753375A CN101753375A (en) | 2010-06-23 |
CN101753375B true CN101753375B (en) | 2012-07-04 |
Family
ID=42479813
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2009102010045A Expired - Fee Related CN101753375B (en) | 2009-12-11 | 2009-12-11 | Device for debugging UDP network packet in avionics simulation environment and method therefor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101753375B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103457765B (en) * | 2013-08-23 | 2017-03-01 | 中安消技术有限公司 | A kind of procotol adjustment method, device and system |
CN104079435A (en) * | 2014-07-10 | 2014-10-01 | 南威软件股份有限公司 | Method for regenerating Ethernet flow |
CN106021052B (en) * | 2016-05-27 | 2019-07-19 | 中国航空工业集团公司沈阳飞机设计研究所 | A kind of GJB289A bus testing system and test method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1780299A (en) * | 2004-11-22 | 2006-05-31 | Lg电子株式会社 | System and method for remotely controlling a debugging unit |
CN1920782A (en) * | 2005-08-26 | 2007-02-28 | 中兴通讯股份有限公司 | System and method for debugging information output and control |
CN101668036A (en) * | 2009-09-22 | 2010-03-10 | 成都市华为赛门铁克科技有限公司 | Simulating system of distributed device and method for processing service by simulating distributed device |
-
2009
- 2009-12-11 CN CN2009102010045A patent/CN101753375B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1780299A (en) * | 2004-11-22 | 2006-05-31 | Lg电子株式会社 | System and method for remotely controlling a debugging unit |
CN1920782A (en) * | 2005-08-26 | 2007-02-28 | 中兴通讯股份有限公司 | System and method for debugging information output and control |
CN101668036A (en) * | 2009-09-22 | 2010-03-10 | 成都市华为赛门铁克科技有限公司 | Simulating system of distributed device and method for processing service by simulating distributed device |
Also Published As
Publication number | Publication date |
---|---|
CN101753375A (en) | 2010-06-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103530216B (en) | A kind of PCIE based on UVM verifies system | |
CN103178996A (en) | Distributed packet-switching chip model verification system and method | |
US20100095159A1 (en) | Apparatus and method for automatic testing of software or digital devices | |
CN105738854A (en) | Simulation memory test board system for intelligent ammeter embedded application and test method | |
CN104965507A (en) | Method used for generating open diagnostic data exchange database and device | |
CN114528792B (en) | Chip verification method and device, electronic equipment and storage medium | |
CN107370637B (en) | Vehicle-mounted ECU communication function automatic test system and method | |
US8224638B1 (en) | Managing programmable device configuration | |
CN104104488A (en) | Wireless sensor network protocol conformance testing system and method | |
CN106998260A (en) | A kind of FPGA device upgrade method and system based on ethernet link | |
CN111752772B (en) | Storage device simulation test system and method | |
CN101951298B (en) | Method and system for consistency test of an air ground communication system | |
CN101753375B (en) | Device for debugging UDP network packet in avionics simulation environment and method therefor | |
CN106646315A (en) | Automatic testing system and automatic testing method for digital measuring instruments | |
CN112115552A (en) | Airborne flight data recharging method and device | |
CN110290187A (en) | Transmission method and device, storage medium, the electronic device of data information | |
CN105610641A (en) | Switch testing system and testing method based on semi-physical simulation | |
CN101668036A (en) | Simulating system of distributed device and method for processing service by simulating distributed device | |
CN112965470B (en) | Commercial car data center test system | |
CN108009086B (en) | System automation test method based on case decomposition and function learning | |
CN104678292B (en) | A kind of complex programmable logic device (CPLD) test method and device | |
CN211209936U (en) | Internet of things testing system | |
CN203630784U (en) | On-chip simulating system | |
CN103905455B (en) | Communication protocol platform and access method thereof | |
CN107465569A (en) | A kind of SAS Switch whole machine cabinets crawl node phy error count method and system |
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: 20120704 Termination date: 20191211 |
|
CF01 | Termination of patent right due to non-payment of annual fee |