User-defined ICD configuration and data acquisition system and method based on network communication

By configuring custom ICD and interface configuration files in the aviation industry drone communication system, using UUID binding and small-end conversion, the problem of poor decoding and encoding universality caused by differences in the data transmission bus interface definition is solved, and the system is improved Flexibility and efficiency enable code flexibility and display control scalability.

CN119135752APending Publication Date: 2024-12-13NANJING XINCHUANHUI ELECTRONIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411256082.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-09
Publication Date
2024-12-13

AI Technical Summary

Technical Problem

In the prior art, there are differences in the definition of data transmission bus interface control file (ICD) in the aviation industry unmanned aerial vehicle communication system, resulting in poor universality and flexibility of data decoding and encoding. When the software communication protocol is changed, the code needs to be reconstructed. Moreover, the size and end modes of different bus protocols are different, resulting in low encoding and decoding efficiency.

Method used

Provide a custom ICD configuration and data acquisition system and method based on network communication. It configures custom ICDs through user requirements to generate ICD configuration files and interface configuration files, and uses unique UUID to bind field attributes to realize data parsing and encoding, and supports different Data type and size conversion, dynamically adapt communication data.

Benefits of technology

It improves the flexibility and versatility of the software, solves the problem of code reconstruction when the software communication protocol changes, and realizes framework-level multiplexing and display control system scalability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119135752A_ABST
    Figure CN119135752A_ABST
Patent Text Reader

Abstract

The invention discloses a user-defined ICD configuration and data acquisition system and method based on network communication, and belongs to the technical field of information transmission, and the method comprises the steps: configuring a user-defined ICD according to a user demand, and generating an ICD configuration file; generating an interface configuration file according to the ICD configuration file; reading an ICD configuration file, and storing field attributes in a memory; receiving the data information, splitting the data information to obtain a frame identifier, matching a corresponding ICD configuration file in a memory through the frame identifier, and analyzing the data information according to the field attribute of the corresponding ICD configuration file; the interface configuration file is read to generate the display interface, the analyzed field value is obtained by matching the UUID of the current field, the field value is displayed in the display method of the interface configuration file by matching the display type of the current field, and the problem of code reconstruction when a software communication protocol is changed is solved by configuring the user-defined ICD of network communication. And the flexibility and the universality are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of information transmission, and in particular to a network communication-based custom ICD configuration and data acquisition system and method. Background Art

[0002] With the development of information technology and computer technology, bus technology has been widely promoted and applied. Compared with traditional information transmission technology, bus has the characteristics of information digitization and interface standardization. The use of bus technology can greatly simplify the design of the system, so it has developed rapidly in recent years. Since the signal types and parameter types contained in the avionics bus simulator system are very complex, and in order to collect comprehensive functions and facilitate the collection of data of multiple bus types and non-bus types, the bus simulator system contains most of the existing signal types, which has caused great difficulties in the design and implementation of the interface display module and bus communication module code of the bus simulator system, and once the interface control document (ICD) ICD changes, the interface display module and bus communication module code need to be rewritten.

[0003] Aircraft communication systems are also constantly innovating and improving to meet the needs of different fields. Therefore, the development of aviation industry UAV communication systems will continue to make progress in intelligence, safety, efficiency, etc., and the communication system between aircraft and ground control stations, other aircraft, air traffic control, etc. has become particularly complex and important. In the development of some UAV software such as flight control software, data processing software, data analysis software, console software, etc., there are differences in the interface control documents (ICD) of different data transmission buses during the data communication protocol. In the process of software development, the ICD of current network communication is defined according to the current data communication needs, resulting in poor versatility and flexibility of data decoding and encoding. Summary of the invention

[0004] In order to solve the problems in the prior art, the present invention provides a network communication-based customized ICD configuration and data acquisition system and method.

[0005] In one aspect, a method for customizing ICD configuration and data collection based on network communication is provided, the method comprising:

[0006] S1: Configure custom ICD according to user requirements and generate ICD configuration files;

[0007] S2: Generate an interface configuration file according to the ICD configuration file, and the field of the ICD configuration file is bound to the field of the interface configuration file through a unique UUID;

[0008] S3: Read the ICD configuration file and save the field attributes in memory;

[0009] S4: Receive data information and split it to obtain a frame identifier, match the corresponding ICD configuration file in the memory through the frame identifier, and parse the data information according to the field attributes of the corresponding ICD configuration file;

[0010] S5: Read the interface configuration file to generate a display interface, obtain the parsed field value by matching the UUID of the current field, and display the field value in the display method of the interface configuration file by matching the current field display type.

[0011] Furthermore, the fields in the ICD configuration file include: current frame identifier, message ID, message length, heartbeat word, data content, data check; each field in the ICD configuration file contains configuration inherent attributes: UUID, data type, field length, enumeration value, field offset, bit length, bit offset, big and small end, data range, unit;

[0012] When adding fields in the ICD configuration file, UUID, data type, field length, field offset, bit length, and bit offset are automatically generated, and big and small ends, data range, enumeration value, and unit are manually selected and configured.

[0013] Furthermore, the step of parsing the data information according to the field attributes of the corresponding ICD configuration file in S4 specifically includes:

[0014] The data information is split according to the data type, field length, field offset, bit length, and bit offset in the field attributes of the ICD configuration file, and the split data is processed and assigned according to the big and small ends to obtain the parsed field value.

[0015] Furthermore, the display types of the interface configuration file include: a decimal value display method, a hexadecimal value display method, an enumeration value display method, a progress bar display method, a waveform display method, and a switch display method.

[0016] Furthermore, each configuration item of the interface configuration file includes inherent attributes: UUID, display type, display position, enumeration value, data range, unit; in the process of selecting a field, UUID and display type are automatically generated, and data range, unit, enumeration value, and display position are manually configured.

[0017] Furthermore, the ICD configuration file and the interface configuration file are in XML or JSON format.

[0018] Furthermore, the method further comprises:

[0019] S6: The data packet to be sent needs to match the custom ICD of the ICD configuration file through the frame identifier, and the data packet to be sent is serialized in the custom ICD format and then sent.

[0020] Furthermore, the data information to be sent is serialized in a custom ICD format and then sent including:

[0021] According to the end mode attribute in the matching ICD configuration file, the data information big-endian and small-endian conversion interface is obtained, each field in the ICD configuration file is traversed in turn, the physical quantity is converted into the original value according to the attribute of each field in the ICD configuration file, the end mode conversion interface is called, the original value is converted into binary data, a binary data packet is generated, and the binary data packet is sent through the network.

[0022] In another aspect, a network communication-based custom ICD configuration and data acquisition system is provided, the system comprising:

[0023] A custom ICD configuration file configuration module is used to configure a custom ICD according to user requirements and generate an ICD configuration file;

[0024] An interface configuration file generation module, used to generate an interface configuration file according to the ICD configuration file, and the field of the ICD configuration file is bound to the field of the interface configuration file through a unique UUID;

[0025] A first reading module is used to read the ICD configuration file and save the field attributes in a memory;

[0026] A receiving module, used for receiving data information sent by the bus system;

[0027] The first matching module is used to split the received data information to obtain a frame identifier, and match the corresponding ICD configuration file in the memory through the frame identifier;

[0028] A decoding module, used to parse the data information according to the field attributes of the corresponding ICD configuration file;

[0029] The second reading module is used to read the interface configuration file to generate a display interface, and traverse the interface configuration file to match the UUID of the interface configuration file with the UUID of the ICD configuration file to obtain the parsed field value;

[0030] The display module is used to display the field value in the display method of the interface configuration file according to the matching current field display type.

[0031] Furthermore, the system further comprises:

[0032] A data loading module, used to obtain a data packet with format information stored in advance;

[0033] The second matching module is used to match the data packet to be sent with the custom ICD of the ICD configuration file through the frame identifier;

[0034] The encoding module is used to obtain the data information big-small end conversion interface according to the end mode attribute in the matching ICD configuration file, traverse each field in the ICD configuration file in turn, convert the physical quantity into the original value according to the attribute of each field in the ICD configuration file, call the end mode conversion interface, convert the original value into binary data, and generate a binary data packet;

[0035] The sending module sends the binary data packet through a network.

[0036] The beneficial effects of the technical solution provided by the embodiment of the present invention are: in the present invention, a custom ICD is configured according to user needs and an ICD configuration file is generated, an interface configuration file is generated through the ICD configuration file, and custom data decoding and encoding are implemented by configuring the custom ICD for network communication, thereby solving the problem of reconstructing the code when the software communication protocol changes, and improving the flexibility and versatility of the software.

[0037] In addition, after receiving the data information, the system matches the custom ICD by matching the frame identifier, deserializes the received data information according to the field attributes of the custom ICD configuration, updates the data display, combines the information of the custom ICD internal data items with the information of the interface controls, and automatically establishes a data channel between the custom ICD internal data items and the interface controls to achieve framework-level reuse. In addition, by replacing the interface configuration file, the display control system can be reused between different projects, which is more scalable. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0039] Figure 1 It is a flow chart of a method for customizing ICD configuration and data collection based on network communication provided by the present invention;

[0040] Figure 2 It is a flow chart of generating an ICD configuration file and an interface configuration file provided by the present invention;

[0041] Figure 3 It is a data information analysis flow chart provided by the present invention;

[0042] Figure 4 The present invention provides a schematic diagram of a network communication-based custom ICD configuration and data acquisition system. DETAILED DESCRIPTION

[0043] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0044] In order to make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.

[0045] Embodiment 1

[0046] It should be noted that in the current aviation industry, there are different data transmission buses in the software of many airborne systems. During the data transmission process, the airborne software needs to encode the source data into a data stream form that can be transmitted by the bus. The software that receives the data through the communication system forwarding needs to decode the received binary data stream, deserialize the binary data, and parse it into the structure required by the user. In the current airborne software, the interface control documents (ICD) of different data transmission buses have different definitions, and the size of some fields should also be appropriately converted according to the source data. Therefore, the encoding and decoding of the data are also different, and the data needs to be converted through multiple groups of different interface configuration files in the entire communication system, which leads to poor versatility and flexibility of data encoding and decoding and low efficiency. In the design of the interface configuration file, due to the limitations of bus protocol, data range, data type, resolution or unit, the physical quantity often needs to be converted in a certain form before it can be transmitted through the data bus. Therefore, the conversion of physical quantity and data quantity needs to be supported in the data encoding and decoding process. In current airborne systems, different bus protocols often use different byte orders, and some fields need to use big-endian or little-endian. Fixed protocol configurations cannot be dynamically converted during software execution, and often require software code modification to implement. When the amount of data is large, the number of fields that need to be converted also increases. Therefore, when the amount of data is large, a custom ICD is configured. By configuring different field attributes, the data can be efficiently encoded through the currently configured attributes during the encoding process.

[0047] The present invention provides a method for customizing ICD configuration and data acquisition based on network communication, comprising the following steps:

[0048] Step (1): Configure a custom ICD according to user requirements and generate an ICD configuration file.

[0049] It should be noted that this configuration method supports all data types, such as char, unsigned char, short, unsigned short, int, unsigned int, long, unsigned long, etc. This configuration method supports bit-by-bit configuration, configuring single or multiple bits, and automatically filling up if the bits are less than 8 bits during the configuration process. The ICD configuration file contains the main fields such as the current frame identifier, message ID, message length, heartbeat word, data content, data check, etc. Each field in the ICD configuration file contains configuration inherent attributes, such as UUID (Universally Unique IDentifier), data type, field length, enumeration value, field offset, bit length, bit offset, big and small end, data range, unit, etc. In the process of adding fields, some attributes such as UUID, data type, field length, field offset, bit length, bit offset will be automatically generated, and some attributes need to be manually selected and configured, including big and small end, data range, enumeration value, unit, etc. Save the custom ICD configuration information to a file, and the supported file formats include XML or JSON.

[0050] Step (2): Generate an interface configuration file based on the ICD configuration file, and the fields of the ICD configuration file are bound to the fields of the interface configuration file through a unique UUID.

[0051] It should be noted that the interface configuration file contains descriptions of ICD data, display type and other information; the interface configuration file configures the interface display content according to the user interface display requirements. The prerequisite for this method is that the custom ICD configuration has been completed. This configuration supports most basic data display types, such as: decimal value display method, hexadecimal value display method, enumeration value display method, progress bar display method, waveform display method, switch display method, etc. By selecting the configured data field, manually configure the display method of the field. Each selected configuration item contains inherent attributes such as UUID, display type, display position, enumeration value, data range, unit, etc. In the process of selecting the field, some attributes such as UUID and display type are automatically generated. The UUID of the interface configuration file is associated with the currently selected UUID of the configured ICD configuration file. Some attributes need to be manually configured, including data range, unit, enumeration value, display position, etc. The file formats supported by the interface configuration file include XML or JSON.

[0052] Step (3): First read the ICD configuration file and save the field attributes in memory.

[0053] Step (4): Receive data information and split it to obtain the frame identifier, match the corresponding ICD configuration file in the memory through the frame identifier, and parse the data information according to the field attributes of the corresponding ICD configuration file; read the interface configuration file to generate a display interface, traverse the interface configuration file, obtain the parsed field value by matching the UUID of the current field, and display the field value using the display method of the interface configuration file by matching the current field display type.

[0054] It should be noted that the display control system and the bus communication system exchange data information through network communication. For the binary data received by the display control system, it is necessary to split the original data according to the data frame format provided by the ICD configuration file, obtain the frame identifier, match the corresponding ICD configuration file by matching the frame identifier, and then parse the binary data. The binary data is split according to the attribute data type, field length, field offset, bit length, and bit offset of the configuration field, and the split data is processed and assigned according to the configured big and small ends, the field data conversion is performed, and the parsed results are sent to the display module.

[0055] The display module reads the interface configuration file to generate a display interface, and the display module traverses the interface configuration file, obtains the parsed field value by matching the UUID of the current field after receiving the data, and displays the field value in the display method of the interface configuration file by matching the current field display type.

[0056] Among them, the decimal value display method is to obtain the parsed field value by matching UUID, and display the parsed value in decimal value format; the hexadecimal value display method is to obtain the parsed field value by matching UUID, and display the parsed value in hexadecimal format; the enumeration value display method is to obtain the parsed field value by matching UUID, and display the parsed value in enumeration value format by matching the configured enumeration value; the progress bar display method is to obtain the parsed field value by matching UUID, and display the parsed value in progress bar format; the waveform display method is to obtain the parsed field value by matching UUID, and periodically plot the parsed value on the waveform graph; the switch type display method is to obtain the parsed field value by matching UUID, and display the parsed value in switch quantity format.

[0057] Step (5): The data packet to be sent needs to match the custom ICD of the ICD configuration file through the frame identifier, and the data packet to be sent is serialized in the format of the custom ICD and then sent.

[0058] According to the end mode attribute in the matching ICD configuration file, the data information big-small end conversion interface is obtained, each field in the ICD configuration file is traversed in turn, the physical quantity is converted into the original value according to the attribute of each field in the ICD configuration file, the end mode conversion interface is called, the original value is converted into binary data, a binary data packet is generated, and the binary data packet is sent through the network.

[0059] It should be noted that the program code for implementing the method of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that when the program code is executed by the processor or controller, the functions / operations specified in the flow chart and / or block diagram are implemented.

[0060] It is worth mentioning that by configuring the custom ICD for network communication and implementing custom data decoding and encoding, the problem of reconstructing the code when the software communication protocol changes is solved, thus improving the flexibility and versatility of the software.

[0061] Secondly, different bus protocols often use different endian and little-endian modes to store data, and little-endian conversion is required during the encoding and decoding process. If the big-endian and little-endian modes of the data change, the communication data can be dynamically adapted by modifying the big-endian and little-endian attribute configurations in the ICD configuration file to improve the efficiency of encoding and decoding formatted data in the airborne system.

[0062] In addition, the information of the custom ICD internal data items and the interface controls are combined to automatically establish a data channel between the custom ICD internal data items and the interface controls to achieve framework-level reuse. The display control system can be reused between different projects by replacing the interface configuration file, which is more scalable than traditional process-oriented systems.

[0063] Embodiment 2

[0064] A custom ICD configuration and data acquisition system based on network communication is used to implement a custom ICD configuration and data acquisition method based on network communication in Example 1. The system includes a custom ICD configuration file configuration module, an interface configuration file generation module, a first reading module, a receiving module, a first matching module, a decoding module, a second reading module, a display module, a data loading module, a second matching module, an encoding module and a sending module.

[0065] The custom ICD configuration file configuration module is used to configure the custom ICD according to user needs and generate an ICD configuration file; the interface configuration file generation module is used to generate an interface configuration file according to the ICD configuration file, and the fields of the ICD configuration file are bound to the fields of the interface configuration file through a unique UUID; the first reading module is used to read the ICD configuration file and save the field attributes in the memory; the receiving module is used to receive the data information sent by the bus system; the first matching module is used to split the received data information to obtain the frame identifier, and match the corresponding ICD configuration file in the memory through the frame identifier; the decoding module is used to parse the data information according to the field attributes of the corresponding ICD configuration file; the second reading module is used to read the interface configuration file to generate a display interface, and traverse the interface configuration file to obtain the parsed field value by matching the UUID of the current field; the display module is used to display the field value in the display method of the interface configuration file according to matching the current field display type.

[0066] The data loading module is used to obtain a pre-stored data packet with format information; the second matching module is used to match the data packet to be sent with the custom ICD of the ICD configuration file through the frame identifier; the encoding module is used to obtain the data information big-endian conversion interface according to the end mode attribute in the matching ICD configuration file, traverse each field in the ICD configuration file in turn, convert the physical quantity into the original value according to the attribute of each field in the ICD configuration file, call the end mode conversion interface, convert the original value into binary data, and generate a binary data packet; the sending module sends the binary data packet through the network.

[0067] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0068] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for customizing ICD configuration and data collection based on network communication, characterized in that: The method comprises: S1: Configure custom ICD according to user requirements and generate ICD configuration files; S2: Generate an interface configuration file according to the ICD configuration file, and the field of the ICD configuration file is bound to the field of the interface configuration file through a unique UUID; S3: Read the ICD configuration file and save the field attributes in memory; S4: Receive data information and split it to obtain a frame identifier, match the corresponding ICD configuration file in the memory through the frame identifier, and parse the data information according to the field attributes of the corresponding ICD configuration file; S5: Read the interface configuration file to generate a display interface, obtain the parsed field value by matching the UUID of the current field, and display the field value in the display method of the interface configuration file by matching the current field display type.

2. The method for customizing ICD configuration and data collection based on network communication according to claim 1, characterized in that: The fields in the ICD configuration file include: current frame identifier, message ID, message length, heartbeat word, data content, data check; each field in the ICD configuration file contains configuration inherent attributes: UUID, data type, field length, enumeration value, field offset, bit length, bit offset, big and small end, data range, unit; When adding fields in the ICD configuration file, UUID, data type, field length, field offset, bit length, and bit offset are automatically generated, and big and small ends, data range, enumeration value, and unit are manually selected and configured.

3. The method for customizing ICD configuration and data acquisition based on network communication according to claim 2, characterized in that: The step S4 of parsing the data information according to the field attributes of the corresponding ICD configuration file specifically includes: The data information is split according to the data type, field length, field offset, bit length, and bit offset in the field attributes of the ICD configuration file, and the split data is processed and assigned according to the big and small ends to obtain the parsed field value.

4. The method for customizing ICD configuration and data acquisition based on network communication according to claim 1, characterized in that: The display types of the interface configuration file include: a decimal value display method, a hexadecimal value display method, an enumeration value display method, a progress bar display method, a waveform display method, and a switch display method.

5. The method for customizing ICD configuration and data collection based on network communication according to claim 4, characterized in that: Each configuration item of the interface configuration file includes inherent attributes: UUID, display type, display position, enumeration value, data range, unit; in the process of selecting a field, UUID and display type are automatically generated, and data range, unit, enumeration value, and display position are manually configured.

6. The method for customizing ICD configuration and data collection based on network communication according to claim 1, characterized in that: The ICD configuration file and the interface configuration file are in XML or JSON format.

7. The method for customizing ICD configuration and data collection based on network communication according to claim 2, characterized in that: The method further comprises: S6: The data packet to be sent needs to match the custom ICD of the ICD configuration file through the frame identifier, and the data packet to be sent is serialized in the custom ICD format and then sent.

8. The method for customizing ICD configuration and data collection based on network communication according to claim 7, characterized in that: The data information to be sent is serialized in the custom ICD format and sent including: According to the end mode attribute in the matching ICD configuration file, the data information big-endian and small-endian conversion interface is obtained, each field in the ICD configuration file is traversed in turn, the physical quantity is converted into the original value according to the attribute of each field in the ICD configuration file, the end mode conversion interface is called, the original value is converted into binary data, a binary data packet is generated, and the binary data packet is sent through the network.

9. A network communication-based custom ICD configuration and data acquisition system, characterized in that: The system comprises: A custom ICD configuration file configuration module is used to configure a custom ICD according to user requirements and generate an ICD configuration file; An interface configuration file generation module, used to generate an interface configuration file according to the ICD configuration file, and the field of the ICD configuration file is bound to the field of the interface configuration file through a unique UUID; A first reading module is used to read the ICD configuration file and save the field attributes in a memory; A receiving module, used for receiving data information sent by the bus system; The first matching module is used to split the received data information to obtain a frame identifier, and match the corresponding ICD configuration file in the memory through the frame identifier; A decoding module, used to parse the data information according to the field attributes of the corresponding ICD configuration file; The second reading module is used to read the interface configuration file to generate a display interface, and obtain the parsed field value by matching the UUID of the current field; The display module is used to display the field value in the display method of the interface configuration file according to the matching current field display type.

10. The network communication-based custom ICD configuration and data acquisition system according to claim 9, characterized in that: The system further comprises: A data loading module, used to obtain a pre-stored data packet with format information; The second matching module is used to match the data packet to be sent with the custom ICD of the ICD configuration file through the frame identifier; The encoding module is used to obtain the data information big-small end conversion interface according to the end mode attribute in the matching ICD configuration file, traverse each field in the ICD configuration file in turn, convert the physical quantity into the original value according to the attribute of each field in the ICD configuration file, call the end mode conversion interface, convert the original value into binary data, and generate a binary data packet; The sending module sends the binary data packet through a network.