CAN-FC network communication packet loss detection method
By adopting the multi-frame transmission and reception comparison test and detection method in CAN-FC network communication, the problem of packet loss failure in multi-frame communication cannot be effectively eliminated in the prior art, and the reliability of product network communication is improved.
Patent Information
- Application Number
- CN202411810187.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-10
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2044-12-10
AI Technical Summary
The existing single-frame transceiver and reception test methods cannot effectively eliminate packet loss failures during simultaneous communication of multiple frames in CAN-FC network communication, resulting in low reliability of product network communication and high quality risks.
The multi-frame transmission and reception comparison test detection method is adopted to periodically send multi-frame CAN data packets through the CAN excitation source module, and the transmission and reception are compared frame by frame in the CAN excitation source module to ensure the transmission and reception consistency of multi-frame packets.
Effectively detect whether there is FIFO overflow failure in the SR status register of the CAN controller, eliminate unqualified products, and improve product network communication reliability.
Smart Images

Figure CN119728490A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of airborne computer network communication, 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 ability, 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 once, and convert it into a 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 failure, 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 failure, so the product network communication reliability is low and the quality risks are great. Summary of the invention
[0003] In the process of CAN-FC network communication, in order to solve the problem that the single-frame transceiver test method cannot effectively eliminate the packet loss failure when multiple frames communicate 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 reliability of product network communication.
[0004] The embodiment of the present application provides the following technical solution: a CAN-FC network communication packet loss detection method, 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 plurality of CAN data packets to each of the modules under test, and the modules under test process the plurality of 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 general processing module in the conditioning box for data processing, converts the FC optical signal into an electrical signal through the general processing module, and performs data exchange with the simulation card;
[0008] The simulation card returns the received multi-frame electrical signal data to the general processing module for data processing, converts the electrical signal into an FC optical signal through the general processing module, and sends it to the module under test, and the module under test converts the received FC optical signal into an electrical signal in CAN format, and then 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 cumulatively increased by 1 until it is confirmed that the multi-frame CAN data packets are all 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 an 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 a 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 the CAN format electrical signal into the FC optical signal fails or the conversion of the FC optical signal into the CAN format electrical signal fails, the system reports abnormal error information 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 with the prior art, the beneficial effects achieved by at least one of the above technical solutions adopted in the embodiments of this specification include at least the following: In the embodiments of the present invention, the excitation source sends multiple frames of CAN data at the same time each time, and the comparison process of sending and receiving is carried out in the CAN excitation source; the embodiment of the present invention is different from the source end of the comparison test of the traditional method, and can solve the problem of data overflow and packet loss failure inside the product CAN controller when multiple frames of continuous CAN data are sent in parallel. This method ensures that the remote mechanism can be responded to during the conversion of continuous CAN data through FC format data, thereby 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 drawings required for use in the embodiments will be briefly introduced below. 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 paying creative work.
[0017] Figure 1 It is a schematic diagram of the device structure and connection of an embodiment of the present invention;
[0018] Figure 2 is a flow chart of sending test data when the software is running in an embodiment of the present invention;
[0019] Figure 3 It is a flow chart of data reception comparison test when the software is running 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 implementation methods 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 implementation methods, 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 following embodiments and the features in the embodiments can be combined with each other. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work belong to the scope of protection of the present application.
[0022] An embodiment of the present invention provides a CAN-FC network communication packet loss detection method, 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 multiple frames of CAN data packets to each module under test, and the module under test processes the multiple frames of CAN data packets and converts the CAN format electrical signal of the data packet into an FC optical signal; the module under test sends the converted FC optical signal to the general processing module in the conditioning box for data processing, and the FC optical signal is converted into an electrical signal by the general processing module, and is processed with the simulation card Data interaction; the simulation card returns the received multi-frame electrical signal data to the general processing module for data processing, and the general 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, which are converted and processed by a CAN transceiver and a controller, and then a FC functional circuit with FPGA as the core completes the data format conversion, and sends the CAN format data to a general processing module in the form of an FC optical signal. After data processing, the FC functional circuit converts the FC optical signal into CAN format data through FPGA data analysis, and sends it to the CAN excitation source by the CAN controller and transceiver. After data comparison, the detection result is reported by the serial port of the excitation source.
[0025] The embodiment of the present invention aims at the problem of occasional packet loss in the CAN-FC network communication process of aviation airborne products, and proposes a CAN bus multi-frame transceiver comparison detection method based on the transceiver processing mechanism of the data transmission process. It tests the number of tested module products in the chassis, sends multiple frames of CAN data to each module on the CAN bus at the same time, and compares the data sent by the CAN excitation source on the CAN bus with the FC data forwarded / received to the register of the FPGA frame by frame. Through the comparison result of the multi-frame transceiver data, it automatically determines whether the network communication fails during the conversion between the CAN format data and the FC format data according to the comparison result, and determines whether the CAN-FC network communication is normal. It is used to solve the problem that during the single-message communication process, when the CAN protocol chip is transmitting data in FIFO, the CAN protocol chip reads the receiving FIFO, and can correctly read the single message data without overflow packet loss. During multi-message communication, multiple received messages will fill the receiving FIFO of the CAN protocol chip, and the SR status register circuit will overflow, and the product will have a CAN-FC network communication packet loss failure. Through the content of the present invention, the reliability of the CAN-FC network communication of airborne module products is significantly improved.
[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 the embodiment of the present invention, 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. The FC interface module of the module under test sends the converted FC optical signals to the general processing module through an optical fiber channel for data processing, and reports the reception test results through the GPP serial port.
[0028] The embodiment of the present invention also includes: when the conversion of the CAN format electrical signal into the FC optical signal fails or the conversion of the FC optical signal into the CAN format electrical signal fails, the system reports abnormal error information 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.
[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 needs to configure user parameters and select the number of products to be tested when performing a power-on BIT test. The excitation source sends 4 frames of CAN data packets to each module under test. The FC network data received by the front-end infrared search and tracking system (IRST) is compared with the 4 frames of CAN data packets sent. If the 4 frames of 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, and when the number of transmissions is equal to the number of receptions, the platform interface prints that the corresponding module CAN reception test is 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 under test after power-on. If the 4 frames of data received by the internal register of the FPGA 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 in conjunction with 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 CAN excitation source, heat dissipation device, general processing module (GPP), simulation card, power conversion device, conditioning box, and test chassis. Among them, the CAN excitation source provides source end excitation, data reception and transmission comparison, and result reporting for the test equipment. The general processing module is used to realize FC data analysis and processing. The simulation card is used for general processing module data interaction. The power conversion device converts 220V AC into DC28V and DC5V to provide regulated voltage input for each functional component in the conditioning box. There are abundant interfaces on both ends of the conditioning box rear panel and the test chassis to facilitate the signal interaction between the conditioning box and the test chassis. The test chassis provides 4 slots to ensure the simultaneous testing of 4 products.
[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. According to the number of products under test in the test box, enter the corresponding parameters. 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 configured successfully, the CAN excitation source loads the sending strategy and periodically sends 4 frames of CAN data packets to each module under test. After the CAN frame data is converted into AD by the CAN transceiver and CAN controller, the CAN format data is converted into FC format data by the FPGA through the FC function circuit. If the module parameter configuration fails, the parameter configuration mode is restarted.
[0040] Step 3: After the CAN data format is successfully converted into 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 receiving test result is reported through the GPP serial port.
[0041] Step 4. When the conversion from CAN data format to FC data format fails, the system will report abnormal error information through the GPP serial port, display the received data, print the test results of each round of 4 frames, and report the number of cycle tests. According to the user-defined termination, pause, reset and other operations, the program will end.
[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 achieve data interaction with the simulation card.
[0043] b. Data reception comparison test process, see Figure 3 As shown:
[0044] Step 1: The simulation card sends the received 4 frames of status data to the general processing module (GPP) for data processing to realize the conversion of electrical signals into 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 optical signal of FC, the system will report the abnormal error information through the GPP serial port, display the sending data, print the test results of each round of 4 frames, and report the number of cycle tests. According to the user-defined termination, pause, reset and other operations, the program will end.
[0047] Step 4: After the FC interface module successfully converts the received optical signal into a CAN format electrical signal, it sends it 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 4 frames of data are sent and received consistently, 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 is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope 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 plurality of CAN data packets to each of the modules under test, and the modules under test process the plurality of 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 general processing module in the conditioning box for data processing, converts the FC optical signal into an electrical signal through the general processing module, and performs data exchange with the simulation card; The simulation card returns the received multi-frame electrical signal data to the general processing module for data processing, converts the electrical signal into an FC optical signal through the general processing module, and sends it to the module under test, and the module under test converts the received FC optical signal into an electrical signal in CAN format, 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 cumulatively increased by 1 until it is confirmed that the multi-frame CAN data packets are all 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 a FC functional circuit with FPGA as the core, and sends them 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 GPP serial port.
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 to FC optical signal fails or the conversion of FC optical signal to CAN format electrical signal fails, the system reports abnormal error information 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 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.
Citation Information
Patent Citations
Method for transmitting IP and CAN services on FC network
CN107483370A
CAN chip packet loss error code detection device and method
CN115575752A
FC switch test system, test method and medium
CN116827889A