A bus-module-based general multi-mode communication device and its communication method
By designing a generalized multi-mode communication device based on bus modules, the generalization problem of 1553B bus communication in the spacecraft system is solved, and a high reliability and flexibility communication solution is realized, reducing engineering risks and costs.
Patent Information
- Application Number
- CN202210930470.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-04
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2042-08-04
AI Technical Summary
The prior art lacks a generalized 1553B bus multi-mode communication component, making it difficult to achieve high reliability and flexible communication in spacecraft systems.
It provides a generalized multi-mode communication device based on bus module, including user application module, multi-mode initialization module and driver layer module, and supports two modes: remote terminal and message listener, and realizes the initialization and configuration of different chips through unified interface and initialization function.
It realizes high reliability and wide applicability of communication equipment, reduces engineering risks and costs, improves system development efficiency and reliability, and supports the flexible assembly and scalability of multiple functional modules.
Smart Images

Figure CN116248427B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the fields of aerospace, reliability, and data transmission, and particularly relates to a bus-module-based generalized multi-mode communication device and its communication method. Background Art
[0002] Modern aerospace systems have the following requirements for their internal communication systems: the response time for message transmission between subsystems should be as short as possible; they should have strong anti-interference capabilities and be able to communicate normally in complex and extreme environments; the communication system should be highly flexible and easy to modify; the subsystems on the bus should have good relative independence, be able to independently complete the tasks assigned by the system, and cooperate with other subsystems. The excellent performance of the 1553B bus in all aspects fully meets the strict requirements of such system communication, so it is becoming increasingly important and its status is constantly rising in modern aerospace systems. At present, the 1553B bus technology has been successively applied to various types of aircraft, combat aircraft, aerospace satellites, large ships, as well as tanks and ground combat vehicles. It even has corresponding applications in missile systems and is also applicable to civilian places such as subway systems and industrial production lines.
[0003] Due to the wide application of this bus technology in various fields such as aircraft, the demand for 1553B-related software at home and abroad is increasing day by day. However, due to the complexity of the 1553B protocol, so far, few literatures have studied the generalized communication components for aerospace model applications and realized the general framework in the two modes of bus remote terminal and message listener. Therefore, it is of great significance and practical value to develop a general-purpose 1553B multi-mode communication component with high reliability and versatility for spacecraft systems. Summary of the Invention
[0004] Aiming at the problems existing in the above-mentioned prior art, the present invention provides a bus-module-based generalized multi-mode communication device and its initialization and communication method, realizing a general-purpose 1553B multi-mode communication component with high reliability and versatility for spacecraft systems.
[0005] In a first aspect, a bus-module-based generalized multi-mode communication device is provided, which is applied to the 1553B bus. The communication device includes:
[0006] A user application module for providing functions of chip selection, mode selection, and application function selection for users;
[0007] A multi-mode initialization module for providing a matching initialization function for the user's chip selection and mode selection to implement the initialization process for the selected chip and mode by the user;
[0008] A driver layer module for providing a unified interface for various module functions to the user application module.
[0009] In some embodiments, the multi-mode initialization module includes multiple initialization functions, including: MT initialization function, RT initialization function, RT lookup table initialization function, RT illegal table initialization function, and MT monitoring table initialization function.
[0010] In some embodiments, the module functions in the driver layer module include: multi-mode message query function, MT message acquisition function, RT lookup table initialization function, RT message acquisition function, RT illegal table initialization function, RT message sending function, MT monitoring table initialization function, and bus data sending function.
[0011] In some embodiments, the multi-mode message query function is used to obtain information such as the current RT storage area address, the current data block size, and the last accessed message address, query the 1553B instruction stack pointer fixed unit to obtain the message instruction stack pointer, and calculate based on the message address pointed to by the current instruction stack pointer and the last accessed message address to obtain the number of new messages; the multi-mode message query function is used to obtain the query message for the current storage area address in the MT mode.
[0012] The RT / MT message acquisition function is used to obtain the instruction stack pointer, obtain the block status word, time flag word, data block pointer, and instruction word, parse the RT number and sub-address, and obtain the message length at the same time.
[0013] The RT / MT message acquisition function is used to judge the sub-address. If it is 0 or 31, it means that the current message is a mode instruction, and the mode instruction type is obtained. Otherwise, the data block reading unit is called to read the data block message.
[0014] The RT message sending function is used to find the sending data block address from the sending lookup table, assign the sending data, and if the sending mode is double buffering, the 5 bits of the sending lookup table address need to be inverted.
[0015] In some embodiments, the above-mentioned bus module-based generalized multi-mode communication device further includes an application layer module. The application layer module includes multiple software function modules. After classifying and abstracting the specific services of the software, the multiple software function modules are classified according to the fine-grained software function logic, and multiple function modules with clear functions, clear interfaces, and self-closure are obtained and hierarchically divided.
[0016] In a second aspect, a multi-mode initialization method based on different chip buses for the multi-mode communication device described in the first aspect is provided, including:
[0017] Read relevant parameters from the input file of the user application module, where the relevant parameters include bus message initialization parameters;
[0018] For the configuration process, the user application module forms an array of message information in the illegal table, message listening table, and query table to be configured and passes it to the bus multi-mode initialization module;
[0019] The multi-mode initialization module executes an initialization process based on the passed array information.
[0020] In some embodiments, the multi-mode initialization module executes an initialization process, including:
[0021] Perform a software reset operation to enable the enhanced mode;
[0022] Initialize the interrupt mask register and load the starting position of the stack into the "active area stack pointer" position in the RAM;
[0023] Initialize multiple configuration registers in sequence;
[0024] When using RT illegalization, initialize the "illegalization table" and initialize the RT message query table;
[0025] When using the MT mode, initialize the "message listening table".
[0026] In some embodiments, when initializing the "illegalization table", the data sent to the 1553 bus is written into the appropriate data block, and the expected position of the received data word is initialized to a preset value.
[0027] In a second aspect, a bus module-based generalized multi-mode communication method for a multi-mode communication device according to the first aspect is provided. The communication method is applied to multi-mode message reception services, RT mode message sending services, and multi-mode message update query services. The communication method for the multi-mode message reception service includes:
[0028] Call the multi-mode message query function and receive the mode parameter passed by the user;
[0029] Query the corresponding mode message stack based on the mode parameter and calculate the number of new messages;
[0030] When there are new messages, call the RT / MT message acquisition function to receive the messages and parse the stack, and determine whether the message is a mode instruction. If so, obtain the mode instruction type; otherwise, call the data block reading unit to read the data block message;
[0031] Call the RT message sending function. When the sending mode is double buffering, find the sending data block address from the sending query table, take the 5-bit inversion of the sending data block address, and then assign a value to the sending data; when the sending mode is not double buffering, find the sending data block address from the sending query table and assign a value to the sending data.
[0032] In some embodiments, querying the corresponding mode message stack based on the mode parameter and calculating the number of new messages includes:
[0033] When the mode parameter represents the MT mode, call the multi-mode message query function to query the MT message stack. When the mode parameter represents a non-MT mode, call the multi-mode message query function to query the RT message stack;
[0034] Calculate the number of new messages based on the message address pointed to by the current instruction stack pointer and the last accessed message address;
[0035] The calling of the RT / MT message acquisition function to receive messages and parse the stack to determine whether the message is a mode instruction includes:
[0036] The RT / MT message acquisition function, based on the instruction stack pointer, obtains the block status word, time flag word, data block pointer, and instruction word, parses the RT number and sub-address, and simultaneously obtains the message length;
[0037] Analyze and judge the sub-address. If the sub-address is the first preset value or the second preset value, it represents that the current message is a mode instruction, and obtain the mode instruction type. Otherwise, call the data block reading unit to read the data block message. The first preset value is 0, and the second preset value is 31.
[0038] A bus-module-based generalized multi-mode communication device and its communication method of the present invention have the following beneficial effects:
[0039] (1) The present invention provides initialization and configuration methods based on different chips. By user-defined recognition of different chip types for initialization and configuration, it supports two modes, namely, the remote terminal mode and the message listener mode, with wide applicability, getting rid of the dependence on foreign chips, and greatly reducing the engineering risk and application cost. The currently provided bus-module-based generalized multi-mode communication device and its communication method have the advantages of high integration, high reliability, fast processing speed, and flexible interfaces.
[0040] (2) The present invention provides generalized function components applicable to various software, reduces the hardware low-level knowledge barrier, improves the system development efficiency, shortens the software development cycle, reduces the system development cost, the generalized design ensures the system reliability, and at the same time, the module division fully considers the different functional requirements of the application system and provides a variety of functional functions.
[0041] (3) After analyzing the software functions, in order to improve the scalability, the executable units that implement specified functions in the system and have clearly defined interfaces are divided into object function modules. According to the principle that software function modules do not affect each other and can be flexibly assembled, the software functions are classified and layered. At the same time, according to the principle of separating software business applications from underlying drivers as much as possible, the hardware driver support layer and the logical service layer of business requirements are divided. By adopting methods such as library functions, components, architectures, and frameworks in software reuse technology, the code reusability and scalability are improved, and the source files are encapsulated using the idea of classes in object-oriented programming to achieve high cohesion and low coupling of the code. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 is a structural diagram of an implementation manner of a general-purpose multi-mode communication device based on a bus module in an embodiment of the present application;
[0043] Figure 2 is a structural diagram of another implementation manner of a general-purpose multi-mode communication device based on a bus module in an embodiment of the present application;
[0044] Figure 3 is a schematic diagram of the step flow of a multi-mode initialization method based on different chip buses in an embodiment of the present application;
[0045] Figure 4 is a schematic diagram of the step flow of a general-purpose multi-mode communication method based on a bus module in an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0046] In view of the lack of a general-purpose communication device directly applicable to the 1553B multi-mode systems of various aerospace models in the prior art, an embodiment of the present application provides a general-purpose multi-mode communication device based on a bus module, an initialization method for different chips corresponding thereto, and a multi-mode communication method, to implement a general framework in two modes of a bus remote terminal and a message listener with high reliability applicable to a spacecraft system.
[0047] The general-purpose multi-mode communication device provided in an embodiment of the present application, for the two modes of a remote terminal and a message listener in an aerospace model, first implements a general-purpose method for different bus underlying chips, provides one-stop initialization settings and message sending and receiving functions for different chips, and at the same time supports different chips and configuration methods; secondly, implements encapsulated function capabilities, such as multi-mode message reception, message query, etc., to implement modular function interfaces; finally, provides a bus hierarchical component framework. According to the principle of separating software business applications from underlying drivers as much as possible, the hardware driver support layer and the logical service layer of business requirements are divided to improve the code reusability and scalability and achieve high cohesion and low coupling of the code. This general-purpose multi-mode communication device has the characteristic of high reliability and can be directly applied to the design process of the 1553B multi-mode systems of various aerospace models.
[0048] See Figure 1 , a general multi - mode communication device based on a bus module provided by an embodiment of the present application is applied to the 1553B bus. The communication device includes:
[0049] A user application module, which is used to provide functions of chip selection, mode selection, and application function selection for users;
[0050] A multi - mode initialization module, which is used to provide a matching initialization function for the user's chip selection and mode selection to implement the initialization process for the selected chip and mode by the user;
[0051] A driver - layer module, which is used to provide a unified interface for multiple module functions for the user application module.
[0052] Specifically, the above - mentioned multi - mode initialization module includes multiple initialization functions, including: MT initialization function, RT initialization function, RT lookup table initialization function, RT illegal table initialization function, MT listening table initialization function.
[0053] Specifically, the module functions in the above - mentioned driver - layer module include: multi - mode message query function, MT message acquisition function, RT lookup table initialization function, RT message acquisition function, RT illegal table initialization function, RT message sending function, MT listening table initialization function, bus data sending function.
[0054] Among them, the multi - mode message query function is used to obtain information such as the current RT storage area address, the current data block size, and the last accessed message address, query the 1553B instruction stack pointer fixed unit to obtain the message instruction stack pointer, and calculate according to the message address pointed to by the current instruction stack pointer and the last accessed message address to obtain the number of new messages; the multi - mode message query function is also used to obtain the query message of the current storage area address in the MT mode;
[0055] Among them, the RT / MT message acquisition function is used to obtain the instruction stack pointer, obtain the block status word, time flag word, data block pointer, and instruction word, parse the RT number and sub - address, and obtain the message length at the same time; it is also used to judge the sub - address. If it is 0 or 31, it represents that the current message is a mode instruction, and obtain the mode instruction type. Otherwise, call the data block reading unit to read the data block message;
[0056] Among them, the RT message sending function is used to find the sending data block address from the sending lookup table, assign the sending data. If the sending mode is double - buffered, the 5 - bit of the sending lookup table address needs to be inverted.
[0057] In the general multi-mode communication device based on the bus module in the embodiments of the present application, the application module component provides a unified interface. The user selects the chip type and mode, and accordingly specifies the data writing method at the chip bottom layer, the initialization process, and the message-related information of the illegal table, query table, and message listening table that need to be specified in the bus, so as to realize customized bus services and improve the flexibility and availability of the system;
[0058] The initialization module performs different branch operations according to user definitions, and the configuration includes RT initialization functions and MT initialization functions. In the RT initialization function, the initialization process such as the RT receive and send buffer method is completed according to different configurations;
[0059] The driver layer module includes various functional functions related to the bus, provides general functions in the software, including message query functions, MT message acquisition functions, RT query table initialization functions, RT message acquisition functions, RT illegal table initialization functions, RT message sending functions, MT listening table initialization functions, bus data sending functions, etc., completes the programming of the bus software driver layer, and realizes a highly reusable programmable component system.
[0060] See Figure 2 In the general multi-mode communication device based on the bus module in the embodiments of the present application, an application layer module is further included. The application layer module includes multiple software function modules. After classifying and abstracting the specific services of the software, the multiple software function modules are classified according to the fine-grained software function logic, and multiple function modules with clear functions, clear interfaces, and self-closure are obtained and hierarchically divided.
[0061] Specifically, the general bus component adopts the idea of hierarchical division. According to the fine-grained software function logic, the structure of the software is divided into a software framework of multiple layers from bottom to top, and each layer has clear and definite responsibilities. At the same time, the specific services of the software are classified and abstracted, the entire software function is separated into several function modules with clear functions, clear interfaces, and self-closure, and these function modules are classified into their respective layers.
[0062] After the layering is completed, the lower levels of the software framework complete the driving functions of the hardware interface and general service functions, while the higher levels focus on the specific application functions of the software. Each layer is independent of each other. During operation, only the higher level can call the function modules of the lower level through function interfaces. Therefore, one level does not need to care about the implementation methods of the function modules of other levels, but only needs to care about the interface content provided by other levels and the interface content provided by it to other levels. As long as the interface content remains unchanged, the change of the function modules within one level will not affect the operation of other function modules, reflecting the structural characteristics of high cohesion and low coupling.
[0063] This hierarchical architecture has good application value and prospects in software engineering implementation. By using software hierarchical architecture technology, a series of different application requirements related to the bus can be established into corresponding domain models, and then further mapped to a unified framework, providing a convenient development environment for software developers, making software development have the advantages of being reusable, having a reasonable design structure, and good scalability.
[0064] See Figure 3 , the embodiment of the present application also provides a multi-mode initialization method based on different chip buses, including the following steps:
[0065] Step 31, read relevant parameters from the input file of the user application module, where the relevant parameters include bus message initialization parameters;
[0066] Step 32, the user application module forms an array of message information in the illegal table, message listening table, and query table to be configured for the configuration process and passes it to the bus multi-mode initialization module;
[0067] Step 33, the multi-mode initialization module executes the initialization process based on the passed array information.
[0068] Further, in the above step 33, when the multi-mode initialization module executes the initialization process, it includes:
[0069] Step 331, perform a software reset operation to enable the enhanced mode;
[0070] Step 332, initialize the interrupt mask register and load the starting position of the stack to the "active area stack pointer" position in the RAM;
[0071] Step 333, initialize multiple configuration registers in sequence, such as initializing configuration register #2, configuration register #3, configuration register #4, configuration register #5;
[0072] Step 334, when using RT illegalization, initialize the "illegalization table" and initialize the RT message query table;
[0073] Step 335, when using the MT mode, initialize the "message listening table".
[0074] Among them, when initializing the "illegalization table" in step 334, the data sent to the 1553 bus (when responding to the send instruction) is written to the appropriate data block, and the expected position of the received data word is initialized to a preset value. Optionally, the expected position of the received data word is initialized to 0.
[0075] In the embodiments of the present application, based on the above-mentioned bus-module generalized multi-mode communication device, a multi-mode initialization method based on different chip buses is provided. First, configurations for the initialization modes of different chips of the spacecraft 1553B, and two application modes of the remote terminal (RT) and message listener (MT) of the bus are established. Communication component modular functions are provided, different functional requirements are divided into hierarchical modules, and reusable code is provided through means such as library functions, components, architectures, and frameworks in software reuse technology. Applying this technology to actual generation is of great significance.
[0076] See Figure 4 , in the embodiments of the present application, a bus-module generalized multi-mode communication method is provided. The communication method is applied to multi-mode message reception services, RT-mode message sending services, and multi-mode message update query services. The communication method for the multi-mode message reception service includes:
[0077] Step 41, call the multi-mode message query function and receive the mode parameter passed in by the user;
[0078] Step 42, query the corresponding mode message stack based on the mode parameter and calculate the number of new messages;
[0079] Step 43, when there are new messages, call the RT / MT message acquisition function to receive the message and parse the stack, and determine whether the message is a mode instruction. If so, obtain the mode instruction type; otherwise, call the data block reading unit to read the data block message;
[0080] Step 45, call the RT message sending function. When the sending mode is double buffering, look up the sending data block address from the sending query table, and after taking the 5-bit inversion of the sending data block address, assign a value to the sending data; when the sending mode is not double buffering, look up the sending data block address from the sending query table and assign a value to the sending data.
[0081] Specifically, in the above step 42, querying the corresponding mode message stack based on the mode parameter and calculating the number of new messages includes:
[0082] Step 421, when the mode parameter represents the MT mode, call the multi-mode message query function to query the MT message stack; when the mode parameter represents a non-MT mode, call the multi-mode message query function to query the RT message stack;
[0083] Step 422, calculate based on the message address pointed to by the current instruction stack pointer and the last accessed message address to obtain the number of new messages;
[0084] Specifically, in step 43, calling the RT / MT message acquisition function to receive the message and parse the stack, and determining whether the message is a mode instruction includes:
[0085] Step 431: The RT / MT message acquisition function obtains the block status word, time flag word, data block pointer, and instruction word based on the instruction stack pointer, parses the RT number and sub-address, and simultaneously obtains the message length.
[0086] Step 432: Analyze and judge the sub-address. If the sub-address is the first preset value or the second preset value, it represents that the current message is a mode instruction, and obtain the mode instruction type. Otherwise, call the data block reading unit to read the data block message. The first preset value is 0, and the second preset value is 31.
[0087] The present invention is not limited to the above specific embodiments. Those of ordinary skill in the art, starting from the above concepts and without creative labor, can make various transformations, all of which fall within the protection scope of the present invention.
Claims
1. A general-purpose multi-mode communication device based on a bus module, characterized in that Applied to the 1553B bus, the communication device includes: A user application module for providing functions such as chip selection, mode selection, and application function selection for users; A multi-mode initialization module for providing a matching initialization function for the user's chip selection and mode selection to implement the initialization process for the selected chip and mode by the user; A driver layer module for providing a unified interface for multiple module functions for the user application module; The module functions in the driver layer module include: multi-mode message query function, MT message acquisition function, RT query table initialization function, RT message acquisition function, RT illegal table initialization function, RT message sending function, MT listening table initialization function, bus data sending function; The multi-mode message query function is used to obtain information such as the current RT storage area address, the current data block size, and the last access message address, query the 1553B instruction stack pointer fixed unit to obtain the message instruction stack pointer, and calculate based on the message address pointed to by the current instruction stack pointer and the last access message address to obtain the number of new messages; the multi-mode message query function is used to obtain the query message for the current storage area address in the MT mode; The RT / MT message acquisition function is used to obtain the instruction stack pointer, obtain the block status word, time flag word, data block pointer, and instruction word, parse the RT number and sub-address, and obtain the message length at the same time; The RT / MT message acquisition function is used to judge the sub-address. If it is 0 or 31, it means that the current message is a mode instruction, and the mode instruction type is obtained. Otherwise, the data block reading unit is called to read the data block message; The RT message sending function is used to find the sending data block address from the sending query table, assign the sending data, and if the sending mode is double buffering, the 5-bit of the sending query table address needs to be inverted.
2. The universal multi-mode communication device based on a bus module according to claim 1, characterized in that The multi-mode initialization module includes a variety of initialization functions, including: MT initialization function, RT initialization function, RT query table initialization function, RT illegal table initialization function, MT listening table initialization function.
3. The universal multi-mode communication device based on a bus module according to claim 1, characterized in that It also includes an application layer module. The application layer module includes multiple software function modules. After classifying and abstracting the specific business of the software, the multiple software function modules are classified according to the fine-grained software function logic, and multiple function modules with clear functions, clear interfaces, and self-closure are obtained and hierarchically divided.
4. The multi-mode initialization method based on different chip buses for the multi-mode communication device according to any one of claims 1-3, characterized in that Including: Read relevant parameters from the input file of the user application module, and the relevant parameters include bus message initialization parameters; The user application module forms an array of message information in the illegal table, message listening table, and query table to be configured for the configuration process and passes it to the bus multi-mode initialization module; The multi-mode initialization module executes the initialization process based on the input array information.
5. The multi-mode initialization method based on different chip buses according to claim 4, characterized in that, The multi-mode initialization module executes the initialization process, including: Perform a software reset operation to enable the enhanced mode; Initialize the interrupt mask register and load the starting position of the stack to the "active area stack pointer" position in the RAM; Initialize multiple configuration registers in sequence; When using RT illegalization, initialize the "illegalization table" and initialize the RT message query table; When using the MT mode, initialize the "message listening table".
6. The multi-mode initialization method based on different chip buses according to claim 5, characterized in that When initializing the "illegalization table", the data sent to the 1553 bus is written into the appropriate data block, and the expected position of the received data word is initialized to a preset value.
7. The multi-mode communication method based on a bus module generalization for a multi-mode communication device according to any one of claims 1-3, characterized in that The communication method is applied to multi-mode message receiving services, RT mode message sending services, and multi-mode message update query services. The communication method for the multi-mode message receiving service includes: Call the multi-mode message query function according to different modes; Query the corresponding mode message stack based on the mode parameter and calculate the number of new messages; When there are new messages, call the RT / MT message acquisition function to receive the message and parse the stack, and determine whether the message is a mode instruction. If so, obtain the mode instruction type; otherwise, call the data block reading unit to read the data block message; Call the RT message sending function. When the sending mode is double buffering, find the sending data block address from the sending query table, take the 5-bit inverse of the sending data block address, and then assign a value to the sending data; when the sending mode is not double buffering, find the sending data block address from the sending query table and assign a value to the sending data.
8. The multi-mode communication method based on bus module generalization according to claim 7, characterized in that The querying of the corresponding mode message stack based on the mode parameter and the calculation of the number of new messages include: When the mode parameter represents the MT mode, call the multi-mode message query function to query the MT message stack. When the mode parameter represents a non-MT mode, call the multi-mode message query function to query the RT message stack; Calculate the number of new messages according to the message address pointed to by the current instruction stack pointer and the last accessed message address; The calling of the RT / MT message acquisition function to receive the message and parse the stack to determine whether the message is a mode instruction includes: The RT / MT message acquisition function obtains the block status word, time flag word, data block pointer, and instruction word based on the instruction stack pointer, parses the RT number and sub-address, and simultaneously obtains the message length; Analyze and judge the sub-address. If the sub-address is the first preset value or the second preset value, it means that the current message is a mode instruction, and obtain the mode instruction type. Otherwise, call the data block reading unit to read the data block message. The first preset value is 0, and the second preset value is 31.
Citation Information
Patent Citations
Universal service-oriented high-reliability bus system
CN114531316A