CN117376455A - Avionics full duplex Ethernet bus data acquisition and analysis method and device - Google Patents

Avionics full duplex Ethernet bus data acquisition and analysis method and device Download PDF

Info

Publication number
CN117376455A
CN117376455A CN202311520283.8A CN202311520283A CN117376455A CN 117376455 A CN117376455 A CN 117376455A CN 202311520283 A CN202311520283 A CN 202311520283A CN 117376455 A CN117376455 A CN 117376455A
Authority
CN
China
Prior art keywords
data
port
destination
source
ethernet
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
CN202311520283.8A
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.)
South China Aircraft Industry Co Ltd of China Aviation Industry General Aircraft Co Ltd
Original Assignee
South China Aircraft Industry Co Ltd of China Aviation Industry General Aircraft 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 South China Aircraft Industry Co Ltd of China Aviation Industry General Aircraft Co Ltd filed Critical South China Aircraft Industry Co Ltd of China Aviation Industry General Aircraft Co Ltd
Priority to CN202311520283.8A priority Critical patent/CN117376455A/en
Publication of CN117376455A publication Critical patent/CN117376455A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms

Abstract

The invention relates to the field of airplane development, in particular to a method and equipment for acquiring and analyzing avionics full duplex Ethernet bus data. The method can solve the problem of high cost of special equipment for acquiring and analyzing avionic full duplex Ethernet buses, and can also solve the problems of higher development complexity and longer development time. By adopting the common computer platform and the commercial Ethernet card thereof as the hardware platform, a special AFDX board card and a special computer are not required, and the hardware cost is reduced. According to the relation between the protocol standard of the ARI NC 664 and the Ethernet protocol, the original socket is adopted to receive and transmit data under the Li nux operating system, so that the development complexity is reduced, and the development time is saved.

Description

Avionics full duplex Ethernet bus data acquisition and analysis method and device
Technical Field
The invention relates to the field of airplane development, in particular to a method and equipment for acquiring and analyzing avionics full duplex Ethernet bus data.
Background
The complexity of large aircraft avionics systems is increasing, and the bandwidth requirements of data communications on-board data buses are increasing in order to meet the requirements for safe flight and mission performance under a variety of complex flight conditions. The conventional ARI NC429 bus has failed to meet the requirements in terms of topology, data transfer rate, etc. The early era of boeing and air bus companies has shifted the focus of on-board bus research into the use of ethernet technology to build next generation avionics networks, which has facilitated the development of avionics full duplex switched ethernet (AFDX). Avionics corporation (ARI NC) has customized the AFDX network standard based on ethernet: ARI NC 664. At present, AFDX technology is adopted on the aircrafts such as A380, B787 and A350 to construct a backbone network of an avionics system, and domestic C919, fortune 20 and AG600 also start to adopt AFDX data buses, so that AFDX is the main stream airborne data bus of a large-sized aircraft, and the requirements of the avionics system of the large-sized aircraft on the time certainty, high reliability and high bandwidth of the network can be met.
When an aircraft is developed, a data bus is required to be acquired and analyzed in the processes of testing, debugging and troubleshooting so as to determine whether data flow and logic flow between an aircraft system and equipment are normal or not, and the traditional method is that a special AFDX board card is used for residing in a special computer, so that special acquisition and test software is developed, and the problems of high cost, complex development, long development period and the like exist.
Disclosure of Invention
Object of the Invention
The embodiment of the invention provides an avionics full duplex Ethernet bus data acquisition and analysis method and avionics full duplex Ethernet bus data acquisition and analysis equipment, which can solve the problems of high cost, complex development, long development period and the like of avionics full duplex Ethernet bus data acquisition and analysis equipment.
Technical proposal
An avionics full duplex Ethernet bus data acquisition and analysis method comprises the following steps:
step S1, an original socket is created on a computer with a Li nux operating system and an Ethernet card; step S2, setting an Ethernet card into a hybrid monitoring mode and accessing an A664 network (a full duplex switching Ethernet network conforming to ARI NC 664 standard, namely an avionics full duplex Ethernet bus network), screening UDP data packets and taking the UDP data packets as received A664 data packets after time stamping;
s3, analyzing A664 data packet frame header according to the Ethernet frame header structure to obtain a target end physical address, combining the 6 th byte and the 5 th byte of the target end physical address into a virtual link identifier VL_ID, analyzing a source, a target end IP address and a port according to the UDP structure, and intercepting user data
Step S4, inquiring interface definition information in an interface database according to the VL_ID, wherein the step comprises the following steps: the port, the data word under the port, the parameters of the data word (the parameters of the data word may be multiple), and then analyzing the values of the parameters according to the interface definition information;
and step S5, displaying all parameters of the data word analyzed by S4 in real time in a list according to the timestamp, the VL_ID analyzed by S2, the source end IP, the source port, the destination IP and the destination port, and simultaneously storing all parameters of the timestamp, the VL_ID, the source end IP, the source port, the destination IP, the destination port and the data word in a database through a database access interface.
Further, in the step S1, the a664 network is specifically a full duplex switched ethernet network conforming to the ARI NC 664 standard.
Further, in the step S2, the received data enters the queue buffer, the data analyzed in the step S3 is circularly fetched from the queue head of the queue buffer until the fetching is completed, and the sliced transmission and the bit offset are interpreted, if the sliced transmission flag is true, the data is packetized with the last packet of user data until the next packet flag is not interpreted, so as to complete the packetizing.
Further, the data dictionary of the interface definition information in the database in step S4 includes: source device abbreviation, source IP, vl_id, destination IP, destination port, virtual link port, data word DS, data parameter DP, parameter type, parameter start bit, end bit, parameter unit, resolution LSB, status definition.
Further, in the previous step, 1 source device may correspond to a plurality of vl_ids, 1 vl_id may correspond to a plurality of destination IPs and destination ports, 1 vl_id may correspond to a plurality of virtual link ports, 1 virtual link port may correspond to a plurality of data words, and 1 data word may correspond to 1 to 32 parameters.
Further, the left side of the display list in the step 5 is provided with a navigation tree, a root node in the navigation tree is a device, and the next stage of the device node is respectively provided with two nodes: the next level nodes of a664_out and a664_ I N, a664_out and a664_ I N are all output vl_ids and input vl_ids of the root node device, respectively, the particular vl_id node next level node is all virtual link ports of the vl_id, the particular virtual link port node next level node is all data words DS of the ports, and the particular DS node next level node is all parameters of the DS.
Further, when a specific DS is selected by double clicking, the elements displayed in the display list are: sequence number, time, vl_id, interval/period, source IP, source port, destination IP, destination port, parameter 1, parameter 2, … … parameter n (n < = 32), the list is dynamically refreshed in real time.
An avionic full duplex Ethernet bus data acquisition and analysis device is provided with a computer, wherein the computer is provided with an Ethernet card and a Li nux operating system, and A664 bus data is acquired and analyzed by adopting the method and the process of the steps S1-S5.
The beneficial effects of this application lie in:
the avionics full duplex Ethernet bus data acquisition and analysis method and device provided by the invention have the following beneficial effects: the method can solve the problem of high cost of special equipment for acquiring and analyzing avionic full duplex Ethernet buses, and can also solve the problems of higher development complexity and longer development time. By adopting the common computer platform and the commercial Ethernet card thereof as the hardware platform, a special AFDX board card and a special computer are not required, and the hardware cost is reduced. According to the relation between the protocol standard of the ARI NC 664 and the Ethernet protocol, the original socket is adopted to receive and transmit data under the Li nux operating system, so that the development complexity is reduced, and the development time is saved.
Drawings
FIG. 1 is a flow chart of the method provided by the invention.
In the figure, S1: first, S2: second, S3: third step, S4: fourth, S5: fifth step, UDP: user datagram protocol, IP: internetworking protocol, a 664. ARINC 664 standard.
FIG. 2 is a schematic diagram of a navigational tree according to the present invention. In the figure, a664_out: a664 bus output, a664_in: a664 bus input, vl_id: virtual link identification, DS: data word, DP, parameter.
Detailed Description
The invention is further described below with reference to examples. The following description is of some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The invention provides an avionics full duplex Ethernet bus data acquisition and analysis method. As shown in fig. 1, the method comprises the following steps:
s1, creating an original socket
The socket () function is called on a commercial computer platform with a Linux operating system and a general commercial ethernet card, and an original socket is created with the socket_raw (original socket mode) as a socket type.
S2, setting the network card to work in a hybrid mode and starting to receive data
Firstly, a network interface mark of a designated network card is acquired by utilizing an ioctl () function, IFF_PROMISC (parameter value of the promiscuous mode) is added in the obtained mark, and the ioctl () function is called again to finish setting the promiscuous mode.
And then, circularly receiving data by using the recvfrom () function, and taking the data as a received A664 data packet after time stamping, wherein the received data packet enters a queue buffer.
S3, carrying out preliminary analysis on the data
When analyzing data, the first queue fetch number of the queue buffer is counted, one packet of data is fetched once, the data is fetched circularly until the fetching is completed, and the burst transmission and the bit offset are interpreted, if the burst transmission mark is true, the data is packetized with the last packet of user data until the next packet mark is not interpreted, so that the packetizing is completed. Analyzing A664 data packet frame header according to Ethernet frame header structure to obtain target end physical address, combining 6 th byte and 5 th byte of target end physical address into virtual link identification (VL_ID), analyzing source, target end IP address and port according to UDP structure, and intercepting user data.
S4, analyzing data according to aircraft interface definition
Querying interface definition information in an interface database according to the VL_ID, wherein the method comprises the following steps: the port, the data word under the port, the parameters (possibly a plurality of data words) of the data word, and then analyzing the values of the parameters according to the interface definition information
The database is preferably a MYSQL database, and the interface definition information is characterized in that:
the data dictionary comprises: source device abbreviation, source IP, vl_id, destination IP, destination port, virtual link port, data word (DS), data Parameter (DP), parameter type, parameter start bit, end bit, parameter unit, resolution (LSB), status definition. Wherein 1 source device may correspond to a plurality of vl_ids, 1 vl_id may correspond to a plurality of destination IPs and destination ports, 1 vl_id may correspond to a plurality of virtual link ports, 1 virtual link port may correspond to a plurality of data words, and 1 data word may correspond to 1 to 32 parameters.
S5, displaying and storing the parsed data
Referring to fig. 2, a specific DS of a selected port of a specific vl_id of a specific device is selected in a navigation tree, and then real-time values of the following elements are displayed according to the data analyzed in step 4 and the definition of the currently selected DS queried in the database: sequence number, time, vl_id, interval/period, source IP, source port, destination IP, destination port, parameter 1, parameter 2, … … parameter n (n < = 32).
Meanwhile, the parsed data is stored in a MYSQL database in a list form.
An embodiment of avionics full duplex Ethernet bus data acquisition and analysis equipment adopts a commercial notebook computer (preferred) with a common commercial Ethernet card, installs a Li nux operating system, and acquires and analyzes A664 bus data by adopting the methods and processes of S1-S5.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein. While the foregoing is directed to embodiments of the present invention, other and further details of the invention may be had by the present invention, it should be understood that the foregoing description is merely illustrative of the present invention and that no limitations are intended to the scope of the invention, except insofar as modifications, equivalents, improvements or modifications are within the spirit and principles of the invention.

Claims (8)

1. The avionics full duplex Ethernet bus data acquisition and analysis method is characterized by comprising the following steps of:
step S1, an original socket is created on a computer with a Linux operating system and an Ethernet card; step S2, setting the Ethernet card to a hybrid monitoring mode and accessing an A664 network, screening UDP data packets and making a time stamp to be used as received A664 data packets;
s3, analyzing A664 data packet frame header according to the Ethernet frame header structure to obtain a target end physical address, combining the 6 th byte and the 5 th byte of the target end physical address into a virtual link identifier VL_ID, analyzing a source, a target end IP address and a port according to the UDP structure, and intercepting user data
Step S4, inquiring interface definition information in an interface database according to the VL_ID, wherein the step comprises the following steps: the port, the data word under the port and the parameters of the data word are analyzed according to the interface definition information;
and step S5, displaying all parameters of the data word analyzed by S4 in real time in a list according to the timestamp, the VL_ID analyzed by S2, the source end IP, the source port, the destination IP and the destination port, and simultaneously storing all parameters of the timestamp, the VL_ID, the source end IP, the source port, the destination IP, the destination port and the data word in a database through a database access interface.
2. The method of claim 1, wherein in step S1, the a664 network is a full duplex switched ethernet network conforming to ARINC 664 standard.
3. The method of claim 2, wherein in the step S2, the received data enters a queue buffer, the data parsed in the step S3 is fetched from a queue head of the queue buffer, circularly fetched until the fetching is completed, and the sliced transmission and the bit offset are interpreted, and if the sliced transmission flag is true, the sliced transmission is packetized with the last packet of user data until the next packet flag is not interpreted, so as to complete the packetizing.
4. The method of claim 3, wherein the data dictionary of the interface definition information in the database in step S4 includes: source device abbreviation, source IP, vl_id, destination IP, destination port, virtual link port, data word DS, data parameter DP, parameter type, parameter start bit, end bit, parameter unit, resolution LSB, status definition.
5. The method of claim 4, wherein 1 source device can correspond to a plurality of vl_ids, 1 vl_id can correspond to a plurality of destination IPs and destination ports, 1 vl_id can correspond to a plurality of virtual link ports, 1 virtual link port can correspond to a plurality of data words, and 1 data word can correspond to 1 to 32 parameters.
6. The method as set forth in claim 5, wherein the left side of the display list in step S5 has a navigation tree, and a root node in the navigation tree is a device, and a next stage of the device nodes has two nodes respectively: the next level nodes of A664_OUT and A664_IN, A664_OUT and A664_IN are all the output VL_ID and input VL_ID of the root node device, respectively, the particular VL_ID node next level node is all the virtual link ports of the VL_ID, the particular virtual link port node next level node is all the data words DS of the ports, and the particular DS node next level node is all the parameters of the DS.
7. The method of claim 6, wherein when a specific DS is selected by double clicking, the elements displayed in the display list are: sequence number, time, vl_id, interval/period, source IP, source port, destination IP, destination port, parameter 1, parameter 2, … … parameter n, n < = 32, the list is dynamically refreshed in real time.
8. An avionic full duplex Ethernet bus data acquisition and analysis device is provided with a computer, wherein the computer is provided with an Ethernet card and a Linux operating system, and A664 bus data is acquired and analyzed by adopting the method and the process of the steps S1-S5.
CN202311520283.8A 2023-11-15 2023-11-15 Avionics full duplex Ethernet bus data acquisition and analysis method and device Pending CN117376455A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311520283.8A CN117376455A (en) 2023-11-15 2023-11-15 Avionics full duplex Ethernet bus data acquisition and analysis method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311520283.8A CN117376455A (en) 2023-11-15 2023-11-15 Avionics full duplex Ethernet bus data acquisition and analysis method and device

Publications (1)

Publication Number Publication Date
CN117376455A true CN117376455A (en) 2024-01-09

Family

ID=89394677

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311520283.8A Pending CN117376455A (en) 2023-11-15 2023-11-15 Avionics full duplex Ethernet bus data acquisition and analysis method and device

Country Status (1)

Country Link
CN (1) CN117376455A (en)

Similar Documents

Publication Publication Date Title
CN101834751B (en) Aviation full-duplex exchange Ethernet monitoring processing system and method thereof
CN102209000B (en) Avionics full duplex switched Ethernet (AFDX) network terminal system simulator with layered fault injection and fault analysis functions
CN109194433B (en) High-precision time service method based on gigabit AFDX (avionics full Duplex switched Ethernet) network
CN108804818B (en) Software system modeling method based on FACE architecture
US10104206B2 (en) Network module for sending and/or receiving of data packages from a network arrangement and method
EP3174237B1 (en) Time synchronization method and apparatus for network devices and time synchronization server
JP5016664B2 (en) Data communication method between processing systems in heterogeneous environments connected by a local area network and communication system using this method
CN117376455A (en) Avionics full duplex Ethernet bus data acquisition and analysis method and device
Molina et al. Implementation of an AFDX interface with Zynq SoC board in FPGA
US7706409B2 (en) System and method for parsing, filtering, and computing the checksum in a host Ethernet adapter (HEA)
US20220368599A1 (en) Synchronizing dynamic link budgets with fpga based simulation waveform state machines
Sushma et al. Design and implementation of high performance mil-std-1553b bus controller
CN111565140B (en) Distributed aeronautical communication middleware capable of simultaneously supporting CAN bus and Ethernet
Su et al. Design of data communication and monitoring system based on aviation ARINC825 bus
Huang et al. Research and development of industrial real-time Ethernet performance testing system used for CNC system
CN114564135B (en) Aviation onboard software interactive communication node time delay testing tool
Peng et al. A Method of Data Acquisition Network Delay Measurement for AFDX Avionics System in Flight Test
CN115022208B (en) TTE network flow monitoring equipment and method
US11570056B2 (en) High volume data logging from hardware
Yue et al. Design and implementation of FC-AE-1553 point to point transmission hardware platform
US11757726B2 (en) Modeling waveform physical layer and channel for simulation using custom hardware
EP4089566A1 (en) Configuring custom hardware to operate in configurable operational modes using a scripting language
Mang et al. GGTS: FPGA-Based General Ground Test System for Space-Borne Equipment
Wang et al. Design and Implementation of EtherCAT Master of Gyrowheel under RTX System
Ellerbrock Implementation of a Network-Based Instrumentation Data System for a Flight Test Air Vehicle”

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination