A method and device for collecting and analyzing data of avionics full-duplex Ethernet bus

By using commercial Ethernet cards and Linux operating systems on ordinary computer platforms, combined with raw socket technology to analyze avionics full-duplex Ethernet bus data, the problems of high cost and complex development of traditional equipment are solved, and efficient data collection is achieved. and analysis, meeting the high bandwidth and time-deterministic needs of avionics systems.

CN117376455BActive Publication Date: 2024-10-25AVIC GENERAL HUANAN AIRCRAFT IND CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311520283.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-15
Publication Date
2024-10-25
Estimated Expiration
2043-11-15

AI Technical Summary

Technical Problem

Traditional avionics full-duplex Ethernet bus data acquisition and analysis equipment has high cost, complex development and long development cycle, and cannot meet the needs of aircraft systems for high bandwidth and time certainty.

Method used

Using an ordinary computer platform and commercial Ethernet card, combined with the Linux operating system and raw socket technology, it accesses the A664 network through hybrid listening mode, parses UDP packets and stores them in the database, reducing hardware and development complexity.

Benefits of technology

It reduces hardware costs and development time, simplifies the development process, provides an efficient data collection and analysis method, and meets the requirements of avionics systems for high bandwidth and time certainty.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117376455B_ABST
    Figure CN117376455B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of aircraft development, and relates to an avionics full-duplex Ethernet bus data acquisition and analysis method and equipment. The method can solve the problem of high cost in developing avionics full-duplex Ethernet bus data acquisition and analysis special equipment, and can also solve the problems of high development complexity and long development time. By using a common computer platform and its commercial Ethernet card as a hardware platform, there is no need to use a dedicated AFDX board and a dedicated computer, thereby reducing hardware costs. According to the relationship between the ARI NC 664 protocol standard and the Ethernet protocol, raw sockets are used to send and receive data under the Linux operating system, thereby reducing development complexity and saving development time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of aircraft development, and relates to an avionics full-duplex Ethernet bus data acquisition and analysis method and equipment. Background Art

[0002] The complexity of avionics systems of large aircraft is increasing. In order to meet the requirements of safe flight and mission execution under various complex flight conditions, the bandwidth requirements of airborne data buses for data communication are also increasing. The traditional ARI NC429 bus can no longer meet the requirements in terms of topology and data transmission rate. At the beginning of this century, Boeing and Airbus have shifted the research focus of airborne buses to the use of Ethernet technology to build the next generation avionics network. This research has promoted the development of avionics full-duplex switched Ethernet (AFDX). The Aeronautical Radio Corporation (ARI NC) has customized the Ethernet-based AFDX network standard: ARI NC 664. At present, AFDX technology has been used to build the backbone network of avionics systems on aircraft such as A380, B787 and A350. Domestic C919, Y-20 and AG600 have also begun to use AFDX data buses. It can be seen that AFDX has become the mainstream airborne data bus for large aircraft, which can meet the requirements of large aircraft avionics systems for network time determinism, high reliability and high bandwidth.

[0003] During aircraft development, data bus collection and analysis are required during testing, debugging and troubleshooting to determine whether the data flow and logic flow between aircraft systems and equipment are normal. The traditional approach is to use a dedicated AFDX board residing on a dedicated computer and develop dedicated collection and testing software, which has problems such as high cost, complex development and long development cycle. Summary of the invention

[0004] Purpose of the Invention

[0005] The embodiment of the present invention provides an avionics full-duplex Ethernet bus data acquisition and analysis method and device, which can solve the problems of high cost, complex development and long development cycle of avionics full-duplex Ethernet bus data acquisition and analysis equipment.

[0006] Technical Solution

[0007] An avionics full-duplex Ethernet bus data acquisition and analysis method comprises the following steps:

[0008] Step S1, creating a raw socket on a computer with a Linux operating system and an Ethernet card; Step S2, setting the Ethernet card to promiscuous monitoring mode and connecting to the A664 network (a full-duplex switched Ethernet network that complies with the ARI NC 664 standard, i.e., an avionics full-duplex Ethernet bus network), filtering UDP data packets and timestamping them as received A664 data packets;

[0009] Step S3: parse the A664 data packet frame header according to the Ethernet frame header structure to obtain the target end physical address, combine the 6th byte and the 5th byte of the target end physical address into a virtual link identifier VL_ID, parse the source and destination IP addresses and ports according to the UDP structure, and intercept the user data.

[0010] Step S4, querying the interface definition information in the interface database according to the VL_ID, including: the port, the data word under the port, the parameter of the data word (the data word may have multiple parameters), and then parsing the parameter values ​​according to the interface definition information;

[0011] Step S5, according to the timestamp described in S2, the VL_ID, source IP, source port, destination IP, destination port parsed by S3, and the various parameters of the data word parsed by S4 are displayed in real time in a list, and at the same time, the timestamp, VL_ID, source IP, source port, destination IP, destination port, and various parameters of the data word are stored in the database through the database access interface.

[0012] Furthermore, in step S1, the A664 network is specifically a full-duplex switched Ethernet network that complies with the ARI NC 664 standard.

[0013] Furthermore, in the step S2, the received data enters the queue cache, and the data parsed in the step S3 is taken from the head of the queue cache, and is taken in a loop until it is finished, and the fragment transmission and bit offset are judged. If the fragment transmission flag is true, it is grouped with the previous packet of user data until it is judged that there is no next packet flag to complete the grouping.

[0014] Furthermore, the data dictionary of the interface definition information in the database described 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, and status definition.

[0015] Furthermore, in the previous step, one source device may correspond to multiple VL_IDs, one VL_ID may correspond to multiple destination IPs and destination ports, one VL_ID may correspond to multiple virtual link ports, one virtual link port may correspond to multiple data words, and one data word may correspond to 1 to 32 parameters.

[0016] Furthermore, there is a navigation tree on the left side of the display list described in step 5, in which the root node is the device, and the device node has two nodes at the next level: A664_OUT and A664_I N. The next level nodes of A664_OUT and A664_I N are all output VL_IDs and input VL_IDs of the root node device, respectively. The next level nodes of the specific VL_ID node are all virtual link ports of the VL_ID, the next level nodes of the specific virtual link port node are all data words DS of the port, and the next level nodes of the specific DS node are all parameters of the DS.

[0017] Furthermore, when a specific DS is selected by double-clicking, the elements displayed in the display list are: serial number, time, VL_ID, interval / period, source IP, source port, destination IP, destination port, parameter 1, parameter 2, ... parameter n (n<=32), and the list is refreshed dynamically in real time.

[0018] An avionics full-duplex Ethernet bus data acquisition and analysis device comprises a computer, the computer has an Ethernet card and a Linux operating system, and adopts the method and flow of steps S1 to S5 to acquire and analyze A664 bus data.

[0019] The beneficial effects of this application are:

[0020] The avionics full-duplex Ethernet bus data acquisition and analysis method and device provided by the present invention have the following beneficial effects: it can solve the problem of high cost of developing avionics full-duplex Ethernet bus data acquisition and analysis special equipment, and can also solve the problems of high development complexity and long development time. By using a common computer platform and its commercial Ethernet card as a hardware platform, there is no need to use a dedicated AFDX board and a dedicated computer, thereby reducing hardware costs. According to the relationship between the ARI NC 664 protocol standard and the Ethernet protocol, the original socket is used to send and receive data under the Linux operating system, which reduces the development complexity and saves development time. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 This is the process of the method provided by the present invention.

[0022] In the figure, S1: first step, S2: second step, S3: third step, S4: fourth step, S5: fifth step, UDP: User Datagram Protocol, IP: Internet Protocol, A664: ARINC 664 standard.

[0023] Figure 2It is a schematic diagram of the present invention displaying a navigation tree. In the figure, A664_OUT: A664 bus output, A664_IN: A664 bus input, VL_ID: virtual link identifier, DS: data word, DP: parameter. DETAILED DESCRIPTION

[0024] The present invention is further described below in conjunction with embodiments. The following are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0025] The present invention provides an avionics full-duplex Ethernet bus data acquisition and analysis method. Figure 1 As shown in , the following steps are included:

[0026] S1. Create a raw socket

[0027] The socket() function is called on a commercial computer platform with a Linux operating system and a common commercial Ethernet card to create a raw socket with SOCK_RAW (raw socket mode) as the socket type.

[0028] S2. Set the network card to work in promiscuous mode and start receiving data

[0029] First, use the ioctl() function to obtain the network interface flag of the specified network card, add IFF_PROMISC (the parameter value of the promiscuous mode) to the obtained flag, and call the ioctl() function again to complete the setting of the promiscuous mode.

[0030] Then use the recvfrom() function to receive data in a loop, and add a timestamp as the received A664 data packet. The received data packet enters the queue cache.

[0031] S3. Preliminary analysis of data

[0032] When parsing data, take a number from the head of the queue cache, take a packet of data out of the queue each time, and repeat the process until all the data is taken. Also, read the fragment transmission and bit offset. If the fragment transmission flag is true, combine it with the previous user data packet until there is no next packet flag. This completes the packet combination. Parse the A664 data packet header according to the Ethernet frame header structure to obtain the target physical address, combine the 6th and 5th bytes of the target physical address into a virtual link identifier (VL_ID), parse the source and destination IP addresses and ports according to the UDP structure, and intercept the user data.

[0033] S4. Analyze data according to aircraft interface definition

[0034] According to VL_ID, query the interface definition information in the interface database, including: port, data word under the port, parameters of the data word (may be multiple), and then parse the values ​​of each parameter according to the interface definition information

[0035] The database is preferably a MYSQL database, and the characteristics of the interface definition information are:

[0036] Its data dictionary 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. One source device can correspond to multiple VL_IDs, one VL_ID can correspond to multiple destination IPs and destination ports, one VL_ID can correspond to multiple virtual link ports, one virtual link port can correspond to multiple data words, and one data word can correspond to 1 to 32 parameters.

[0037] S5. Display and store parsed data

[0038] like Figure 2 , select the specified DS of the selected port of the specified VL_ID of the specified device in the navigation tree, and then display the real-time values ​​of the following elements according to the data parsed in step 4 and the definition queried in the database for the currently selected DS: sequence number, time, VL_ID, interval / period, source IP, source port, destination IP, destination port, parameter 1, parameter 2, ... parameter n (n<=32).

[0039] At the same time, the parsed data is stored in the MYSQL database in the form of a list.

[0040] An embodiment of an avionics full-duplex Ethernet bus data acquisition and analysis device uses a commercial laptop (preferred) with a common commercial Ethernet card, a Linux operating system installed, and uses methods and processes S1 to S5 to acquire and analyze A664 bus data.

[0041] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meaning as the general understanding of those skilled in the art in the field to which the present invention belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have a meaning consistent with the meaning in the context of the prior art, and will not be interpreted with an idealized or overly formal meaning unless defined as here. The specific implementation methods described above further explain the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for collecting and analyzing data from an avionics full-duplex Ethernet bus, characterized in that: The steps include: Step S1, creating a raw socket on a computer with a Linux operating system and an Ethernet card; Step S2, setting the Ethernet card to promiscuous monitoring mode and connecting to the A664 network, screening the UDP data packet and adding a timestamp as the received A664 data packet; the A664 network is a full-duplex switched Ethernet network that complies with the ARINC 664 standard; Step S3, parsing the A664 data packet frame header according to the Ethernet frame header structure to obtain the target end physical address, combining the 6th byte and the 5th byte of the target end physical address into a virtual link identifier VL_ID, parsing the source and destination IP addresses and ports according to the UDP structure, and intercepting user data; Step S4, querying the interface definition information in the interface database according to the VL_ID, including: the port, the data word under the port, and the parameters of the data word, and then parsing the values ​​of each parameter according to the interface definition information; Step S5, according to the timestamp described in S2, the VL_ID, source IP, source port, destination IP, destination port parsed by S3, and the various parameters of the data word parsed by S4 are displayed in real time in a list, and at the same time, the timestamp, VL_ID, source IP, source port, destination IP, destination port, and various parameters of the data word are stored in the database through the database access interface.

2. The method according to claim 1, characterized in that In step S1, the A664 network is specifically a full-duplex switched Ethernet network that complies with the ARINC664 standard.

3. The method according to claim 2, characterized in that In step S2, the received data enters the queue cache, and the data parsed in step S3 is taken from the head of the queue cache, and is taken in a loop until it is finished, and the fragment transmission and bit offset are judged. If the fragment transmission flag is true, it is packaged with the previous packet of user data until it is judged that there is no fragment transmission flag to complete the package.

4. The method according to claim 3, characterized in that The data dictionary of the interface definition information in the database described in step S4 includes: source device abbreviation, source IP, VL_ID, destination IP, destination port, virtual link port, data parameter DP, parameter type, parameter start bit, end bit, parameter unit, resolution LSB, and status definition.

5. The method according to claim 4, characterized in that One source device may correspond to multiple VL_IDs, one VL_ID may correspond to multiple destination IPs and destination ports, one VL_ID may correspond to multiple virtual link ports, one virtual link port may correspond to multiple data words, and one data word may correspond to 1 to 32 parameters.

6. The method according to claim 5, characterized in that There is a navigation tree on the left side of the display list described in step S5, in which the root node is the device, and the device node has two nodes at the next level: A664_OUT and A664_IN. The next level nodes of A664_OUT and A664_IN are all the output VL_ID and input VL_ID of the root node device respectively, the next level node of the specific VL_ID node is all the virtual link ports of the VL_ID, the next level node of the specific virtual link port node is all the data words DS of the port, and the next level node of the specific DS node is all the parameters of the DS.

7. The method according to claim 6, characterized in that When you double-click to select a specific DS, the elements displayed in the display list are: serial number, time, VL_ID, interval / period, source IP, source port, destination IP, destination port, parameter 1, parameter 2, ... parameter n, n<=32, and the list is refreshed dynamically in real time.

8. An avionics full-duplex Ethernet bus data acquisition and analysis device, comprising a computer having an Ethernet card and a Linux operating system, characterized in that: The data collection and analysis method described in claim 1 is adopted.