Communication device compatible with hybrid network of ethernet and fc-ae-1553

By designing hybrid network communication equipment compatible with Ethernet and FC-AE-1553, and using module conversion and memory management to achieve communication between different node types, the problems of complex network structure and high cost are solved, and fast and low-cost data transmission is achieved.

CN119583668BActive Publication Date: 2025-10-17BEIJING MECHANICAL EQUIP INST
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311153087.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-07
Publication Date
2025-10-17
Estimated Expiration
2043-09-07

AI Technical Summary

Technical Problem

In the existing technology, the FC-AE-1553 and Ethernet node communication network structures are complex, large in size and high in cost. They cannot communicate directly with each other and require additional equipment to achieve data transmission.

Method used

A hybrid network communication device compatible with Ethernet and FC-AE-1553 is designed, including an Ethernet interface conversion module, an Ethernet data exchange module, a protocol processing module, an FC data exchange module, and an FC transceiver module. The routing information management module allocates IDs and addresses, implements frame conversion and encapsulation, uses memory space to store data, and supports communication between different node types.

Benefits of technology

It realizes fast communication between Ethernet nodes and FC-AE-1553 nodes, occupies a small volume, is low-cost and has a simple network structure. It supports communication between the same and different node types, and improves processing speed and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119583668B_ABST
    Figure CN119583668B_ABST
Patent Text Reader

Abstract

The application relates to a communication device compatible with a mixed network of Ethernet and FC-AE-1553, belongs to the technical field of FC-AE-1553 and Ethernet mixed network communication, and solves the problems of complex network structure, large volume and high cost of FC-AE-1553 and Ethernet communication networks in the prior art. The communication device comprises an Ethernet interface conversion module, an Ethernet data exchange module, a protocol processing module, an FC data exchange module and an FC transceiving module; the Ethernet interface conversion module receives Ethernet data frames sent by an Ethernet node and forwards the Ethernet data frames to the Ethernet data exchange module or the protocol processing module; the FC transceiving module receives FC-AE-1553 frames sent by an FC-AE-1553 node and forwards the FC-AE-1553 frames to the FC data exchange module; the FC data exchange module forwards the FC-AE-1553 frames to the FC transceiving module or the protocol processing module; and the protocol processing module is used for realizing mutual conversion of Ethernet frames and FC-AE-1553 frames and sending the Ethernet frames to the Ethernet node. The communication network of Ethernet and FC-AE-1553 is simple in structure, small in occupied volume and low in cost.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of FC-AE-1553 and Ethernet hybrid network communication, and particularly relates to a communication device compatible with a hybrid network of Ethernet and FC-AE-1553. BACKGROUND

[0002] Fiber Channel (FC) is a high-speed serial communication protocol formulated by INCITS (International Information Technology Standard Committee) in 1998. As a member of the FC-AE (Fiber Channel Avionics Environment) protocol cluster, FC-AE-1553 protocol is a command / response network communication protocol suitable for FC network, which is mapped from MIL-STD-1553B bus protocol to fiber channel protocol, and has the characteristics of high reliability, high bandwidth, strong real-time performance and strong compatibility, and is widely used in data transmission between communication devices in military electronic environments such as aerospace. Ethernet is a computer local area network technology, and is the most widely used local area network technology at present, and has the characteristics of simplicity, convenience, low price and high speed.

[0003] In the traditional FC-AE-1553, each node can only be a node in the FC-AE-1553, and the network nodes are divided into NC (Network Controller) nodes and NT (Network Terminal) nodes, wherein the NC node is the controller of the bus, and the bus communication is initiated or controlled by the NC node, and the NT node is a communication node that receives the NC control to send or receive data, and the information interaction parties are either NC nodes or NT nodes accessing the bus. FC-AE-1553 is a command / response bus, and the NC acts as a bus controller to control other nodes to receive or send data. In this case, FC-AE-1553 and Ethernet cannot be directly interconnected, and if data transmission between nodes is required, additional devices are needed to achieve it.

[0004] Therefore, there is an urgent need for a communication device for realizing FC-AE-1553 and Ethernet, which has simple structure, small occupied volume and low cost. SUMMARY

[0005] In view of the above analysis, the embodiments of the present application aim to provide a communication device compatible with a hybrid network of Ethernet and FC-AE-1553, so as to solve the problems of complex network structure, large volume and high cost of FC-AE-1553 and Ethernet node communication network in the prior art.

[0006] The embodiment of the present application provides a communication device compatible with a mixed network of Ethernet and FC-AE-1553, the communication device comprises a plurality of Ethernet interface conversion modules, an Ethernet data exchange module, a protocol processing module, an FC data exchange module and a plurality of FC transceiver modules;

[0007] Each Ethernet interface conversion module corresponds to an Ethernet node, is used for receiving an Ethernet data frame sent by the Ethernet node, and forwards the Ethernet data frame to the Ethernet data exchange module or the protocol processing module according to a destination node;

[0008] Each FC transceiver module corresponds to an FC-AE-1553 node, is used for receiving an FC-AE-1553 frame sent by the FC-AE-1553 node, and forwards the FC-AE-1553 frame to the FC data exchange module; the FC data exchange module forwards the FC-AE-1553 frame to the FC transceiver module or the protocol processing module corresponding to a destination node according to the destination node;

[0009] The protocol processing module is used for realizing mutual conversion of the Ethernet frame and the FC-AE-1553 frame, sending the converted Ethernet frame to the Ethernet interface conversion module corresponding to a destination node, and sending the converted FC-AE-1553 frame to the FC data exchange module; the FC data exchange module sends the FC-AE-1553 frame to the FC transceiver module corresponding to a destination node according to the destination node, and the FC transceiver module sends the converted FC-AE-1553 frame to the FC-AE-1553 node corresponding to the FC transceiver module.

[0010] Based on the further improvement of the above device, the communication device further comprises a routing information management module;

[0011] When any Ethernet node is initially connected to the Ethernet interface conversion module of the communication device or the FC-AE-1553 node is initially connected to the FC transceiver module of the communication device, the routing information management module allocates an FC_ID for the Ethernet interface conversion module or the FC transceiver module, and obtains a MAC address and an IP address of the Ethernet node or the FC-AE-1553 node;

[0012] The routing information management module stores a mapping relationship of a node type, an FC_ID, a MAC address and an IP address of each node in a routing mapping table.

[0013] Based on the further improvement of the above device, the Ethernet interface conversion module comprises an Ethernet port, and the Ethernet data frame is transmitted between the Ethernet node and the Ethernet interface conversion module through the Ethernet port;

[0014] The FC transceiver module includes an FC port, and the FC-AE-1553 frame is transmitted between the FC-AE-1553 node and the FC transceiver module through the FC port.

[0015] Based on the further improvement of the device, the communication device further includes a first memory space and a second memory space.

[0016] When the protocol processing module parses the effective data contained in the Ethernet data frame forwarded by the Ethernet interface conversion module, the effective data is saved to the first memory space for storage.

[0017] When the protocol processing module parses the effective data contained in the FC-AE-1553 frame forwarded by the FC-AE-1553 data exchange module, the effective data is saved to the second memory space for storage.

[0018] Based on the further improvement of the device, when the protocol processing module receives the Ethernet data frame forwarded by the Ethernet interface conversion module, the protocol processing module is further used for:

[0019] parsing the effective data contained in the Ethernet data frame and saving the effective data to the first memory space until all the effective data contained in the data packet is obtained; according to the MAC address of the destination node, querying the pre-stored routing mapping table to determine whether the destination node is an NC node or an NT node;

[0020] When the destination node is an NT node, the effective data contained in the data packet is encapsulated according to the FC-AE-1553 protocol format to obtain a command data sequence corresponding to the data packet, and the command data sequence is sent to the destination node.

[0021] When the destination node is an NC node, the effective data contained in the data packet is encapsulated according to the FC-AE-1553 protocol format to obtain a status data sequence corresponding to the data packet, and the status data sequence is sent to the destination node.

[0022] Based on the further improvement of the device, the effective data contained in the data packet is encapsulated according to the FC-AE-1553 protocol format to obtain a command data sequence corresponding to the data packet, and the command data sequence is sent to the destination node.

[0023] According to a first preset length, the effective data contained in the data packet is fragmented to determine the number S of fragments of the data packet and the effective data corresponding to each fragment;

[0024] According to the number S of fragments of the data packet, the effective data corresponding to each fragment is encapsulated according to the FC-AE-1553 protocol format to obtain a command data sequence corresponding to the data packet.

[0025] Based on the further improvement of the above device, the effective data contained in the data packet encapsulated according to the FC-AE-1553 protocol format is obtained to obtain the state data sequence corresponding to the data packet, including:

[0026] The effective data contained in the data packet is fragmented according to the first preset length, and the number S' of fragments of the data packet and the effective data corresponding to each fragment are determined;

[0027] According to the number S' of fragments of the data packet, the effective data corresponding to each fragment is encapsulated according to the FC-AE-1553 protocol format to obtain the state data sequence corresponding to the data packet.

[0028] Based on the further improvement of the above device, when the protocol processing module receives the FC-AE-1553 frame forwarded by the FC-AE-1553 data exchange module, the protocol processing module is further used for:

[0029] According to the source ID of the FC-AE-1553 frame, the pre-stored routing mapping table is queried to determine whether the source FC-AE-1553 node is an NC node or an NT node;

[0030] When the source FC-AE-1553 node is an NC node, the frame type of the FC-AE-1553 frame is determined by analyzing the FC-AE-1553 frame; when the FC-AE-1553 frame is a send command frame, the data packet corresponding to the send command frame is determined, and all effective data contained in the data packet to be sent is saved to the second memory space;

[0031] It is judged whether all effective data contained in the data packet to be sent has been saved to the second memory space; if yes, all effective data contained in the data packet to be sent is encapsulated according to the Ethernet protocol format to obtain one or more Ethernet data frames corresponding to the data packet to be sent, and the one or more Ethernet data frames are sent to the Ethernet interface conversion module corresponding to the destination node.

[0032] Based on the further improvement of the above device, the protocol processing module is further used for:

[0033] When the FC-AE-1553 frame is a send command frame, when all effective data contained in the data packet corresponding to the send command frame has been saved to the second memory space, it is determined whether to return a receiving state frame to the source FC-AE-1553 node according to the state suppression bit of the send command frame;

[0034] When the FC-AE-1553 frame is a receive command frame, the data packet requested by the receive command frame is determined; the data packet requested by the receive command frame is sent to the source FC-AE-1553 node;

[0035] When the FC-AE-1553 frame is a to-be-sent data frame, the effective data contained in the to-be-sent data frame is parsed and saved to the second memory space.

[0036] Based on the further improvement of the above device, the protocol processing module is further used for:

[0037] When the source FC-AE-1553 node is an NT node, the FC-AE-1553 frame is parsed to determine the frame type of the FC-AE-1553 frame.

[0038] When the FC-AE-1553 frame is a to-be-sent data frame, the effective data contained in the to-be-sent data frame is parsed and saved to the second memory space.

[0039] When the FC-AE-1553 frame is a to-be-sent data frame, the effective data contained in the to-be-sent data frame is parsed and saved to the second memory space.

[0040] Compared with the prior art, the present application can achieve at least one of the following beneficial effects:

[0041] 1. By determining the node type to which the destination node of the Ethernet data frame belongs, the communication between Ethernet nodes and between Ethernet nodes and FC-AE-1553 nodes is realized in different ways, which not only enables fast communication between nodes of the same node type, but also enables communication between nodes of different node types.

[0042] 2. By encapsulating the effective data contained in the data packet into a command data sequence or a state data sequence according to whether the destination node is an NT node or an NC node and sending the data sequence to the destination node, communication between nodes of different node types is realized, and additional devices are not required to be added to the FC-AE-1553 node, which occupies a small volume, has low cost, and has a simple network structure.

[0043] 3. By providing multiple ways to encapsulate the effective data corresponding to each fragment according to the number of fragments of the data packet, the data transmission of the Ethernet node is diversified, which is more suitable for different FC-AE-1553 nodes and has higher practicality.

[0044] 4. By determining the node type to which the destination node of the FC-AE-1553 frame belongs, the communication between FC-AE-1553 nodes and between FC-AE-1553 nodes and Ethernet nodes is realized in different ways, which not only enables fast communication between nodes of the same node type, but also enables communication between nodes of different node types.

[0045] 5. When the source FC-AE-1553 node is an NC node, the type of the source FC-AE-1553 node is obtained by analyzing the FC-AE-1553 frame sent by the source FC-AE-1553 node, the function to be implemented by the source FC-AE-1553 node is quickly determined according to the type of the FC-AE-1553 frame, and when the source FC-AE-1553 node sends data, a storage space is opened for the data to facilitate sending.

[0046] 6. The communication between the Ethernet nodes and the communication between the Ethernet nodes and the FC-AE-1553 nodes are implemented by different modules, so that not only the communication between nodes of the same type can be quickly implemented, but also the communication between nodes of different types can be implemented.

[0047] 7. The first memory space is used for storing the effective data contained in the data packet sent by the Ethernet node to the FC-AE-1553 node, and the second memory space is used for storing the effective data contained in the data packet sent by the FC-AE-1553 node to the Ethernet node, so that the communications are independent of each other, the processing speed and efficiency are improved, and the mutual interference is reduced.

[0048] In the present application, the above technical solutions can be combined with each other to achieve more preferred combination solutions. Other features and advantages of the present application will be described in the subsequent specification, and some advantages will become apparent from the specification or will be understood by implementing the present application. The objects and other advantages of the present application can be achieved and obtained from the contents specifically indicated in the specification and the drawings. BRIEF DESCRIPTION OF DRAWINGS

[0049] The accompanying drawings are included to provide a further understanding of the application and are incorporated herein and constitute a part of the detailed description. The drawings illustrate embodiments of the application and, together with the description, serve to explain the principles of the application. In the drawings:

[0050] Figure 1 A flowchart of an Ethernet node data sending method based on a hybrid network of Ethernet and FC-AE-1553 is provided for the embodiments of the present application;

[0051] Figure 2 An Ethernet frame format structure diagram is provided;

[0052] Figure 3 An FC-AE-1553 frame format structure diagram is provided;

[0053] Figure 4 A flowchart of a source Ethernet node sending a data packet to a destination node NT point is provided for the embodiments of the present application;

[0054] Figure 5A schematic diagram of a process flow of a source Ethernet node sending a data packet to a destination node NC provided by an embodiment of the present invention;

[0055] Figure 6 A schematic diagram of a flow chart of a method for transmitting FC-AE-1553 node data based on a hybrid network provided by an embodiment of the present invention;

[0056] Figure 7 A schematic diagram of a process for a source NC node to send a data packet to a destination Ethernet node according to an embodiment of the present invention;

[0057] Figure 8 A schematic diagram of a process for a source NT node to send a data packet to a destination Ethernet node according to an embodiment of the present invention;

[0058] Figure 9 A schematic diagram of the structure of a communication device compatible with a hybrid network of Ethernet and FC-AE-1553 provided by an embodiment of the present invention;

[0059] Figure 10 A schematic diagram of a structure in which an Ethernet node sends data to another Ethernet node according to an embodiment of the present invention;

[0060] Figure 11 A schematic diagram of a structure in which an Ethernet node sends data to an FC-AE-1553 node according to an embodiment of the present invention;

[0061] Figure 12 A schematic diagram of a structure in which an FC-AE-1553 node sends data to another FC-AE-1553 node according to an embodiment of the present invention;

[0062] Figure 13 This is a structural diagram of an FC-AE-1553 node sending data to an Ethernet node provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0063] The preferred embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of this application and are used together with the embodiments of the present invention to illustrate the principles of the present invention, and are not used to limit the scope of the present invention.

[0064] A specific embodiment of the present invention discloses a communication device compatible with a hybrid network of Ethernet and FC-AE-1553, such as Figure 9 As shown, the communication equipment includes several Ethernet interface conversion modules, Ethernet data exchange modules, protocol processing modules, FC data exchange modules and several FC transceiver modules;

[0065] Each Ethernet interface conversion module corresponds to an Ethernet node, and is configured to receive an Ethernet data frame sent by the Ethernet node and forward the Ethernet data frame to a corresponding Ethernet data switching module or a protocol processing module according to a destination node;

[0066] Each FC transceiver module corresponds to an FC-AE-1553 node, and is configured to receive an FC-AE-1553 frame sent by the FC-AE-1553 node and forward the FC-AE-1553 frame to the FC data switching module; the FC data switching module forwards the FC-AE-1553 frame to a corresponding FC transceiver module or a protocol processing module according to a destination node;

[0067] The protocol processing module is configured to implement mutual conversion between the Ethernet frame and the FC-AE-1553 frame, send the converted Ethernet frame to a corresponding Ethernet interface conversion module of the destination node, and send the converted FC-AE-1553 frame to the FC data switching module; the FC data switching module forwards the FC-AE-1553 frame to a corresponding FC transceiver module according to the destination node, and the FC transceiver module sends the converted FC-AE-1553 frame to a corresponding FC-AE-1553 node.

[0068] Specifically, as shown in Figure 9 The communication device includes m Ethernet interface conversion modules, one Ethernet data switching module, one protocol processing module, one FC data switching module, and (n+p) FC transceiver modules, where the (n+p) FC transceiver modules correspond to n NC nodes and p NT nodes, and m, n, and p are positive integers.

[0069] As shown in Figure 9 Each Ethernet interface conversion module is connected with an Ethernet node, and is configured to receive an Ethernet data frame sent by the Ethernet node and forward the Ethernet data frame to a corresponding Ethernet data switching module or a protocol processing module according to a destination node; meanwhile, when the protocol processing module sends a converted Ethernet frame to a corresponding Ethernet interface conversion module of the destination node, the Ethernet interface conversion module sends the converted Ethernet frame to a corresponding Ethernet node.

[0070] Specifically, when the Ethernet interface conversion module receives an Ethernet data frame sent by an Ethernet node, it can be understood that the Ethernet node sends a data frame to the remaining nodes in the hybrid network at this time, the Ethernet interface conversion module receives the Ethernet data frame sent by the source Ethernet node, and determines the node type to which the destination node of the Ethernet data frame belongs;

[0071] If the node type to which the destination node belongs is FC-AE-1553 node, the Ethernet interface conversion module forwards the Ethernet data frame to the protocol processing module; if the node type to which the destination node belongs is Ethernet node, the Ethernet data frame is directly sent to the Ethernet data exchange module, the Ethernet data exchange module forwards the data frame to the Ethernet interface conversion module corresponding to the destination node, and the Ethernet interface conversion module transmits the Ethernet data frame to the destination node Ethernet node.

[0072] Specifically, when the Ethernet interface conversion module receives the Ethernet data frame from the Ethernet data exchange module or the protocol processing module, the Ethernet interface conversion module transmits the Ethernet data frame to the destination node Ethernet node.

[0073] Preferably, the Ethernet interface conversion module comprises an Ethernet port, and the Ethernet data frame is transmitted between the Ethernet node and the Ethernet interface conversion module through the Ethernet port.

[0074] Specifically, the Ethernet port can comprise an RJ45 and an Ethernet PHY chip, so that the Ethernet data frame is transmitted between the Ethernet node and the communication device. It can be understood that the RJ45 is a kind of information socket connector in wiring system, and the connector is composed of plug and socket.

[0075] The communication device of the hybrid network compatible with Ethernet and FC-AE-1553 provided by the embodiment of the application realizes the communication between Ethernet nodes and the communication between the Ethernet node and FC-AE-1553 node by using different modules, so that not only the communication between nodes of the same node type can be quickly realized, but also the communication between nodes of different node types can be realized.

[0076] As shown in Figure 9 Each FC transceiver module corresponds to one FC-AE-1553 node, is used for receiving the FC-AE-1553 frame sent by the FC-AE-1553 node, and forwards to the FC data exchange module; meanwhile, the FC transceiver module receives the FC-AE-1553 frame sent by the FC data exchange module, and transmits the converted FC-AE-1553 frame to the corresponding FC-AE-1553 node.

[0077] Preferably, the FC transceiver module comprises an FC port, and the FC-AE-1553 frame is transmitted between the FC-AE-1553 node and the FC transceiver module through the FC port.

[0078] Specifically, the FC port can include an SFP, so that the FC-AE-1553 frame is transmitted between the FC-AE-1553 node and the communication device. It can be understood that the SFP (Small Form Pluggable) is an upgraded version of the GBIC (Gigabit Interface Converter), which is an interface device for converting gigabit electrical signals into optical signals and can be hot-plugged.

[0079] Specifically, the protocol processing module is configured to implement mutual conversion between the Ethernet frame and the FC-AE-1553 frame, transmit the converted Ethernet frame to the Ethernet interface conversion module corresponding to the destination node, and transmit the converted Ethernet frame to the corresponding Ethernet node by the Ethernet interface conversion module; meanwhile, transmit the converted FC-AE-1553 frame to the FC data exchange module, transmit the FC-AE-1553 frame to the corresponding FC transceiver module according to the destination node by the FC data exchange module, and transmit the converted FC-AE-1553 frame to the corresponding FC-AE-1553 node by the FC transceiver module.

[0080] Specifically, the protocol processing module is configured to implement mutual conversion between the Ethernet frame and the FC-AE-1553 frame, transmit the converted Ethernet frame to the Ethernet interface conversion module corresponding to the destination node, and transmit the converted Ethernet frame to the corresponding Ethernet node by the Ethernet interface conversion module; meanwhile, transmit the converted FC-AE-1553 frame to the FC data exchange module, transmit the FC-AE-1553 frame to the corresponding FC transceiver module according to the destination node by the FC data exchange module, and transmit the converted FC-AE-1553 frame to the corresponding FC-AE-1553 node by the FC transceiver module.

[0081] Preferably, the communication device further comprises a routing information management module.

[0082] When any Ethernet node is initially connected to the Ethernet interface conversion module of the communication device or the FC-AE-1553 node is initially connected to the FC transceiver module of the communication device, the routing information management module allocates an FC_ID to the Ethernet interface conversion module or the FC transceiver module, and obtains the MAC address and the IP address of the Ethernet node or the FC-AE-1553 node.

[0083] The routing information management module stores the mapping relationship of the node type, the FC_ID, the MAC address and the IP address of each node in a routing mapping table.

[0084] Specifically, the routing information management module can be updated as the nodes connected to the communication device change, and when any Ethernet node or FC-AE-1553 node is deleted from the communication device, the routing information management module also deletes the routing mapping table information corresponding to the node.

[0085] Preferably, the communication device further comprises a first memory space and a second memory space.

[0086] When the protocol processing module parses the effective data contained in the data packet from the Ethernet data frame forwarded by the Ethernet interface conversion module, the effective data is saved to the first memory space for storage;

[0087] When the protocol processing module parses the effective data contained in the data packet from the FC-AE-1553 data exchange module, the effective data is saved to the second memory space for storage.

[0088] Specifically, the first memory space is used to store the effective data contained in the data packet sent by the Ethernet node to the FC-AE-1553 node, and the second memory space is used to store the effective data contained in the data packet sent by the FC-AE-1553 node to the Ethernet node, so that the communication is independent of each other, the processing speed and efficiency are improved, and the mutual interference is reduced.

[0089] Specifically, when the protocol processing module receives the Ethernet data frame forwarded by the Ethernet interface conversion module, the protocol processing module is further used to:

[0090] parse the effective data contained in the Ethernet data frame and save it to the first memory space until all the effective data contained in the data packet is obtained; according to the MAC address of the destination node, the pre-stored routing mapping table is queried to determine whether the destination node is an NC node or an NT node;

[0091] When the destination node is an NT node, the effective data contained in the data packet is encapsulated according to the FC-AE-1553 protocol format to obtain the command data sequence corresponding to the data packet, and the command data sequence is sent to the destination node;

[0092] When the destination node is an NC node, the effective data contained in the data packet is encapsulated according to the FC-AE-1553 protocol format to obtain the state data sequence corresponding to the data packet, and the state data sequence is sent to the destination node.

[0093] Specifically, the effective data contained in the data packet is encapsulated according to the FC-AE-1553 protocol format to obtain the command data sequence corresponding to the data packet, and the command data sequence is sent to the destination node;

[0094] The effective data contained in the data packet is fragmented according to a first preset length, the number S of fragments of the data packet and the effective data corresponding to each fragment are determined;

[0095] According to the number S of fragments of the data packet, the effective data corresponding to each fragment is encapsulated according to the FC-AE-1553 protocol format to obtain the command data sequence corresponding to the data packet.

[0096] Specifically, the effective data contained in the data packet encapsulated according to the FC-AE-1553 protocol format is obtained to obtain a state data sequence corresponding to the data packet, and the method comprises the following steps:

[0097] The effective data contained in the data packet is fragmented according to a first preset length, and the number S' of fragments of the data packet and the effective data corresponding to each fragment are determined.

[0098] According to the number S' of fragments of the data packet, the effective data corresponding to each fragment is encapsulated according to the FC-AE-1553 protocol format to obtain a state data sequence corresponding to the data packet.

[0099] Specifically, when the protocol processing module receives the FC-AE-1553 frame forwarded by the FC-AE-1553 data exchange module, the protocol processing module is further used for:

[0100] According to the source ID of the FC-AE-1553 frame, the pre-stored routing mapping table is queried to determine whether the source FC-AE-1553 node is an NC node or an NT node.

[0101] When the source FC-AE-1553 node is an NC node, the frame type of the FC-AE-1553 frame is determined by analyzing the FC-AE-1553 frame; when the FC-AE-1553 frame is a sending command frame, the data packet corresponding to the sending command frame is determined, and all the effective data contained in the data packet to be sent is saved to the second memory space.

[0102] It is judged whether all the effective data contained in the data packet to be sent has been saved to the second memory space; if yes, all the effective data contained in the data packet to be sent is encapsulated according to the Ethernet protocol format to obtain one or more Ethernet data frames corresponding to the data packet to be sent, and the one or more Ethernet data frames are sent to the Ethernet interface conversion module corresponding to the destination node.

[0103] Specifically, the protocol processing module is further used for:

[0104] When the FC-AE-1553 frame is a sending command frame, when all the effective data contained in the data packet corresponding to the sending command frame has been saved to the second memory space, it is determined whether to return a receiving status frame to the source FC-AE-1553 node according to the status inhibit bit of the sending command frame.

[0105] When the FC-AE-1553 frame is a receiving command frame, the data packet requested by the receiving command frame is determined; the data packet requested by the receiving command frame is sent to the source FC-AE-1553 node.

[0106] When the FC-AE-1553 frame is a to-be-sent data frame, the effective data contained in the to-be-sent data frame is parsed and saved to the second memory space.

[0107] Specifically, the protocol processing module is further configured to:

[0108] When the source FC-AE-1553 node is an NT node, the FC-AE-1553 frame is parsed to determine the frame type of the FC-AE-1553 frame.

[0109] When the FC-AE-1553 frame is a sending status frame, a to-be-sent data packet corresponding to the sending status frame is determined, and all effective data contained in the to-be-sent data packet is saved to the second memory space.

[0110] When the FC-AE-1553 frame is a to-be-sent data frame, the effective data contained in the to-be-sent data frame is parsed and saved to the second memory space.

[0111] The communication device compatible with the mixed network of Ethernet and FC-AE-1553 provided by the embodiment of the application is described below through a data interaction process between different nodes.

[0112] 1: The Ethernet node sends data to the Ethernet node.

[0113] As shown in FIG. 1, the source node and the destination node are both Ethernet nodes, the source Ethernet node sends an Ethernet data frame to be sent to a source Ethernet interface conversion module, the source Ethernet interface conversion module parses the Ethernet data frame to determine that the node type to which the destination node of the Ethernet data frame belongs is an Ethernet node, and the Ethernet interface conversion module directly sends the Ethernet data frame to an Ethernet data exchange module. Figure 10

[0114] The Ethernet data exchange module forwards the Ethernet data frame to the destination Ethernet interface conversion module according to the destination MAC address of the Ethernet data frame, and the Ethernet interface conversion module finally transmits the Ethernet data frame to the destination Ethernet node.

[0115] 2: The Ethernet node sends data to the FC-AE-1553 node.

[0116] As shown in FIG. 2, the source node is an Ethernet node, and the destination node is an FC-AE-1553 node, the source Ethernet node sends an Ethernet data frame to be sent to a source Ethernet interface conversion module. Figure 11 The source Ethernet interface conversion module parses the Ethernet data frame to determine that the node type to which the destination node of the Ethernet data frame belongs is an FC-AE-1553 node, and sends the Ethernet data frame to a protocol processing module.

[0117] The protocol processing module parses the FC-AE-1553 frame to determine the frame type of the FC-AE-1553 frame, and sends the FC-AE-1553 frame to the FC-AE-1553 data exchange module according to the frame type of the FC-AE-1553 frame.​

[0118] The protocol processing module is configured to perform the steps 102, 103 and 104 in the method for transmitting data of an Ethernet node in the hybrid network based on Ethernet and FC-AE-1553 according to the embodiments of the present application, to obtain the FC-AE-1553 frame to be transmitted to the destination FC-AE-1553 node, and finally transmit the FC-AE-1553 frame to the FC data exchange module;

[0119] The FC data exchange module forwards the FC-AE-1553 frame to the destination FC transceiver module according to the destination ID of the FC-AE-1553 frame, and the destination FC transceiver module transmits the FC-AE-1553 frame to the destination FC-AE-1553 node, which is an NT node or an NC node.

[0120] 3: FC-AE-1553 node transmits data to FC-AE-1553 node.

[0121] As shown in FIG. 4, the source node and the destination node are both FC-AE-1553 nodes, the source NT node / NC node transmits the FC-AE-1553 frame to be transmitted to the FC transceiver module, and the FC transceiver module transmits the FC-AE-1553 frame to the FC data exchange module; Figure 12 The FC data exchange module parses the FC-AE-1553 frame and determines that the destination node belongs to the FC-AE-1553 node, and directly transmits the FC-AE-1553 frame to the destination FC transceiver module, and the destination FC transceiver module transmits the FC-AE-1553 frame to the destination NT node / NC node.

[0122] 4: FC-AE-1553 node transmits data to Ethernet node.

[0123] As shown in FIG. 5, the source node is an FC-AE-1553 node, and the destination node is an Ethernet node, the source NT node / NC node transmits the FC-AE-1553 frame to be transmitted to the FC transceiver module, and the FC transceiver module transmits the FC-AE-1553 frame to the FC data exchange module;

[0124] Figure 13 The FC data exchange module parses the FC-AE-1553 frame and determines that the destination node belongs to the Ethernet node, and forwards the FC-AE-1553 frame to the protocol processing module.

[0125]

[0126] ​​The protocol processing module is configured to execute steps 602, 603 and 604 in the FC-AE-1553 node data sending method based on the hybrid network, obtain one or more Ethernet data frames to be sent to a destination Ethernet node, send the one or more Ethernet data frames to a destination Ethernet interface conversion module, and transmit the one or more Ethernet data frames to the destination Ethernet node by the destination Ethernet interface conversion module.

[0127] Another specific embodiment of the present application discloses an Ethernet node data sending method based on a hybrid network of Ethernet and FC-AE-1553, which is used in the communication equipment compatible with the hybrid network of Ethernet and FC-AE-1553, such as Figure 1 As shown in the figure, the Ethernet node data sending method comprises the following steps:

[0128] Step S101: receiving an Ethernet data frame sent by a source Ethernet node, and determining a node type to which a destination node of the Ethernet data frame belongs;

[0129] Step S102: if the node type to which the destination node belongs is an FC-AE-1553 node, saving valid data contained in the Ethernet data frame to a first memory space until all valid data contained in a data packet are obtained; and querying a pre-stored routing mapping table according to a MAC address of the destination node to determine whether the destination node is an NC node or an NT node;

[0130] Step S103: when the destination node is an NT node, encapsulating valid data contained in the data packet according to an FC-AE-1553 protocol format to obtain a command data sequence corresponding to the data packet, and sending the command data sequence to the destination node;

[0131] Step S104: when the destination node is an NC node, encapsulating valid data contained in the data packet according to an FC-AE-1553 protocol format to obtain a status data sequence corresponding to the data packet, and sending the status data sequence to the destination node.

[0132] Specifically, a terminal node in an Ethernet network is referred to as an Ethernet node, each Ethernet node is an IP protocol, and can only support the interconnection and intercommunication of IP protocols; and each Ethernet node can actively send data.

[0133] Specifically, a node in an FC-AE-1553 is referred to as an NT node or an NC node, the NC node is a controller of a bus, and bus communication is initiated or controlled by the NC node; the NT node is a communication node that receives the control of the NC node to send or receive data, and both parties of information interaction access the bus as the NC node or the NT node.

[0134] The mixed network of the embodiment of the present application refers to a mixed network composed of an Ethernet and an FC-AE-1553, in which when any Ethernet node in the Ethernet sends data to other nodes in the mixed network, an Ethernet node data sending method based on the mixed network of the Ethernet and the FC-AE-1553 is adopted, as shown in Figure 1

[0135] It can be understood that when the Ethernet node in the mixed network sends data to other nodes, the data is sent in the form of a data packet, and one or more Ethernet data frames are included in each data packet, and the Ethernet node sends one Ethernet data frame at a time.

[0136] Specifically, in step S101, the source Ethernet node sends an Ethernet data frame to a destination node, which can be an Ethernet node in the Ethernet or an FC-AE-1553 node in the FC-AE-1553, and the type of the destination node is determined to determine the type of the destination node to which the Ethernet data frame belongs. In the mixed network provided by the embodiment of the present application, the node types are Ethernet nodes and FC-AE-1553 nodes.

[0137] Preferably, the type of the destination node to which the Ethernet data frame belongs is determined by:

[0138] parsing the Ethernet data frame to obtain an Ethernet frame header, and obtaining the MAC address of the destination node from the Ethernet frame header;

[0139] querying a pre-stored routing mapping table according to the MAC address of the destination node to obtain the type of the destination node.

[0140] Specifically, as shown in Figure 2 the Ethernet data frame is parsed to obtain the frame header of the Ethernet data frame, and the destination MAC address is obtained from the Ethernet frame header, the destination MAC address being the MAC address corresponding to the destination node.

[0141] According to the MAC address of the destination node, the pre-stored routing mapping table is queried to obtain the type of the destination node, and Table 1 below shows an example of the pre-stored routing mapping table:

[0142] Table 1: Pre-stored routing mapping table

[0143]

[0144] ​In Table 1, the node number represents the serial number of each node in the hybrid network, which can reflect the number of nodes currently included in the hybrid network. The node type is an Ethernet node or an FC-AE-1553 node. The Mac address is the MAC address corresponding to each node in the hybrid network. The ID is the ID corresponding to each node in the hybrid network. The FC-AE-1553 nodes are further divided into NC nodes and NT nodes.

[0145] After determining the node type of the destination node, if the node type of the destination node is FC-AE-1553, follow Figure 1 Step S102 shown is executed.

[0146] Preferably, the Ethernet node data sending method further includes:

[0147] If the node type of the destination node is an Ethernet node, the Ethernet data frame is directly sent to the destination node.

[0148] Specifically, if the destination node is an Ethernet node, that is, the source node and the destination node are both Ethernet nodes, the Ethernet data frame can be directly sent to the destination node without further processing.

[0149] The Ethernet node data transmission method based on a hybrid network of Ethernet and FC-AE-1553 provided by an embodiment of the present invention determines the node type of the destination node of the Ethernet data frame and implements communication between Ethernet nodes and between Ethernet nodes and FC-AE-1553 nodes in different ways. This method can not only quickly implement communication between nodes of the same node type, but also implement communication between nodes of different node types.

[0150] Specifically, if the node type to which the destination node belongs is an FC-AE-1553 node, in step 102, the valid data contained in the Ethernet data frame is parsed and saved in the first memory space, and the Ethernet data frame is processed according to Figure 2 In the frame format shown, valid data is encapsulated in the data field of the Ethernet data frame, and the valid data is stored in the first memory space. It is worth noting that when the source Ethernet node sends a data packet to the destination node, it is necessary to parse all the data frames in the data packet one by one to obtain all the valid data contained in the data packet. Preferably, all the valid data contained in the same data packet can be saved to the corresponding position in the first memory space. The valid data contained in one or more data packets can be stored in the first memory space at the same time. The parsing of the Ethernet data frame of each data packet can be performed synchronously or asynchronously, which is not specifically limited in the embodiment of the present invention.

[0151] Specifically, in step 102, it is also required to query the pre-stored routing mapping table according to the MAC address of the destination node to determine whether the destination node is an NC node or an NT node, as shown in Table 1, and the NC node or the NT node can be determined by querying the pre-stored routing mapping table.

[0152] When the valid data of the Ethernet data frame required to be transmitted by any one of the source Ethernet nodes in step 2 is all saved to the first memory space, it is further required to be transmitted to the destination node. According to the type of the destination node, different transmission modes are adopted to transmit all the valid data contained in the data packet to the destination node.

[0153] When the destination node is an NT node, the following steps 103 shown in Figure 1 are performed:

[0154] In step 103, the valid data contained in the data packet is encapsulated according to the FC-AE-1553 protocol format to obtain a command data sequence corresponding to the data packet, and the command data sequence is transmitted to the destination node.

[0155] Specifically, as shown in Figure 3 , the valid data contained in the data packet is encapsulated according to the FC-AE-1553 protocol format.

[0156] Preferably, the encapsulation of the valid data contained in the data packet according to the FC-AE-1553 protocol format to obtain a command data sequence corresponding to the data packet comprises:

[0157] The valid data contained in the data packet is fragmented according to a first preset length to determine the fragmentation number S of the data packet and the valid data corresponding to each fragment;

[0158] The valid data corresponding to each fragment is encapsulated according to the FC-AE-1553 protocol format according to the fragmentation number S of the data packet to obtain a command data sequence corresponding to the data packet.

[0159] Specifically, the first preset length is the byte length occupied by the valid data contained in the FC-AE-1553 frame, the valid data contained in the data packet is fragmented, and the fragmentation number S of the data packet and the valid data corresponding to each fragment are determined.

[0160] As shown in Figure 4 , when the source Ethernet node transmits data to the destination NT node, 1 command frame and 1 or more data frames are included in the command data sequence, and the command frame and the data frame are encapsulated according to the FC-AE-1553 protocol format.

[0161] Preferably, encapsulating valid data corresponding to each fragment according to the FC-AE-1553 protocol format according to the number of fragments S of the data packet includes:

[0162] When S=1, the valid data corresponding to the slice is encapsulated into a command frame according to the FC-AE-1553 protocol format; the command data sequence includes the command frame;

[0163] When S>1, the valid data corresponding to the first fragment is encapsulated into a command frame according to the FC-AE-1553 protocol format, and the valid data corresponding to the remaining fragments are encapsulated into (S-1) data frames; the command data sequence includes the one command frame and the (S-1) data frames.

[0164] Specifically, in a hybrid network, whether valid data can be encapsulated in a command frame is determined based on different FC-AE-1553 nodes, and different encapsulation methods are reasonably selected. When valid data can be encapsulated in a command frame in a command data sequence, the valid data corresponding to each fragment is encapsulated into a command frame or data frame in the FC-AE-1553 frame format based on the number of fragments S of the data packet.

[0165] When S=1, the command data sequence includes only one command frame; when S>1, the command data sequence includes one command frame and (S-1) data frames.

[0166] Preferably, encapsulating valid data corresponding to each fragment according to the FC-AE-1553 protocol format according to the number of fragments S of the data packet includes:

[0167] Encapsulate the valid data corresponding to each fragment into S data frames according to the FC-AE-1553 protocol format;

[0168] A command frame is encapsulated according to the FC-AE-1553 protocol format; the command frame does not contain valid data; and the command data sequence includes a command frame and S data frames.

[0169] Specifically, when a command frame in a command data sequence cannot encapsulate valid data, the valid data corresponding to each fragment of the data packet is encapsulated into a data frame in the FC-AE-1553 frame format based on the number of fragments S in the data packet. A single command frame is encapsulated according to the FC-AE-1553 protocol format, but no valid data is encapsulated in the single command frame. The command data sequence includes one command frame and S data frames.

[0170] The Ethernet node data sending method based on the mixed network of Ethernet and FC-AE-1553 provided by the embodiment of the application provides multiple ways of encapsulating the effective data corresponding to each fragment according to the number of fragments of the data packet, so that the Ethernet node data sending is diversified, is more suitable for different FC-AE-1553 nodes, and is more practical.

[0171] Preferably, the sending of the command data sequence to the destination node comprises:

[0172] determining whether all frames in the command data sequence are sent completely; when the sending is completed, determining whether the status frame returned by the destination node needs to be received according to the state suppression bit included in one command frame;

[0173] when the status frame returned by the destination node needs to be received, if the status frame returned by the destination node is not received within a preset time, the frames in the command data sequence are re-sent to the destination node.

[0174] Specifically, as shown in Figure 4 the destination node NT node determines whether the status frame returned by the destination node needs to be received according to the state suppression bit included in one command frame after receiving the command data sequence sent by the source Ethernet node, if the destination node NT node needs to return the status frame, it is further needed to determine whether the status frame returned by the destination node NT node is received within a preset time; if the status frame returned by the destination node NT node is received within the preset time, it is proved that the data frame sent by the source Ethernet node has been completely sent to the destination node, and no further processing is needed; if the status frame returned by the destination node NT node is not received within the preset time, the command data sequence is re-sent to the destination node NT node.

[0175] Specifically, when the destination node is the NC node, i.e. when the source Ethernet node sends data to the destination node NC node, the following is performed according to the step 104 in Figure 1

[0176] the effective data contained in the data packet is encapsulated according to the FC-AE-1553 protocol format, the status data sequence corresponding to the data packet is obtained, and the status data sequence is sent to the destination node.

[0177] Specifically, as shown in Figure 5 when the destination node is the NC node, the effective data contained in the data packet is encapsulated into the status data sequence according to the format of the FC-AE-1553 frame, and the status data sequence is sent to the destination node NC node.

[0178] Preferably, the encapsulation of the effective data contained in the data packet according to the FC-AE-1553 protocol format to obtain the status data sequence corresponding to the data packet comprises: ​

[0179] slice the effective data contained in the data packet according to the first preset length, determine the slice number S' of the data packet and the effective data corresponding to each slice;

[0180] encapsulate the effective data corresponding to each slice according to the FC-AE-1553 protocol format according to the slice number S' of the data packet, to obtain the state data sequence corresponding to the data packet.

[0181] Specifically, the encapsulation of the effective data corresponding to each slice according to the FC-AE-1553 protocol format according to the slice number S' of the data packet comprises:

[0182] When S' = 1, the effective data corresponding to the slice is encapsulated into one state frame according to the FC-AE-1553 protocol format; and the state data sequence comprises the one state frame.

[0183] When S' > 1, the effective data corresponding to the first slice is encapsulated into one state frame according to the FC-AE-1553 protocol format, and the effective data corresponding to the remaining slices is encapsulated into (S'-1) data frames; and the state data sequence comprises the one state frame and the (S'-1) data frames.

[0184] Specifically, when the state frame contains effective data, the effective data corresponding to each slice is encapsulated according to the FC-AE-1553 protocol format according to the slice number S' of the data packet. If S' = 1, the state data sequence comprises one state frame; and if S' > 1, the state data sequence comprises one state frame and (S'-1) data frames.

[0185] Preferably, when the source Ethernet node sends the data frame to the destination node NC node, the sending of the state data sequence to the destination node comprises:

[0186] determining whether a command frame requesting the data packet is received from the destination node;

[0187] When the command frame requesting the data packet is received from the destination node, all frames in the state data sequence are sent to the destination node.

[0188] Specifically, as shown in Figure 5 if the source Ethernet node sends the data frame to the destination node NC node, the source Ethernet node needs to receive the command frame sent by the destination node NC node, and then according to the command frame, the state data sequence corresponding to the effective data contained in the data packet corresponding to the command frame is sent to the destination node NC node.

[0189] If the command frame corresponding to the data packet has not been received all the time, the state data sequence corresponding to the data packet cannot be sent.

[0190] The Ethernet node data sending method based on the hybrid network of Ethernet and FC-AE-1553 provided by the embodiment of the application realizes the communication of nodes of different types by encapsulating the effective data contained in the data packet into a command data sequence or a state data sequence and sending to the destination node according to whether the destination node is an NT node or an NC node, avoids adding extra devices to the FC-AE-1553 node, and has small volume, low cost and simple network structure.

[0191] Compared with the prior art, the Ethernet node data sending method based on the hybrid network of Ethernet and FC-AE-1553 provided by the embodiment of the application realizes the communication between Ethernet nodes and the communication between Ethernet nodes and FC-AE-1553 nodes in different ways by determining the node type to which the destination node of the Ethernet data frame belongs, can not only quickly realize the communication of nodes of the same type, but also realize the communication of nodes of different types, and can realize the communication of nodes of different types by encapsulating the effective data contained in the data packet into a command data sequence or a state data sequence and sending to the destination node according to whether the destination node is an NT node or an NC node, avoids adding extra devices to the FC-AE-1553 node, has small volume, low cost and simple network structure, and provides multiple ways to encapsulate the effective data corresponding to each fragment according to the number of fragments of the data packet, so that the Ethernet node data sending is diversified, is more suitable for different FC-AE-1553 nodes, and has higher practicability.

[0192] Another specific embodiment of the application discloses an FC-AE-1553 node data sending method based on a hybrid network, which is used for a communication device compatible with the hybrid network of Ethernet and FC-AE-1553, as shown in the accompanying drawings, and the FC-AE-1553 node data sending method comprises the following steps. Figure 6

[0193] Step 601: receiving an FC-AE-1553 frame sent by a source FC-AE-1553 node, and determining the node type to which the destination node of the FC-AE-1553 frame belongs.

[0194] Step 602: if the node type to which the destination node belongs is an Ethernet node, determining whether the source FC-AE-1553 node is an NC node or an NT node according to the source ID of the FC-AE-1553 frame by querying a pre-stored routing mapping table.

[0195] ​Step 603: When the source FC-AE-1553 node is an NC node, parsing the FC-AE-1553 frame to determine the frame type of the FC-AE-1553 frame; when the FC-AE-1553 frame is a send command frame, determining the data packet corresponding to the send command frame, opening a second memory space for the data packet, and saving all valid data contained in the data packet to the second memory space;

[0196] Step 604: determining whether all valid data contained in the data packet has been saved to the second memory space; if yes, encapsulating all valid data contained in the data packet according to the Ethernet protocol format to obtain one or more Ethernet data frames corresponding to the data packet, and sending the one or more Ethernet data frames to the destination node.

[0197] Specifically, when the FC-AE-1553 node in the hybrid network of Ethernet and FC-AE-1553 sends data to other nodes in the hybrid network, the FC-AE-1553 node data sending method based on the hybrid network is as shown in the flowchart of the FC-AE-1553 node data sending method based on the hybrid network. Figure 6

[0198] In step 601, the FC-AE-1553 frame sent by the source FC-AE-1553 node is received, and the node type to which the destination node of the FC-AE-1553 frame belongs is determined. Specifically, the determination of the node type to which the destination node of the FC-AE-1553 frame belongs includes:

[0199] The FC-AE-1553 frame header is obtained by parsing the FC-AE-1553 frame, and the ID of the destination node is obtained from the FC-AE-1553 frame header.

[0200] According to the ID of the destination node, the node type to which the destination node belongs is obtained by querying the pre-stored routing mapping table.

[0201] Specifically, as shown in Figure 3 The FC-AE-1553 frame header is obtained by parsing the FC-AE-1553 frame, and the D_ID of the destination node, i.e. the ID of the destination node, is obtained from the FC-AE-1553 frame header. The node type to which the destination node belongs is obtained by querying the pre-stored routing mapping table, as shown in Table 1, and the node type to which the destination node belongs is determined.

[0202] Preferably, the FC-AE-1553 node data sending method further includes:

[0203] If the node type to which the destination node belongs is an FC-AE-1553 node, the FC-AE-1553 frame is directly sent to the destination node.

[0204] ​Specifically, when the source FC-AE-1553 node sends data to the destination FC-AE-1553 node, the FC-AE-1553 frame sent by the source FC-AE-1553 node is directly sent to the destination FC-AE-1553 node.

[0205] The hybrid network-based FC-AE-1553 node data transmission method provided by an embodiment of the present invention implements communication between FC-AE-1553 nodes and between FC-AE-1553 nodes and Ethernet nodes in different ways based on the node type of the destination node of the FC-AE-1553 frame. This not only enables rapid communication between nodes of the same node type, but also enables communication between nodes of different node types.

[0206] Specifically, if the node type of the destination node is an Ethernet node, such as Figure 6 In step 602, when the source FC-AE-1553 node sends data to the destination Ethernet node, it is necessary to further determine whether the source FC-AE-1553 node is an NC node or an NT node. The FC-AE-1553 frame is parsed to obtain the S_ID. The source node ID is then used to query the pre-stored route mapping table Table 1 to determine whether the source FC-AE-1553 node is an NC node or an NT node.

[0207] When the source FC-AE-1553 node is an NC node and the destination node is an Ethernet node, such as Figure 6 In step 603 , the FC-AE-1553 frame is parsed to determine the frame type of the FC-AE-1553 frame.

[0208] like Figure 6 As shown, it is worth noting that when the source NC node actively sends data to the other nodes in the hybrid network, the source NC node will actively send command frames and data frames. The command frame sent at this time is used to send data, and the command frame is a sending command frame; Figure 5 As shown, when the NC node is the destination node for receiving data sent by other nodes in the hybrid network, the NC node will actively send a command frame. The command frame sent at this time is used to receive data, and the command frame is a receive command frame.

[0209] Specifically, in step 603, when the source NC node actively sends data to the destination Ethernet node, when the FC-AE-1553 frame is a sending command frame, the sending command frame is parsed to obtain the data packet to be sent required by the command frame, a second memory space is opened for the data packet to be sent, and all valid data contained in the data packet to be sent is saved in the second memory space.

[0210] It is worth mentioning that one or more data packets sent by the source FC-AE-1553 node can be stored in the second memory space at the same time, and the receiving of multiple data packets can be executed synchronously or asynchronously, which is not limited here.

[0211] Specifically, in step 604, when the source NC node actively sends data to the destination node Ethernet node, it is determined whether all valid data contained in the to-be-sent data packet has been saved to the second memory space. If all valid data contained in the to-be-sent data packet has been saved to the second memory space, all valid data contained in the to-be-sent data packet is encapsulated according to the Ethernet protocol format, one or more Ethernet data frames corresponding to the to-be-sent data packet are obtained, and the one or more Ethernet data frames are sent to the destination node Ethernet node.

[0212] Preferably, the encapsulation of all valid data contained in the to-be-sent data packet according to the Ethernet protocol format to obtain one or more Ethernet data frames corresponding to the to-be-sent data packet comprises:

[0213] Fragmenting all valid data contained in the to-be-sent data packet according to a second preset length to determine valid data corresponding to each fragment;

[0214] Encapsulating valid data corresponding to each fragment according to the Ethernet protocol format to obtain one or more Ethernet data frames corresponding to the to-be-sent data packet.

[0215] Specifically, the second preset length is the byte length of valid data contained in the data field in the Ethernet frame format, and all valid data contained in the to-be-sent data packet is fragmented according to the second preset length.

[0216] Specifically, in step 603, the FC-AE-1553 frame is parsed to determine the frame type of the FC-AE-1553 frame, and preferably, the FC-AE-1553 node data sending method further comprises:

[0217] When the FC-AE-1553 frame is a send command frame, when all valid data contained in the to-be-sent data packet corresponding to the send command frame has been saved to the second memory space, it is determined whether to return a receiving status frame to the source FC-AE-1553 node according to the status inhibit bit of the send command frame.

[0218] Specifically, if the FC-AE-1553 frame is a send command frame, it is determined whether a receiving status frame needs to be returned to the source FC-AE-1553 node by parsing the send command frame; if the send command frame requires a receiving status frame, a status frame needs to be returned to the source FC-AE-1553 node, which is used to indicate that the data packet sent by the source FC-AE-1553 node has been received.

[0219] Specifically, in step 603, the FC-AE-1553 frame is parsed to determine the frame type of the FC-AE-1553 frame, and preferably, the FC-AE-1553 node data sending method further comprises:

[0220] When the FC-AE-1553 frame is a receive command frame, the data packet requested by the receive command frame is determined;

[0221] The data packet requested by the receive command frame is sent to the source FC-AE-1553 node.

[0222] Specifically, when the FC-AE-1553 frame is a receive data command frame, it indicates that the source FC-AE-1553 node NC node receives the data packet sent by other nodes in the hybrid network at this time, and does not send data to other nodes in the hybrid network; after receiving the receive command frame, the data packet requested by the receive command frame is sent to the source FC-AE-1553 node NC node.

[0223] Specifically, in step 603, the FC-AE-1553 frame is parsed to determine the frame type of the FC-AE-1553 frame, and preferably, the FC-AE-1553 node data sending method further comprises:

[0224] When the FC-AE-1553 frame is a to-be-sent data frame, the valid data contained in the to-be-sent data frame is parsed and saved to the second memory space.

[0225] Specifically, when the FC-AE-1553 frame is a to-be-sent data frame, it indicates that the source FC-AE-1553 node NC node actively sends a data frame to the remaining nodes in the hybrid network at this time, and the command frame corresponding to the sent data frame has been sent, as shown in Figure 7 .

[0226] It is worth noting that, as shown in Figure 8 , the source FC-AE-1553 node NT node cannot actively send data, but can only send data to the corresponding remaining nodes in the hybrid network after receiving the command frame sent by the remaining nodes in the hybrid network; at this time, the FC-AE-1553 frame sent by the source FC-AE-1553 node NT node includes a status frame and a data frame, the status frame at this time is a send data frame, indicating that the source FC-AE-1553 node NT node sends data to the remaining nodes in the hybrid network, and the data frame at this time is a to-be-sent data frame, indicating that the source FC-AE-1553 node NT node sends data to the remaining nodes in the hybrid network.

[0227] Specifically, in step 602, if the determined source FC-AE-1553 node is an NT node, in step 603, the FC-AE-1553 node data sending method further includes:

[0228] When the source FC-AE-1553 node is an NT node, the FC-AE-1553 frame is parsed to determine the frame type of the FC-AE-1553 frame.

[0229] When the FC-AE-1553 frame is a sending status frame, it is determined that the sending status frame corresponds to a to-be-sent data packet, a second memory space is opened for the to-be-sent data packet, and all valid data contained in the to-be-sent data packet is saved to the second memory space.

[0230] Specifically, as shown in Figure 8 If the FC-AE-1553 frame is a sending status frame, a second memory space is opened for the sending status frame, and all valid data contained in the subsequent data packet is saved to the second memory space. It should be noted that when the source FC-AE-1553 node NT node sends a data packet to the remaining nodes in the hybrid network, each data packet has independent storage space in the second memory space, which can be executed simultaneously or asynchronously, and is not limited here.

[0231] The FC-AE-1553 node data sending method based on a hybrid network provided by the embodiment of the application, when the source FC-AE-1553 node is an NC node, the type of the source FC-AE-1553 node is obtained by parsing the FC-AE-1553 frame sent by the source FC-AE-1553 node, the function to be implemented by the source FC-AE-1553 node is quickly determined according to the type of the FC-AE-1553 frame, and when the source FC-AE-1553 node sends data, a storage space is opened for the data to facilitate sending.

[0232] Specifically, in step 602, when the source FC-AE-1553 node is an NT node, in step 603, the FC-AE-1553 node data sending method further includes:

[0233] When the source FC-AE-1553 node is an NT node, the FC-AE-1553 frame is parsed to determine the frame type of the FC-AE-1553 frame.

[0234] When the FC-AE-1553 frame is a to-be-sent data frame, the valid data contained in the to-be-sent data frame is parsed and saved to the second memory space.

[0235] Specifically, when the source FC-AE-1553 node NT node sends data to the destination Ethernet node in the hybrid network, if the FC-AE-1553 frame is a data frame to be sent, it means that the command frame for receiving the data packet has been received and the second memory space has been opened for the data packet to be sent. At this time, it is only necessary to parse the valid data contained in the data frame to be sent and save it to the second memory space.

[0236] It is worth noting that the destination Ethernet node cannot actively send command frames. Preferably, when the source FC-AE-1553 node is an NT node, the FC-AE-1553 node data sending method further includes:

[0237] Periodically sending query command frames to the source FC-AE-1553 node; the source FC-AE-1553 node queries whether there are any pending data packets to be sent to the Ethernet node based on the query command frames;

[0238] If the source FC-AE-1553 node has a data packet to be sent to the Ethernet node, the source FC-AE-1553 node sends the data packet to be sent.

[0239] Specifically, the hybrid network-based FC-AE-1553 node data sending method provided by the embodiment of the present invention periodically sends a query command frame to the source FC-AE-1553 node NT node to confirm whether the source FC-AE-1553 node NT node needs to send data to the Ethernet node.

[0240] Compared with the prior art, the communication device for a hybrid network compatible with Ethernet and FC-AE-1553 provided by an embodiment of the present invention uses different modules to implement communication between Ethernet nodes and communication between Ethernet nodes and FC-AE-1553 nodes, thereby enabling not only rapid communication between nodes of the same node type, but also communication between nodes of different node types. Furthermore, a first memory space is used to store valid data contained in data packets sent by Ethernet nodes to FC-AE-1553 nodes, while a second memory space is used to store valid data contained in data packets sent by FC-AE-1553 nodes to Ethernet nodes. This makes the communications independent of each other, improves processing speed and efficiency, and reduces mutual interference.

[0241] Those skilled in the art will appreciate that all or part of the process steps of the above-described embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, such as a magnetic disk, an optical disk, a read-only memory, or a random access memory.

[0242] The above merely describes preferred specific embodiments of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think of changes or replacements within the technical scope disclosed by the present application, which should be covered within the protection scope of the present application.

Claims

1. A communication device compatible with a hybrid network of Ethernet and FC-AE-1553, characterized in that: The communication device includes a plurality of Ethernet interface conversion modules, an Ethernet data exchange module, a protocol processing module, an FC data exchange module, a plurality of FC transceiver modules, a routing information management module and a first memory space; Each Ethernet interface conversion module corresponds to an Ethernet node, is used to receive Ethernet data frames sent by the Ethernet node, and forward the Ethernet data frames to the Ethernet data exchange module or protocol processing module according to the destination node; Each FC transceiver module corresponds to an FC-AE-1553 node, is used to receive FC-AE-1553 frames sent by the FC-AE-1553 node, and forwards them to the FC data exchange module; The FC data exchange module forwards the FC-AE-1553 frame to the FC transceiver module or protocol processing module corresponding to the destination node according to the destination node; The protocol processing module is used to convert Ethernet data frames into and out of FC-AE-1553 frames, sending the converted Ethernet data frames to the Ethernet interface conversion module corresponding to the destination node. The Ethernet interface conversion module then sends the converted Ethernet data frames to the corresponding Ethernet node. Simultaneously, the converted FC-AE-1553 frames are sent to the FC data exchange module. The FC data exchange module then sends the FC-AE-1553 frames to the corresponding FC transceiver module based on the destination node. The FC transceiver module then sends the converted FC-AE-1553 frames to the corresponding FC-AE-1553 node. When the protocol processing module receives the Ethernet data frame forwarded by the Ethernet interface conversion module, the protocol processing module is further configured to: Parsing the valid data contained in the Ethernet data frame and saving it to the first memory space until all the valid data contained in the data packet is obtained; querying the routing mapping table pre-stored in the routing information management module according to the MAC address of the destination node to determine whether the destination node is a network controller NC node or a network terminal NT node; When the destination node is an NT node, encapsulate the valid data contained in the data packet according to the FC-AE-1553 protocol format, obtain the command data sequence corresponding to the data packet, and send the command data sequence to the destination node; When the destination node is an NC node, the valid data contained in the data packet is encapsulated according to the FC-AE-1553 protocol format to obtain a state data sequence corresponding to the data packet, and the state data sequence is sent to the destination node.

2. The communication device according to claim 1, wherein: When any Ethernet node is first connected to the Ethernet interface conversion module of a communication device or when an FC-AE-1553 node is first connected to the FC transceiver module of a communication device, the routing information management module assigns an FC_ID to the Ethernet interface conversion module or FC transceiver module and obtains the MAC address and IP address of the Ethernet node or FC-AE-1553 node; The routing information management module stores the node type and the mapping relationship between the FC_ID, MAC address and IP address of each node in the routing mapping table.

3. The communication device according to claim 1, wherein: The Ethernet interface conversion module includes an Ethernet port, and Ethernet data frames are transmitted between the Ethernet node and the Ethernet interface conversion module through the Ethernet port; The FC transceiver module includes an FC port, and FC-AE-1553 frames are transmitted between the FC-AE-1553 node and the FC transceiver module through the FC port.

4. The communication device according to claim 2, wherein: The communication device further includes a second memory space; When the protocol processing module parses the FC-AE-1553 frame forwarded by the FC data exchange module to obtain valid data contained in the data packet, the data packet is saved in the second memory space for storage.

5. The communication device according to claim 1, wherein: The method of encapsulating the valid data contained in the data packet according to the FC-AE-1553 protocol format to obtain the command data sequence corresponding to the data packet includes: Slice the valid data contained in the data packet according to a first preset length, and determine the number of slices S of the data packet and the valid data corresponding to each slice; According to the number of fragments S of the data packet, the valid data corresponding to each fragment is encapsulated according to the FC-AE-1553 protocol format to obtain the command data sequence corresponding to the data packet.

6. The communication device according to claim 1, wherein: The process of encapsulating the valid data contained in the data packet according to the FC-AE-1553 protocol format to obtain a state data sequence corresponding to the data packet includes: Slice the valid data contained in the data packet according to a first preset length, and determine the number of slices S' of the data packet and the valid data corresponding to each slice; According to the number of fragments S' of the data packet, the valid data corresponding to each fragment is encapsulated according to the FC-AE-1553 protocol format to obtain the state data sequence corresponding to the data packet.

7. The communication device according to claim 4, characterized in that When the protocol processing module receives an FC-AE-1553 frame forwarded by the FC data exchange module, the protocol processing module is further configured to: According to the source ID of the FC-AE-1553 frame, the pre-stored route mapping table is searched to determine whether the source FC-AE-1553 node is an NC node or an NT node; When the source FC-AE-1553 node is an NC node, the FC-AE-1553 frame is parsed to determine the frame type of the FC-AE-1553 frame; when the FC-AE-1553 frame is a send command frame, a to-be-sent data packet corresponding to the send command frame is determined, and all valid data contained in the to-be-sent data packet is saved in the second memory space; Determine whether all valid data contained in the data packet to be sent has been saved in the second memory space; if so, encapsulate all valid data contained in the data packet to be sent according to the Ethernet protocol format, obtain one or more Ethernet data frames corresponding to the data packet to be sent, and send the one or more Ethernet data frames to the Ethernet interface conversion module corresponding to the destination node.

8. The communication device according to claim 7, wherein: The protocol processing module is also used to: When the FC-AE-1553 frame is a send command frame, when all valid data contained in the to-be-sent data packet corresponding to the send command frame has been saved in the second memory space, determining whether to return a receive status frame to the source FC-AE-1553 node based on the status suppression bit of the send command frame; When the FC-AE-1553 frame is a receive command frame, determining a data packet requested by the receive command frame; and sending the data packet requested by the receive command frame to the source FC-AE-1553 node. When the FC-AE-1553 frame is a data frame to be sent, valid data contained in the data frame to be sent is parsed and saved in the second memory space.

9. The communication device according to claim 7, wherein: The protocol processing module is also used to: When the source FC-AE-1553 node is an NT node, the FC-AE-1553 frame is parsed to determine the frame type of the FC-AE-1553 frame; When the FC-AE-1553 frame is a sending state frame, determining a data packet to be sent corresponding to the sending state frame, and saving all valid data contained in the data packet to be sent into the second memory space; When the FC-AE-1553 frame is a data frame to be sent, valid data contained in the data frame to be sent is parsed and saved in the second memory space.

Citation Information

Patent Citations

  • Transmission switch, FC-AE device and Ethernet device communication method

    CN114143295A

  • FC and Ethernet hybrid switching device based on system on chip and method thereof

    CN115484127A