A signal partition mask based subscription bus data transceiving method and system

By using a subscription-based bus data transmission and reception method with signal partitioning masks, data packets are hierarchically decomposed and bitwise AND operations are performed using partitioning masks. This solves the problem of useless data transmission in aircraft electromechanical systems and enables efficient and accurate data distribution and cross-platform applications.

CN119652696BActive Publication Date: 2025-12-26XIAN AIRCRAFT DESIGN INST OF AVIATION IND OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411873322.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-18
Publication Date
2025-12-26
Estimated Expiration
2044-12-18

AI Technical Summary

Technical Problem

Existing aircraft electromechanical system bus data distribution methods involve a large amount of useless data transmission, resulting in wasted computing resources, frequent code modifications, and lack of portability.

Method used

The subscription bus data transmission and reception method using signal partitioning masks establishes a data distribution unit by hierarchically decomposing data packets into data packets, data words, and signals, and then using partitioning masks to perform bitwise AND operations to achieve accurate data distribution.

Benefits of technology

It improves the accuracy and efficiency of data distribution, reduces the amount of code modification, lowers the risk of software code changes, and supports cross-platform applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119652696B_ABST
    Figure CN119652696B_ABST
Patent Text Reader

Abstract

The application belongs to the field of aviation bus data receiving and distribution, and particularly relates to a subscription bus data receiving and transmitting method and system based on signal partition mask. The method comprises the following steps: performing hierarchical decomposition on a data packet, defining data word offset and signal bit offset, signal width and other information, encoding each signal distribution destination contained in the data packet in the form of a sending mask in a bus receiving table, and realizing automatic distribution of data by comparison with a partition mask. The core part of data receiving and distribution is completely decoupled from the bus interface design. When the arrangement, content, quantity or distribution requirement of the signals contained in the data packet change, the functional partition software design part can remain unchanged, and only the interface needs to be verified. The method has simple logic, small code amount, improved code writing and maintenance efficiency, reduced risk caused by large changes in software code, and is easier to realize cross-platform application.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The application belongs to the field of aircraft bus data receiving and distribution, and particularly relates to a subscription bus data receiving and transmitting method and system based on signal partition mask. BACKGROUND

[0002] An aircraft electromechanical system includes dozens of subsystems such as a power supply system, a fuel system, a hydraulic system, a landing gear system, and an environmental control system. Modern aircraft adopt a distributed architecture combined with integrated control management technology to realize integrated control of electromechanical systems. At the same time, the design of electromechanical system data acquisition equipment is becoming more and more universal and standardized. As the nerve center of the electromechanical system, the aviation electromechanical bus plays a very important role. The function interconnection of the electromechanical system is becoming more and more complex, and the amount of data transmitted on the bus is also gradually increasing. In the early stage of project development, the bus data content and distribution requirements change frequently. How to quickly and effectively receive and distribute bus data is one of the key technologies for the design of the electromechanical system.

[0003] In the design of a traditional aircraft electromechanical system, each electromechanical subsystem is usually configured with a dedicated data acquisition device, and the system core logic calculation module is also divided according to the system function. Therefore, the bus data receiving and transmitting module does not need to unpack the data packet. It only needs to obtain the data packet sent by other systems from the bus and distribute the data packet to each functional partition for subsequent data processing according to the system function requirement. The existing modular bus data receiving method can conveniently solve this kind of problem. However, with the improvement of the integration level of aircraft, the data acquisition equipment of the electromechanical system of modern aircraft is usually used across systems, that is, a data packet may contain data content of multiple systems. Therefore, when implementing data receiving and transmitting according to the existing method, a large amount of useless data may be received by the functional partition, wasting computer computing resources. If unpacking processing is performed in the bus data receiving and transmitting module, when the data packet content or distribution requirement changes, the design code needs to be repeatedly modified, the amount of change is large, and the code is not portable and reusable.

[0004] Therefore, how to accurately and efficiently implement automatic distribution of data is a problem to be solved. SUMMARY

[0005] The purpose of the present application is to provide a subscription bus data receiving and transmitting method and system based on signal partition mask to solve the problem that a large amount of useless data may appear in the existing data distribution.

[0006] The technical solution of the present application is: a subscription bus data receiving and transmitting method based on signal partition mask, comprising:

[0007] The bus data receiving table is established according to the system bus interface control file, and each data packet signal transmitted on the bus is hierarchically decomposed into three levels, namely, a data packet, a data word and a signal; a data distribution unit is established for each independent signal; and a corresponding partition mask is established for each functional partition;

[0008] The bus driving function is called to read all data packets on the bus, and if the length of the read data packet is consistent with the message length in the data packet information description, it is considered that the data packet passes the check, and the content of the data packet is updated to the specified global variable;

[0009] The bus data receiving table is traversed, a data distribution unit is selected, the sending partition mask in the current data distribution unit is compared with the partition mask of the first functional partition through a bitwise AND operation, and it is judged whether the functional partition subscribes to the signal;

[0010] The signal is accurately captured in the specified global variable through the data information in the current data distribution unit, and the signal value is assigned to the corresponding signal variable in the partition data distribution structure;

[0011] The sending partition mask is compared with the second partition through a bitwise AND operation, and after the bitwise AND comparison is completed, the bitwise AND comparison operation of the next partition is performed, until all functional partitions are compared; the subscription information of all partitions of the data distribution unit is obtained; the next data distribution unit in the bus data table is processed, until all data distribution units are distributed to the corresponding data distribution structure; the functional partition data distribution structure of each functional partition after processing is sent to the corresponding functional partition through the inter-partition communication port to realize the subscription and distribution of data.

[0012] Preferably, the data information in each data distribution unit includes a message ID, a message length, a data word offset, a signal variable name, a signal bit offset, a signal width and a signal sending partition mask.

[0013] Preferably, the data packet information description in the data distribution unit includes a message ID and a message length, the data packet is received according to the message ID, and the software reads the specified message data packet by calling the corresponding driving function, and the message length is used to check the correctness of the data packet receiving.

[0014] Preferably, the data word information description in the data distribution unit includes a data word offset, which indicates the position of the current data word in the data packet.

[0015] Preferably, the signal information description in the data distribution unit contains signal variable name, signal bit offset, signal width and signal transmission partition mask, wherein the signal variable name should be unique and can be used for the definition of the structure variable in the software for data transceiving, the signal bit offset and signal width indicate the bit attribute position of the current signal in the data word, and the signal transmission partition mask is a set of binary codes, each bit corresponding to a functional partition.

[0016] Preferably, the judgment method of whether the functional partition subscribes to the signal is that if the result of the bitwise AND comparison operation is 0, it represents that the partition does not subscribe to the signal and no operation is performed; if the result of the bitwise AND comparison operation is not 0, it represents that the functional partition subscribes to the signal.

[0017] As a specific embodiment, a subscription type bus data transceiving system based on signal partition mask includes a data preparation module, a data packet verification module, a subscription information judgment module, a signal grabbing module and a partition data transmission module.

[0018] The data preparation module is used to establish a bus data receiving table according to the system bus interface control file, to hierarchically disassemble the signals of each data packet transmitted on the bus, which is divided into three levels, namely data packet, data word and signal; to establish a data distribution unit for each independent signal; and to establish a corresponding partition mask for each functional partition.

[0019] The data packet verification module is used to call the bus driving function to read all data packets on the bus, and if the length of the read data packet is consistent with the message length in the data packet information description, it is considered that the data packet verification is passed, and the data packet content is updated to the specified global variable.

[0020] The subscription information judgment module is used to traverse the bus data receiving table, select a data distribution unit, read the transmission partition mask in the current data distribution unit and perform a bitwise AND comparison operation with the partition mask of the first functional partition to judge whether the functional partition subscribes to the signal; and can perform a bitwise AND comparison operation between the transmission partition mask and the second partition, after the bitwise AND comparison operation is completed, a bitwise AND comparison operation is performed on the next partition until all functional partitions are compared; the subscription information of all partitions of the data distribution unit is obtained; the next data distribution unit in the bus data table is processed until all data distribution units are distributed to the corresponding data distribution structure.

[0021] The signal grabbing module is used to accurately grab the signal in the specified global variable through the data information in the current data distribution unit, and assign the signal value to the corresponding signal variable in the partition data distribution structure.

[0022] The partition data sending module is configured to send the function partition data distribution structure of each function partition after processing to the corresponding function partition through the inter-partition communication port to realize data subscription distribution.

[0023] Preferably, the data information in each data distribution unit comprises a message ID, a message length, a data word offset, a signal variable name, a signal bit offset, a signal width, and a signal sending partition mask.

[0024] Preferably, the data packet information description in the data distribution unit comprises a message ID and a message length, the data packet is indexed according to the message ID, the software reads the specified message data packet by calling a corresponding driving function, and the message length is used to verify the correctness of the data packet reception.

[0025] Preferably, the data word information description in the data distribution unit comprises a data word offset, which indicates the position of the current data word in the data packet.

[0026] Preferably, the signal information description in the data distribution unit comprises a signal variable name, a signal bit offset, a signal width, and a signal sending partition mask, wherein the signal variable name should be unique and can be used for the definition of a structure variable in the data transmission and reception software, the signal bit offset and the signal width indicate the bit attribute position of the current signal in the data word, and the signal sending partition mask is a set of binary codes, each bit corresponding to a function partition.

[0027] Preferably, the judgment method of whether the function partition subscribes to the signal is that if the result of the bitwise AND comparison operation is 0, it means that the partition does not subscribe to the signal and no operation is performed; if the result of the bitwise AND comparison operation is not 0, it means that the function partition subscribes to the signal.

[0028] The subscription bus data transmission and reception method and system based on the signal partition mask of the application, by hierarchical (data packet-data word-signal) disassembly of the data packet, defining the data word offset and the signal bit offset, the signal width, and other information, encoding each signal distribution destination contained in the data packet in the form of a sending mask in the bus reception table, and realizing the automatic distribution of data by comparing with the partition mask. The core part of data reception and distribution is completely decoupled from the bus interface design. When the arrangement, content, quantity, or distribution requirement of the signals contained in the data packet change, the function partition software design part can remain unchanged, and only the interface needs to be verified. The function is more cohesive. Compared with the traditional method, this method has simple logic, less code, improves the code writing and maintenance efficiency, reduces the risk of large software code changes, and is easier to implement cross-platform applications. BRIEF DESCRIPTION OF DRAWINGS

[0029] In order to more clearly illustrate the technical solutions provided by the present application, the following will briefly introduce the drawings. Obviously, the drawings described below are only some embodiments of the present application.

[0030] Figure 1 For the overall flowchart of the present application;

[0031] Figure 2 For the structure diagram of multiple data distribution units of the present application. DETAILED DESCRIPTION

[0032] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of protection of the present application.

[0033] A subscription bus data transceiving method based on signal partition mask, as shown in Figure 1 , includes the following steps:

[0034] Step S100, according to the system bus interface control file, a bus data receiving table is established, and the signals of each data packet transmitted on the bus are hierarchized (data packet-data word-signal) disassembled, which is divided into three levels, namely data packet, data word and signal. Among them, the signal is the smallest unit in the bus data receiving table, and the relationship between each level is a containing relationship, that is: each data packet contains several data words; each data word contains several signals.

[0035] A data distribution unit is established for each independent signal. The data information in each data distribution unit includes message ID, message length, data word offset, signal variable name, signal bit offset, signal width, signal sending partition mask and other information.

[0036] According to each functional partition, a corresponding partition mask is established.

[0037] Preferably, in combination with Figure 2 , the data in the data distribution unit is described as follows for three levels of data:

[0038] The data packet information description includes message ID and message length. The reception of the data packet is indexed according to the message ID, and the software can read the specified message data packet by calling the corresponding driver function. The message length can be used to verify the correctness of the data packet reception.

[0039] The data word information description includes data word offset, which indicates the position of the current data word in the data packet.

[0040] The signal information description contains signal variable name, signal bit offset, signal width, signal sending partition mask, etc. The signal variable name should be unique and can be used for data receiving and transmitting structure variable definition in software. The signal bit offset and signal width can indicate the bit attribute position of the current signal in the data word. The signal sending partition mask is a set of binary codes, each bit corresponding to a functional partition. For the signal in the data distribution unit, if it needs to be sent to the partition, the corresponding bit in the sending partition mask is 1 if the partition subscribes to the signal, otherwise it is 0. The same signal can be subscribed by one or more functional partitions.

[0041] In step S200, data packet verification is performed: a bus driving function is called to read all data packets on the bus. If the length of the read data packet is consistent with the message length in the data packet information description, it is considered that the data packet verification is passed, and the data packet content is updated to the specified global variable. Otherwise, it is considered that the data packet data is incorrect and is reported.

[0042] In step S300, the subscription information of each functional partition is judged by the partition mask: the bus data receiving table is traversed, a data distribution unit is selected, and the sending partition mask in the current data distribution unit is read. The bit-wise AND comparison operation is performed with the partition mask of the first functional partition to judge whether the functional partition subscribes to the signal.

[0043] Specifically, if the result of the bit-wise AND comparison operation is 0, it means that the partition does not subscribe to the signal and no operation is performed. If the result of the bit-wise AND comparison operation is not 0, it means that the functional partition subscribes to the signal and the next step is executed.

[0044] In step S400, the signal is accurately captured in the specified global variable through the data information in the current data distribution unit, and the signal value is assigned to the corresponding signal variable in the data distribution structure of the partition.

[0045] In step S500, the sending partition mask is compared with the second partition by bit-wise AND operation. After the bit-wise AND comparison is completed, the bit-wise AND comparison operation of the next partition is performed until all functional partitions are compared. The subscription information of all partitions of the data distribution unit is obtained.

[0046] The next data distribution unit in the bus data table is processed until all data distribution units are distributed to the corresponding data distribution structure.

[0047] In step S600, the processed functional partition data distribution structure is sent to the corresponding functional partition through the inter-partition communication port to realize the subscription and distribution of data.

[0048] Through the above design, by layering the data packet (data packet-data word-signal) disassembly, defining the data word offset and the offset of the signal bit, the signal width and other information, the distribution destination of each signal contained in the data packet is encoded in the form of a sending mask in the bus receiving table, and the automatic distribution of data is realized by comparing with the partition mask. The core part of realizing data receiving and distribution is completely decoupled from the bus interface design. When the arrangement, content, quantity or distribution requirement of the signals contained in the data packet change, the functional partition software design part can remain unchanged, and only the interface needs to be verified. The function is more cohesive. Compared with the traditional method, the logic is simple, the code amount is small, the code writing and maintenance efficiency is improved, the risk brought by a large amount of software code changes is reduced, and cross-platform application is easier to realize.

[0049] As a specific embodiment, it also includes a subscription bus data transceiving system based on signal partition mask, including a data preparation module, a data packet verification module, a subscription information judgment module, a signal grabbing module and a partition data sending module;

[0050] The data preparation module is used to establish a bus data receiving table according to a system bus interface control file, layering disassembles the signals of each data packet transmitted on the bus, which is divided into three levels, namely data packet, data word and signal; a data distribution unit is established for each independent signal; and a corresponding partition mask is established for each functional partition;

[0051] The data packet verification module is used to call a bus driving function to read all data packets on the bus, and if the length of the read data packet is consistent with the message length in the data packet information description, it is considered that the data packet verification is passed, and the data packet content is updated to a specified global variable;

[0052] The subscription information judgment module is used to traverse the bus data receiving table, select a data distribution unit, read the sending partition mask in the current data distribution unit and perform a bitwise AND comparison operation with the partition mask of the first functional partition to judge whether the functional partition subscribes to the signal; and the sending partition mask can be compared with the second partition by bitwise AND operation, and after the bitwise AND comparison is completed, the bitwise AND comparison operation of the next partition is performed until all functional partitions are compared; the subscription information of all partitions of the data distribution unit is obtained; the next data distribution unit in the bus data table is processed until all data distribution units are distributed to the corresponding data distribution structure;

[0053] The signal grabbing module is used to accurately grab the signal in the specified global variable through the data information in the current data distribution unit, and assign the signal value to the corresponding signal variable in the partition data distribution structure;

[0054] The partition data sending module is configured to send the function partition data distribution structure of each function partition to which the processing is completed to the corresponding function partition through a partition intercommunication port to realize data subscription distribution.

[0055] Preferably, the data information in each data distribution unit comprises a message ID, a message length, a data word offset, a signal variable name, a signal bit offset, a signal width and a signal sending partition mask.

[0056] Preferably, the data packet information description in the data distribution unit comprises a message ID and a message length, the data packet is indexed according to the message ID, the software reads the specified message data packet by calling a corresponding driving function, and the message length is used to verify the correctness of the data packet reception.

[0057] Preferably, the data word information description in the data distribution unit comprises a data word offset, which indicates the position of the current data word in the data packet.

[0058] Preferably, the signal information description in the data distribution unit comprises a signal variable name, a signal bit offset, a signal width and a signal sending partition mask, wherein the signal variable name should be unique and can be used for the definition of a structure variable in the software data transmission and reception, the signal bit offset and the signal width indicate the bit attribute position of the current signal in the data word, and the signal sending partition mask is a group of binary codes, each bit of which corresponds to a function partition.

[0059] Preferably, the judgment method of whether the function partition subscribes to the signal is that if the result of the bitwise AND comparison operation is 0, it means that the function partition does not subscribe to the signal and does not perform any operation; and if the result of the bitwise AND comparison operation is not 0, it means that the function partition subscribes to the signal.

[0060] Finally, it should be noted that the drawings of the disclosed embodiments only involve the structures involved in the disclosed embodiments, other structures can be referred to the general design, and the same embodiments and different embodiments of the present application can be combined with each other under the condition of no conflict.

[0061] Finally, the above description is only the preferred embodiments of the present application and is not used to limit the present application, and any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims

1. A method of signal partition mask based subscription bus data transceiving, the method comprising: receiving a signal partition mask from a bus master; receiving a signal partition mask from a bus slave; and transmitting a signal partition mask to the bus master and the bus slave. Comprise: It is necessary to establish bus data receiving table according to system bus interface control file, each data packet transmitted on the bus is hierarchically decomposed, which is divided into three levels, which are data packet, data word and signal respectively; data distribution unit is established for each independent signal; corresponding partition mask is established according to each functional partition; wherein, the signal is the smallest unit in the bus data receiving table, and the layers are in a containing relationship, that is, each data packet contains a plurality of data words; each data word contains a plurality of signals; The bus driving function is called to read all data packets on the bus, if the length of the read data packet is consistent with the message length in the data packet information description, it is considered that the data packet is checked, and the content of the data packet is updated to the specified global variable; Traverse the bus data receiving table, select a data distribution unit, read the sending partition mask in the current data distribution unit and the partition mask of the first functional partition to perform bitwise and comparison operation, and judge whether the functional partition subscribes the signal; The signal value is assigned to the corresponding signal variable in the partition data distribution structure through the accurate capture of the signal in the specified global variable of the data information in the current data distribution unit; The sending partition mask is compared with the second partition by bitwise and operation, after the bitwise and comparison is completed, the bitwise and comparison operation of the next partition is performed, until all functional partitions are compared; Get the subscription information of all partitions of the data distribution unit; process the next data distribution unit in the bus data table, until all data distribution units are distributed to the corresponding data distribution structure; The functional partition data distribution structure processed is sent to the corresponding functional partition through the inter-partition communication port to realize the subscription and distribution of data.

2. The signal partition mask based subscription bus data transceiving method of claim 1, wherein: The data information in each data distribution unit includes message ID, message length, data word offset, signal variable name, signal bit offset, signal width and signal sending partition mask.

3. The signal partition mask based subscription bus data transceiving method of claim 2, wherein: The message ID and message length are included in the data packet information description in the data distribution unit, the message ID is used to index the reception of the data packet, and the software reads the specified message data packet by calling the corresponding driving function, and the message length is used to check the correctness of the data packet reception.

4. The signal partition mask based subscription bus data transceiving method of claim 2, wherein: The data word offset is included in the data word information description in the data distribution unit, which indicates the position of the current data word in the data packet.

5. The signal partition mask based subscription bus data transceiving method of claim 2, wherein: The signal information description in the data distribution unit includes signal variable name, signal bit offset, signal width and signal sending partition mask, wherein the signal variable name should be unique, which is used for the definition of the structure variable in the data transmission and reception of the software, the signal bit offset and signal width indicate the bit attribute position of the current signal in the data word, and the signal sending partition mask is a group of binary codes, each bit corresponds to a functional partition.

6. The signal partition mask based subscription bus data transceiving method of claim 1, wherein, The judgment method of whether the functional partition subscribes the signal is that: if the result of the bitwise and comparison operation is 0, it means that the partition does not subscribe the signal, and no operation is performed; if the result of the bitwise and comparison operation is not 0, it means that the functional partition subscribes the signal.

7. A signal partition mask based subscription bus data transceiving system employing the data transceiving method as claimed in any one of claims 1 to 6, characterized by, The data preparation module, the data packet verification module, the subscription information judgment module, the signal capture module and the partition data sending module are included. The data preparation module is used for establishing a bus data receiving table according to a system bus interface control file, hierarchically disassembling each data packet transmitted on the bus, and establishing a data distribution unit for each independent signal, and establishing a corresponding partition mask for each functional partition. The data packet verification module is used for calling a bus driving function to read all data packets on the bus, and if the length of the read data packet is consistent with the message length in the data packet information description, it is considered that the data packet verification is passed, and the data packet content is updated to the specified global variable. The subscription information judgment module is used for traversing the bus data receiving table, selecting a data distribution unit, reading the sending partition mask in the current data distribution unit, and performing a bitwise AND comparison operation with the partition mask of the first functional partition to determine whether the functional partition subscribes to the signal. The signal capture module is used for accurately capturing the signal in the specified global variable through the data information in the current data distribution unit, and assigning the signal value to the corresponding signal variable in the partition data distribution structure. The partition data sending module is used for sending the processed functional partition data distribution structure to the corresponding functional partition through the inter-partition communication port to realize data subscription distribution.

8. The signal partition mask based subscription bus data transceiving system of claim 7, wherein, The data information in each data distribution unit includes message ID, message length, data word offset, signal variable name, signal bit offset, signal width and signal sending partition mask.

9. The signal partition mask based subscription bus data transceiving system of claim 8, wherein, The data packet information description in the data distribution unit includes message ID and message length, and the data packet reception is indexed according to the message ID.

10. The signal partition mask based subscription bus data transceiving system of claim 8, wherein, The data word information description in the data distribution unit includes data word offset, indicating the position of the current data word in the data packet.

11. The signal partition mask based subscription bus data transceiving system of claim 8, wherein, The signal information description in the data distribution unit includes signal variable name, signal bit offset, signal width and signal sending partition mask, wherein the signal variable name should be unique, used for defining the structure variable in the software data transmission, the signal bit offset and the signal width indicate the bit attribute position of the current signal in the data word, and the signal sending partition mask is a group of binary codes, each bit corresponding to a functional partition.

12. The signal partition mask based subscription bus data transceiving system of claim 7, wherein, The judgment method whether the function partition subscribes the signal is: if the result of the bit-by-bit comparison operation is 0, it represents that the partition does not subscribe the signal and does not do any operation; if the result of the bit-by-bit comparison operation is not 0, it represents that the function partition subscribes the signal.

Citation Information

Patent Citations

  • Release subscription method and system based on AFDX bus

    CN106533871A

  • Electromechanical communication partition data service method based on configuration table

    CN117319484A