A CAN-FC network communication packet loss detection method

By adopting a multi-frame transceiver comparison test method in CAN-FC network communication, the packet loss problem in multi-frame communication is solved, data consistency is ensured, and the reliability and quality of product network communication are improved.

CN119728490BActive Publication Date: 2025-09-30XIAN AVIATION COMPUTING TECH RES INST OF AVIATION IND CORP OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411810187.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-10
Publication Date
2025-09-30
Estimated Expiration
2044-12-10

AI Technical Summary

Technical Problem

The existing single-frame transmission and reception test method cannot effectively eliminate packet loss failures when multiple frames are communicated simultaneously in CAN-FC network communication, resulting in low product network communication reliability and major quality risks.

Method used

A multi-frame transceiver comparison test method is used. Multi-frame CAN data packets are periodically sent through the CAN excitation source module. The CAN controller and FPGA convert them into FC optical signals. After that, they interact with the simulation card and are compared frame by frame to ensure data consistency and eliminate unqualified products.

Benefits of technology

It improves the CAN-FC network communication reliability of airborne module products, significantly reduces data packet loss failures, and improves product quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119728490B_ABST
    Figure CN119728490B_ABST
Patent Text Reader

Abstract

The present invention provides a CAN-FC network communication packet loss detection method, which relates to the field of airborne computer network communication technology, including: periodically sending multi-frame CAN data packets to each module under test through a CAN excitation source, the module under test converting the CAN electrical signal into an FC optical signal and sending it to a general processing module, the general processing module converting the FC optical signal into an electrical signal and performing data exchange with a simulation card, the general processing module converting the electrical signal into an FC optical signal and sending it to the module under test, which is then converted into a CAN electrical signal by the module under test and sent to a CAN excitation source module; the excitation source module compares the received CAN electrical signal with the electrical signal of the sent multi-frame CAN data packet frame by frame until it is confirmed that the multi-frame CAN data packets are all sent and received consistently. The present invention can effectively detect whether a FIFO overflow fault occurs in the SR status register inside the CAN controller, eliminate defective products, and improve the reliability of product network communication.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of airborne computer network communications, and in particular to a CAN-FC network communication packet loss detection method. Background Art

[0002] In the airborne network communication environment, in order to achieve data interaction and improve the signal anti-interference capability, transmission speed, and transmission distance requirements, the network interface module usually uses CAN-FC composite network communication to achieve point-to-point data interaction. At present, the network interface module communication test is to receive the working status and data information feedback from each functional unit in the front-end system through the CAN bus interface one frame at a time, convert it into the data format, and send it to the FC network through the FC interface. When the network interface module receives multiple frames of data information on the CAN bus at the same time, the CAN controller can sometimes only receive one frame of data. The comparison process of data transmission and reception is performed in the FPGA of the product under test, and the SR status register inside the controller has a receive FIFO overflow fault, which causes data packet loss and system unresponsiveness in the airborne ground joint test system. The current single-frame transceiver test method cannot effectively eliminate the multi-frame communication data packet loss fault, so the product network communication reliability is low and the quality risks are large. Summary of the Invention

[0003] In the CAN-FC network communication process, in order to solve the problem that the single-frame transceiver test method cannot effectively eliminate the packet loss failure when multiple frames are communicating simultaneously, the present invention provides a multi-frame transceiver comparison test detection method, which can effectively detect whether the FIFO overflow failure occurs in the SR status register inside the CAN controller, eliminate unqualified products, and improve the product network communication reliability.

[0004] The present application provides the following technical solution: a method for detecting packet loss in CAN-FC network communication, comprising:

[0005] The conditioning box and the test box are powered on, and product parameter configuration is performed on the CAN excitation source module in the conditioning box according to the number of modules under test in the test box;

[0006] The CAN excitation source module periodically and fixedly sends a multi-frame CAN data packet to each of the modules under test, and the modules under test process the multi-frame CAN data packets and convert the CAN format electrical signals of the data packets into FC optical signals;

[0007] The module under test sends the converted FC optical signal to the universal processing module in the conditioning box for data processing, and the universal processing module converts the FC optical signal into an electrical signal and exchanges data with the simulation card;

[0008] The simulation card returns the received multi-frame electrical signal data to the universal processing module for data processing, and the universal processing module converts the electrical signal into an FC optical signal and sends it to the module under test. The module under test converts the received FC optical signal into a CAN format electrical signal and sends it to the CAN excitation source module;

[0009] The CAN excitation source module compares the received CAN format electrical signal with the electrical signal of the sent multi-frame CAN data packet frame by frame. If the received and sent data are consistent, the number of receptions is accumulated by 1 until it is confirmed that the multi-frame CAN data packets are sent and received consistently.

[0010] According to an embodiment of the present application, the CAN excitation source module periodically and fixedly sends 4 frames of CAN data packets to each of the modules under test through the CAN bus according to the number of the modules under test in the test chassis.

[0011] According to one embodiment of the present application, the module under test receives the multi-frame CAN data packets through a CAN transceiver, performs AD conversion on the multi-frame CAN data packets through a CAN controller, and then converts the CAN format electrical signals into FC optical signals through an FC functional circuit with FPGA as the core and sends them to the general processing module.

[0012] According to an embodiment of the present application, the FC interface module of the module under test sends the converted FC optical signal to the general processing module via the optical fiber channel for data processing, and reports the received test result through the GPP serial port.

[0013] According to one embodiment of the present application, it also includes: when the conversion of a CAN format electrical signal into an FC optical signal fails or the conversion of an FC optical signal into a CAN format electrical signal fails, the system reports an abnormal error message through the GPP serial port, displays the received data and the received data test results, and reports the number of cycle tests at the same time, and ends the program operation according to the user definition.

[0014] According to one embodiment of the present application, it also includes: converting 220V AC power into DC5V through the power conversion module in the conditioning box to provide a regulated voltage input for the CAN excitation source module, and converting 220V AC power into DC28V to provide a regulated voltage input for the general processing module.

[0015] Compared to existing technologies, the at least one technical solution employed in the embodiments of this specification achieves at least the following beneficial effects: In this embodiment, the excitation source simultaneously transmits multiple frames of CAN data, and the comparison process between transmission and reception is performed within the CAN excitation source. Unlike conventional methods, the source end of the comparison test resolves the issue of data overflow and packet loss within the product's CAN controller when multiple consecutive frames of CAN data are transmitted in parallel. This method ensures that remote devices can respond to continuous CAN data during the FC format conversion process, improving product quality and network communication reliability. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0017] Figure 1 This is a schematic diagram of the device structure and connection of an embodiment of the present invention;

[0018] Figure 2 This is a flow chart of test data transmission during software operation according to an embodiment of the present invention;

[0019] Figure 3 This is a flow chart of data reception comparison testing during software operation in an embodiment of the present invention. DETAILED DESCRIPTION

[0020] The embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0021] The following describes the embodiments of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The present application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that, in the absence of conflict, the features in the following embodiments and embodiments can be combined with each other. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without making creative work are within the scope of protection of this application.

[0022] An embodiment of the present invention provides a method for detecting packet loss in CAN-FC network communication, comprising:

[0023] The conditioning box and the test box are powered on, and the product parameters of the CAN excitation source module in the conditioning box are configured according to the number of modules under test in the test box; the CAN excitation source module periodically and fixedly sends multi-frame CAN data packets to each module under test, and the module under test processes the multi-frame CAN data packets and converts the CAN format electrical signals of the data packets into FC optical signals; the module under test sends the converted FC optical signals to the general processing module in the conditioning box for data processing, and the general processing module converts the FC optical signals into electrical signals and compares them with the simulation card. Data interaction; the simulation card returns the received multi-frame electrical signal data to the universal processing module for data processing, and the universal processing module converts the electrical signal into an FC optical signal and sends it to the module under test, and the module under test converts the received FC optical signal into a CAN format electrical signal, and then sends it to the CAN excitation source module; the CAN excitation source module compares the received CAN format electrical signal with the electrical signal of the sent multi-frame CAN data packet frame by frame. If the received and sent data are consistent, the number of receptions is accumulated and added by 1 until it is confirmed that the multi-frame CAN data packets are sent and received consistently.

[0024] The main principle of the method of the embodiment of the present invention is that a CAN excitation source sends multiple frames of CAN data. After conversion and processing by the CAN transceiver and controller, the FC functional circuit with FPGA as the core completes the data format conversion and sends the CAN format data to the general processing module in the form of FC optical signals. After data processing, the FC functional circuit uses FPGA data parsing to convert the FC optical signals into CAN format data. The CAN controller and transceiver send the data to the CAN excitation source. After data comparison, the serial port of the excitation source reports the detection results.

[0025] The present invention addresses the occasional packet loss problem that occurs during CAN-FC network communication in aircraft-mounted products. Based on the data transmission and reception processing mechanism, a CAN bus multi-frame transmission and reception comparison detection method is proposed. This method tests the number of tested modules within a chassis, simultaneously sending multiple frames of CAN data to each module on the CAN bus. The data sent by the CAN excitation source on the CAN bus is then compared frame by frame with the FC data forwarded / received by the FPGA register. Based on the results of this multi-frame transmission and reception data comparison, the method automatically determines whether network communication failures occurred during the conversion between CAN format data and FC format data, thereby confirming the normal operation of the CAN-FC network communication. This method addresses the issue of single-message communication, where the CAN protocol chip reads the receive FIFO during FIFO data transmission and correctly reads the single message data without overflow and packet loss. During multi-message communication, multiple received messages can fill the CAN protocol chip's receive FIFO, causing the SR status register circuit to overflow and resulting in CAN-FC network communication packet loss. This invention significantly improves the reliability of CAN-FC network communication in aircraft-mounted module products.

[0026] In a specific implementation of the embodiment of the present invention, the CAN excitation source module periodically and fixedly sends 4 frames of CAN data packets to each of the modules under test through the CAN bus according to the number of the modules under test in the test chassis.

[0027] In this embodiment of the present invention, the module under test receives the multi-frame CAN data packets via a CAN transceiver, performs A / D conversion on the multi-frame CAN data packets via a CAN controller, and then, through an FC functional circuit based on an FPGA, converts the CAN-formatted electrical signals into FC optical signals, which are then transmitted to the general processing module. The FC interface module of the module under test transmits the converted FC optical signals to the general processing module via a fiber optic channel for data processing, and reports the received test results via the GPP serial port.

[0028] An embodiment of the present invention also includes: when the conversion of a CAN format electrical signal into an FC optical signal fails or the conversion of an FC optical signal into a CAN format electrical signal fails, the system reports an abnormal error message through the GPP serial port, displays the received data and the received data test results, and reports the number of cycle tests, and ends the program operation according to the user's definition.

[0029] The embodiment of the present invention also includes: converting 220V AC power into DC5V through the power conversion module in the conditioning box to provide a regulated voltage input for the CAN excitation source module, and converting 220V AC power into DC28V to provide a regulated voltage input for the general processing module.

[0030] In specific implementation, the CAN-FC network communication packet loss detection method of the embodiment of the present invention includes a CAN transceiver test platform and a CAN comparison test platform.

[0031] The CAN transceiver test platform must first configure user parameters and select the number of products to be tested when performing a power-on BIT test. The excitation source sends a fixed 4-frame CAN data packet for each module under test. The FC network data received by the front-end infrared search and tracking system (IRST) is compared with the 4-frame CAN data packets sent. If the 4-frame CAN data of each module under test are normal, the corresponding module CAN transmission test is output as normal. Otherwise, the corresponding module CAN transmission test error is output. When the data received by the CAN bus is consistent with the data sent by the front-end infrared search and tracking system (IRST) in the comparison test, the number of receptions is increased by 1. When the number of transmissions is equal to the number of receptions, the platform interface prints the corresponding module CAN reception test as normal. Otherwise, the corresponding module reception test error is reported.

[0032] The CAN comparison test platform sends 4 frames of CAN data each time according to the number of products being tested after power-on. If the 4 frames of data received by the FPGA internal register and the 4 frames of CAN data sent by each module are correct in each frame data comparison test, the CAN comparison test platform interface will print "Data comparison correct", otherwise it will report "Received data comparison error".

[0033] like Figure 1-Figure 3 As shown, the present invention is further described below with reference to the accompanying drawings:

[0034] 1. Hardware composition

[0035] The entire test equipment is mainly composed of a conditioning box and a test chassis, such as Figure 1 As shown, it mainly includes a CAN excitation source, a heat sink, a general processing module (GPP), a simulation card, a power conversion device, a conditioning box, and a test chassis. The CAN excitation source provides source excitation for the test equipment, data transmission and reception comparison, and result reporting. The GPP is used to implement FC data analysis and processing. The simulation card is used for data exchange with the GPP. The power conversion device converts 220V AC power to DC28V and DC5V, providing regulated voltage input for various functional components in the conditioning box. The rear panel of the conditioning box and both ends of the test chassis have a variety of interfaces to facilitate signal exchange between the conditioning box and the test chassis. The test chassis provides four slots to ensure that four products can be tested simultaneously.

[0036] 2. Software Design

[0037] a. Test data sending process, such as Figure 2 As shown:

[0038] Step 1: After the conditioning box and the product under test are powered on, the CAN excitation source must first configure the product parameters when starting the BIT test. Enter the corresponding parameters based on the number of products under test in the test box. 1 corresponds to 1 product, 2 corresponds to 2 products, 3 corresponds to 3 products, and 4 corresponds to 4 products.

[0039] Step 2: After the module parameters are successfully configured, the CAN excitation source loads the transmission strategy and periodically sends four CAN data packets to each module under test. The CAN frame data is converted from A to D by the CAN transceiver and CAN controller. After passing through the FC function circuit, the FPGA converts the CAN format data into FC format data. If the module parameter configuration fails, the parameter configuration mode is restarted.

[0040] Step 3: After the CAN data format is successfully converted to the FC data format, the converted FC optical signal is sent to the general processing module (GPP) through the optical fiber channel for data processing, and the test results are reported through the GPP serial port.

[0041] Step 4. When the CAN data format conversion to FC data format fails, the system will report an abnormal error message through the GPP serial port, display the received data, print the test results of each round of 4 frames, and report the number of loop tests. The program will end according to the user-defined termination, pause, reset and other operations.

[0042] Step 5: After processing the received FC optical signal data, the general processing module (GPP) converts the optical signal into an electrical signal to realize data interaction with the simulation card.

[0043] b. Data reception comparison test process, see Figure 3 As shown:

[0044] Step 1: The emulation card sends the received 4 frames of status data to the general processing module (GPP) for data processing to achieve conversion from electrical signals to optical signals.

[0045] Step 2: If the GPP data conversion is successful, the FC signal is sent to the system FC interface module via the fiber channel, and the test result is reported and sent through the GPP serial port.

[0046] Step 3. If the general processing module GPP module fails to convert the electrical signal into the FC optical signal, the system will report the abnormal error information through the GPP serial port, display the sent data, print the test results of each round of 4 frames, and report the number of cycle tests. The program will end according to the user-defined termination, pause, reset and other operations.

[0047] Step 4: After successfully converting the received optical signal into a CAN format electrical signal, the FC interface module sends the signal to the CAN excitation source via the controller and transceiver on the CAN bus.

[0048] Step 5. After receiving the CAN message, the CAN excitation source will compare it with the sent CAN data frame by frame. If the sent and received data are consistent, the number of receptions will increase by 1. If the sent and received data of the four frames are consistent, the CAN excitation source serial port prints that the CAN reception test is correct. Otherwise, the CAN excitation source serial port prints that the CAN reception test is wrong.

[0049] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.

Claims

1. A CAN-FC network communication packet loss detection method, characterized in that: include: The conditioning box and the test box are powered on, and product parameter configuration is performed on the CAN excitation source module in the conditioning box according to the number of modules under test in the test box; The CAN excitation source module periodically and fixedly sends a multi-frame CAN data packet to each of the modules under test, and the modules under test process the multi-frame CAN data packets and convert the CAN format electrical signals of the data packets into FC optical signals; The module under test sends the converted FC optical signal to the universal processing module in the conditioning box for data processing, and the universal processing module converts the FC optical signal into an electrical signal and exchanges data with the simulation card; The simulation card returns the received multi-frame electrical signal data to the universal processing module for data processing, and the universal processing module converts the electrical signal into an FC optical signal and sends it to the module under test. The module under test converts the received FC optical signal into a CAN format electrical signal and sends it to the CAN excitation source module; The CAN excitation source module compares the received CAN format electrical signal with the electrical signal of the sent multi-frame CAN data packet frame by frame. If the received and sent data are consistent, the number of receptions is accumulated by 1 until it is confirmed that the multi-frame CAN data packets are sent and received consistently.

2. The CAN-FC network communication packet loss detection method according to claim 1, characterized in that: The CAN excitation source module periodically and fixedly sends 4 frames of CAN data packets to each of the modules under test through the CAN bus according to the number of the modules under test in the test chassis.

3. The CAN-FC network communication packet loss detection method according to claim 1, characterized in that: The module under test receives the multi-frame CAN data packets through a CAN transceiver, performs AD conversion on the multi-frame CAN data packets through a CAN controller, and then converts the CAN format electrical signals into FC optical signals through an FC functional circuit with FPGA as the core, which are sent to the general processing module.

4. The CAN-FC network communication packet loss detection method according to claim 1, characterized in that: The FC interface module of the module under test sends the converted FC optical signal to the general processing module via the optical fiber channel for data processing, and reports the received test result through the serial port of the general processing module.

5. The CAN-FC network communication packet loss detection method according to claim 4, characterized in that: Also includes: When the conversion of CAN format electrical signal into FC optical signal fails or the conversion of FC optical signal into CAN format electrical signal fails, the system reports abnormal error information through the serial port of the general processing module, displays the received data and the received data test results, and reports the number of cycle tests, and ends the program operation according to the user definition.

6. The CAN-FC network communication packet loss detection method according to claim 4, characterized in that: Also includes: The power conversion module in the conditioning box converts 220V AC power into DC5V to provide a regulated voltage input for the CAN excitation source module, and converts 220V AC power into DC28V to provide a regulated voltage input for the general processing module.