CN109510748B - Node and node interaction method and system - Google Patents

Node and node interaction method and system Download PDF

Info

Publication number
CN109510748B
CN109510748B CN201811635949.3A CN201811635949A CN109510748B CN 109510748 B CN109510748 B CN 109510748B CN 201811635949 A CN201811635949 A CN 201811635949A CN 109510748 B CN109510748 B CN 109510748B
Authority
CN
China
Prior art keywords
interface
node
data
application
configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811635949.3A
Other languages
Chinese (zh)
Other versions
CN109510748A (en
Inventor
代志远
张申
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Runke General Technology Co Ltd
Original Assignee
Beijing Runke General Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Runke General Technology Co Ltd filed Critical Beijing Runke General Technology Co Ltd
Priority to CN201811635949.3A priority Critical patent/CN109510748B/en
Publication of CN109510748A publication Critical patent/CN109510748A/en
Application granted granted Critical
Publication of CN109510748B publication Critical patent/CN109510748B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40267Bus for use in transportation systems
    • H04L2012/4028Bus for use in transportation systems the transportation system being an aircraft

Abstract

The invention provides a node and a node interaction method and a node interaction system, wherein the method comprises the following steps: determining application data information by upper-layer application in the master control node, wherein the application data information comprises application data and a release interface identifier; calling a preset application program interface corresponding to the release interface identifier, and releasing application data to the global data area by using the preset application program interface; and the core data layer in the main control node extracts the application data from the global data area, inquires the message configuration and the routing configuration corresponding to the issuing interface identifier, converts the application data into target data conforming to the message configuration, and sends the target data to the bus according to the routing configuration so as to forward the target data to the remote node by the bus based on the routing configuration. The invention realizes the purpose of shielding the bottom layer communication protocol from the upper layer application, thereby facilitating the development and application of users and improving the application development efficiency.

Description

Node and node interaction method and system
Technical Field
The invention relates to the technical field of aviation electronic data communication, in particular to a node and a node interaction method and system.
Background
The avionic data communication system comprises a main control node and a plurality of remote nodes, wherein one or more applications are integrated in the main control node, and part of the applications in the main control node can communicate with the remote nodes by adopting an AS5643 bus so AS to realize data interaction between the main control node and the remote nodes. The AS5643 bus may bring high bandwidth and high reliability to the avionics field.
Because the main control node and the remote node need to rely on the bottom layer communication protocol of the AS5643 bus in the process of using the AS5643 bus, a user needs to consider both the application logic and the bottom layer hardware communication protocol of the AS5643 bus in the process of developing and applying, so that the process of developing and applying by the user is very inconvenient, and the developing and applying efficiency is low.
Disclosure of Invention
In view of this, the node and the node interaction method and system provided by the invention can shield the bottom layer communication protocol of the AS5643 bus in the application development process, facilitate the user to develop the application and improve the application development efficiency.
In order to achieve the above object, the present invention provides the following technical features:
a node interaction method comprises the following steps:
determining application data information by upper-layer application in a master control node, wherein the application data information comprises application data and a release interface identifier; calling a preset application program interface corresponding to the release interface identifier, and releasing the application data to a global data area by using the preset application program interface;
and a core data layer in the main control node extracts the application data from the global data area, inquires the message configuration and the routing configuration corresponding to the release interface identifier, converts the application data into target data conforming to the message configuration, and sends the target data to a bus according to the routing configuration so as to forward the target data to a remote node by the bus based on the routing configuration.
Optionally, before the upper layer application in the master control node determines the application data information, the method further includes:
the master control node acquires an interface control document of the node interaction system; the interface control document comprises N interface configuration information corresponding to N interfaces of each node in the node interaction system one to one; the interface configuration information of one interface comprises an interface name, a data type for transmitting application data, message configuration of a node to which the interface belongs and node identifications of nodes of two sides connected by the interface;
the master control node determines an attribute set of each interface based on the configuration information of each interface;
the master control node sends the interface configuration information and the attribute set of each interface to the node to which the interface belongs, so that the node stores the interface configuration information and the attribute set.
Optionally, the determining, by the master node, the attribute set of each interface based on the configuration information of each interface includes:
the master control node allocates a unique interface identifier for the interface;
the master control node constructs an application program interface for the interface based on the interface name and the data type in the interface configuration information;
the master control node constructs a corresponding relation between the interface identification and the application program interface, and constructs a corresponding relation between the interface identification and the message configuration in the interface configuration information.
Optionally, the constructing, by the master node, an application program interface for the interface based on the interface name and the data type in the interface configuration information includes:
the master control node constructs the name of an application program interface containing the interface name based on the interface name in the interface configuration information;
the main control node constructs parameters of an application program interface based on the data type in the interface configuration information;
and establishing the application program interface comprising the name of the application program interface and the parameters of the application program interface.
A node interaction method comprises the following steps:
a core data layer of a remote node receives target data transmitted by a bus, determines a subscription interface identifier corresponding to a publishing interface identifier of the target data, inquires a message configuration corresponding to the subscription interface identifier, analyzes the target data by using the message configuration to obtain application data, stores the application data to a global data area, and constructs an incidence relation between the application data and the subscription interface identifier;
and the upper layer application of the remote node determines a subscription interface identifier under the condition that application data needs to be subscribed, calls a preset application program interface corresponding to the subscription interface identifier, and acquires the application data corresponding to the subscription interface identifier in the global data area.
A node interaction method comprises the following steps:
determining application data information by upper-layer application in a remote node, wherein the application data information comprises application data and a release interface identifier; calling a preset application program interface corresponding to the release interface identifier, and releasing the application data to a global data area by using the preset application program interface;
and a core data layer in the remote node extracts the application data from the global data area, inquires the message configuration and the routing configuration corresponding to the release interface identifier, converts the application data into target data conforming to the message configuration, and sends the target data to a bus according to the routing configuration so as to forward the target data to a main control node by the bus based on the routing configuration.
A node interaction method comprises the following steps:
a core data layer of a master control node receives target data transmitted by a bus, determines a subscription interface identifier corresponding to a publishing interface identifier of the target data, inquires a message configuration corresponding to the subscription interface identifier, analyzes the target data by using the message configuration to obtain application data, stores the application data to a global data area, and constructs an incidence relation between the application data and the subscription interface identifier;
and the upper layer application of the main control node determines a subscription interface identifier under the condition that application data needs to be subscribed, calls a preset application program interface corresponding to the subscription interface identifier, and acquires the application data corresponding to the subscription interface identifier in the global data area.
A transmitting node, comprising:
determining application data information by upper application in a sending node, wherein the application data information comprises application data and a release interface identifier; calling a preset application program interface corresponding to the release interface identifier, and releasing the application data to a global data area by using the preset application program interface;
and a core data layer in the sending node extracts the application data from the global data area, inquires the message configuration and the routing configuration corresponding to the issuing interface identifier, converts the application data into target data conforming to the message configuration, and sends the target data to a bus according to the routing configuration so as to forward the target data to a receiving node by the bus based on the routing configuration.
A receiving node, comprising:
a core data layer of a receiving node receives target data transmitted by a bus, determines a subscription interface identifier corresponding to a publishing interface identifier of the target data, inquires a message configuration corresponding to the subscription interface identifier, analyzes the target data by using the message configuration to obtain application data, stores the application data to a global data area, and constructs an incidence relation between the application data and the subscription interface identifier;
and the upper layer application of the receiving node determines a subscription interface identifier under the condition that application data needs to be subscribed, calls a preset application program interface corresponding to the subscription interface identifier, and acquires the application data corresponding to the subscription interface identifier in the global data area.
A node interaction system, comprising:
determining application data information by upper application in a sending node, wherein the application data information comprises application data and a release interface identifier; calling a preset application program interface corresponding to the release interface identifier, and releasing the application data to a global data area by using the preset application program interface;
a core data layer in the sending node extracts the application data from the global data area, inquires message configuration and routing configuration corresponding to the issuing interface identifier, converts the application data into target data conforming to the message configuration, and sends the target data to a bus according to the routing configuration so as to forward the target data to a receiving node by the bus based on the routing configuration;
a core data layer of a receiving node receives target data transmitted by a bus, determines a subscription interface identifier corresponding to a publishing interface identifier of the target data, inquires a message configuration corresponding to the subscription interface identifier, analyzes the target data by using the message configuration to obtain application data, stores the application data to a global data area, and constructs an incidence relation between the application data and the subscription interface identifier;
and the upper layer application of the receiving node determines a subscription interface identifier under the condition that application data needs to be subscribed, calls a preset application program interface corresponding to the subscription interface identifier, and acquires the application data corresponding to the subscription interface identifier in the global data area.
Through the technical means, the following beneficial effects can be realized:
according to the invention, the application program interfaces are constructed in the main control node and the remote node, so that the upper layer application of the main control node and the remote node only needs to face the application program interface without facing the bottom layer communication protocol of the bus, thereby realizing the purpose of shielding the bottom layer communication protocol from the upper layer application, further facilitating the development and application of users and improving the application development efficiency.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a node interaction system disclosed in an embodiment of the present invention;
FIG. 2 is a flowchart of a node interaction method disclosed in the embodiments of the present invention;
FIG. 3 is a flowchart of another node interaction method disclosed in the embodiments of the present invention;
fig. 4 is a schematic diagram of a node according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a schematic structural diagram of a node interaction system is provided for the present invention.
The node interactive system comprises a main Control node (Control Computer) and n Remote nodes (Remote notes), and AS5643 bus communication is adopted between the main Control node and the plurality of Remote nodes. The main control node and the plurality of remote nodes adopt a chain ring network structure.
The diagram shows a master node and n remote nodes, where n is a positive integer. The number of remote nodes may depend on the network topology of the actual node interaction system, which is not limited.
Taking an airplane avionics network as an example, the master control node may be an airplane management computer, and the remote nodes may include a sensor module, a power management module, an inertial navigation module, and the like.
The master node may integrate one or more applications, some of which require data interaction with remote nodes via AS5643 bus. In order to facilitate the development of applications by users, the invention provides a publish-subscribe mechanism based on an AS5643 bus.
The application in the main control node in the publish-subscribe mechanism can publish application data to the AS5643 bus, and the application in the main control node can also subscribe the application data published by the remote node from the AS5643 bus, so that data interaction between the main control node and the remote node is realized.
The publish-subscribe mechanism can realize the separation of upper-layer application and bottom-layer communication protocols, so AS to shield the AS5643 bus bottom-layer communication protocol for the upper-layer application and shield the upper-layer application characteristic for the AS5643 bus, thereby realizing the dual purposes of effectively utilizing the reliability and high-speed bandwidth characteristic of the AS5643 bus and facilitating the development and application of users.
The pre-configuration process of the present invention is described below. Referring to fig. 2, the method comprises the following steps:
step S201: the master control node acquires an interface control document of the node interaction system.
Each node in the node interactive system may include a plurality of interfaces (software interfaces or hardware interfaces), and the plurality of interfaces may be divided into two types of transmission types and reception types. That is, each node may include one or more publish data interfaces of a send type and one or more subscribe data interfaces of a receive type.
After the node interaction system is built by adopting the AS5643 bus, an Interface Control Document (ICD) of the node interaction system can be obtained. The interface control document comprises interface configuration information corresponding to each interface of each node in the node interaction system.
Taking interface configuration information corresponding to an interface of a node as an example, the interface configuration information is explained as follows:
the interface configuration information comprises an interface name, a data type for transmitting application data, message configuration of a node to which the interface belongs, and node identifiers of nodes of both sides connected by the interface.
The data type in the interface configuration information may include an integer type, a boolean type, a floating point type, or a structure type.
The message configuration in the interface configuration information comprises: a start of frame packet configuration, an asynchronous stream packet configuration, and a periodic configuration.
Message configuration is the configuration that the message needs to satisfy in the AS5643 protocol, and most of communication in the AS5643 protocol is realized by using asynchronous stream packets, so the asynchronous stream packet configuration needs to be set.
In order to maintain global synchronization among all nodes on a bus in the AS5643 protocol, the AS5643 protocol specifies that a master node sends a frame start packet on the bus at a fixed frame frequency to notify all nodes on the bus of the start of a new frame, and provides a global synchronization source for the nodes in the bus, so that the configuration of the frame start packet needs to be set.
The node identifiers in the interface configuration information include node identifiers of a sending node and a receiving node which are connected by the interface. One interface is used for connecting the main control node and the remote node, wherein one node is a sending node, and the other node is a receiving node.
Step S202: and the master control node determines the attribute set of each interface based on the configuration information of each interface.
For each interface configuration information, the processing procedure of the master node is consistent, so the procedure of determining the attribute set is described by taking one interface configuration information as an example. The attribute set may include the following attributes, each described below.
(1) And the master control node allocates a unique identifier for the interface.
In order to distinguish the interfaces of the nodes, each interface is assigned a unique identifier.
(2) The main control node constructs an Application Programming Interface (API) for the Interface based on the Interface name and the data type in the Interface configuration information.
In order to shield the bottom layer communication protocol from the upper layer application, an application program interface is set for the interface, so that the upper layer application only needs to face the application program interface, thereby shielding the bottom layer communication protocol.
S1: the master control node constructs the name of an application program interface containing the interface name based on the interface name in the interface configuration information;
s2: the main control node constructs parameters of an application program interface based on the data type in the interface configuration information;
s3: and building the application program interface comprising the name of the application program interface and the parameters of the application program interface.
Taking the interface configuration information of a fuel AS an example, the interface name is FuelOil, the data type is structure type, and the name of the constructed application program interface may be "AS 5643 SubsribeFuelOil", and the parameter of the constructed application program interface is structure AS5643 FuelOil.
Then, the application program interface for fuel: named AS AS5643subsribeFuelOil and the parameter is Struct AS5643 FuelOil.
It should be noted that the application program interface name includes an interface name, and is used for indicating that the application program interface corresponds to the interface.
(3) And constructing a corresponding relation between the interface identification and the application program interface, and constructing a corresponding relation between the interface identification and the message configuration in the interface configuration information.
Interface Interface identification API Message configuration
Interface 1 Interface identifier 1 API 1 Message configuration 1
Interface 2 Interface identification 2 API 2 Message configuration 2
…… …… …… ……
For an interface, the interface identifier, the application program interface, and the corresponding relationship between the interface identifier and the application program interface are all interface attributes, and a plurality of attributes form an attribute set of the interface.
Step S203: the master control node sends the interface configuration information and the attribute set of each interface to the node to which the interface belongs, so that the node stores the interface configuration information and the attribute set.
Taking a node as an example, the node comprises an interface 1 and an interface 2. The interface configuration information 1 and the attribute set 1 corresponding to the interface 1 of the node are stored in the node, and the interface configuration information 2 and the attribute set 2 corresponding to the interface 2 are also stored in the node.
The method is suitable for data interaction between the remote node and the main control node, and under the condition that the main control node issues data to the remote node, the main control node is a sending node, and the remote node is a receiving node. And under the condition that the remote node issues data to the main control node, the remote node is a sending node, and the main control node is a receiving node.
The following describes in detail a data interaction process between a sending node and a receiving node, taking the sending node and the receiving node as an example.
The invention provides a node interaction method, which can comprise the following steps as shown in figure 3:
step S301: the upper layer application in the sending node determines the application data information.
And the upper layer application in the sending node determines the application data and the release interface identifier needed by the application data and generates application data information comprising the application data and the release interface identifier.
For example, when a fuel quantity control application in the master control node needs to send fuel data to a remote engine node through a fuel data publishing interface, it may be determined that the publishing interface identifier is the identifier of the fuel data publishing interface.
The sending node generates application data information containing receiving node identification, issuing interface identification and application data. The receiving node identifier may be a name or an IP address of the receiving node, and the specific implementation may be determined according to an actual scenario, which is not limited in the present invention.
Step S302: and calling a preset application program interface corresponding to the release interface identifier by the upper application in the sending node.
The sending node is stored with a preset application program interface corresponding to the issuing interface identifier in advance and the corresponding relation between the issuing interface identifier and the preset application program interface, so that the sending node can inquire and obtain the preset application program interface corresponding to the issuing interface identifier.
Step S303: and the upper layer application in the sending node utilizes a preset application program interface to issue application data information to the global data area.
Step S304: and the core data layer in the sending node acquires the application data in the global data area.
Under the condition that the upper layer application does not need to face the bottom layer communication protocol, the core data layer realizes the bottom layer communication protocol, so the core data layer obtains the application data from the global data area.
Step S305: and inquiring message configuration and routing configuration corresponding to the issuing interface identification by a core data layer in the sending node.
Because the message configuration of the publishing interface identifier is stored in advance and the corresponding relation between the publishing interface identifier and the message configuration is stored, the core data layer can inquire and obtain the message configuration corresponding to the publishing interface identifier.
Since the interface configuration information for issuing the interface identifier is stored in advance, the interface configuration information includes the node identifier, and the node identifier includes the address of the receiving node. The core data layer in the sending node may determine the routing configuration of the receiving node based on the receiving node address.
Step S306: the core data layer in the sending node converts the application data into target data conforming to the message configuration.
After determining the message configuration, the core data layer in the sending node may convert the application data so that the application data conforms to the message configuration so AS to be suitable for the underlying communication protocol of the AS5643 bus.
Step S307: the core data layer in the sending node sends the target data to the bus according to the routing configuration, so that the bus forwards the target data to the receiving node based on the routing configuration.
The core data layer of the sending node may send the destination data and the routing configuration to the bus for the bus to send the destination data to the receiving node based on the routing configuration. The bus routing process is well-established and will not be described in detail herein.
Step S308: and the core data layer in the receiving node receives the target data transmitted by the bus.
Step S309: and the core data layer of the receiving node determines a subscription interface identifier corresponding to the publishing interface identifier and inquires the message configuration corresponding to the subscription interface identifier.
Since the publishing interface identifier and the subscribing interface identifier have a corresponding relationship, for example, a corresponding relationship exists between the fuel publishing interface and the fuel receiving interface, the subscribing interface identifier corresponding to the publishing interface identifier can be determined.
The receiving node stores the message configuration corresponding to the subscription interface identifier and the corresponding relationship between the subscription interface identifier and the message configuration, so that the message configuration corresponding to the subscription interface identifier can be obtained after inquiry.
Step S310: and the core data layer of the receiving node analyzes the target data by using the message configuration to acquire the application data.
The message configuration of the publishing interface is associated with the message configuration of the subscribing interface, so that the message configuration corresponding to the subscribing interface identifier can be used for analyzing the target data, thereby obtaining the application data of the stripped AS5643 bus bottom layer communication protocol.
Step S311: and the core data layer of the receiving node stores the application data to the global data area and constructs the incidence relation between the application data and the subscription interface identifier.
The receiving node stores the application data to the global data area and builds the incidence relation between the application data and the subscription interface so that the receiving node can acquire the application data from the global data area.
Step S312: and determining the subscription interface identifier by the upper layer application of the receiving node under the condition that the application data needs to be subscribed.
And the generation application of the receiving node determines the subscription data interface identifier under the condition that the subscription application data needs to be acquired.
Step S313: and the upper layer application of the receiving node calls a preset application program interface corresponding to the subscription interface identifier.
Step S314: the upper layer of the receiving node is applied to the global data area to obtain the application data corresponding to the subscription interface identifier.
Referring to fig. 4, the present invention also provides a transmitting node, including:
determining application data information by upper application in a sending node, wherein the application data information comprises application data and a release interface identifier; calling a preset application program interface corresponding to the release interface identifier, and releasing application data to the global data area by using the preset application program interface;
and a core data layer in the sending node extracts application data from the global data area, inquires message configuration and routing configuration corresponding to the issuing interface identifier, converts the application data into target data conforming to the message configuration, sends the target data to the bus according to the routing configuration, and forwards the target data to the receiving node by the bus based on the routing configuration.
Referring to fig. 4, the present invention also provides a receiving node, including:
a core data layer of a receiving node receives target data transmitted by a bus, determines a subscription interface identifier corresponding to a publishing interface identifier of the target data, inquires a message configuration corresponding to the subscription interface identifier, analyzes the target data by using the message configuration to obtain application data, stores the application data to a global data area, and constructs an incidence relation between the application data and the subscription interface identifier;
and the upper layer application of the receiving node determines a subscription interface identifier under the condition that the application data needs to be subscribed, calls a preset application program interface corresponding to the subscription interface identifier, and acquires the application data corresponding to the subscription interface identifier in the global data area.
The invention also provides a node interaction system, comprising:
determining application data information by upper application in a sending node, wherein the application data information comprises application data and a release interface identifier; calling a preset application program interface corresponding to the release interface identifier, and releasing application data to the global data area by using the preset application program interface;
a core data layer in the sending node extracts application data from the global data area, inquires message configuration and route configuration corresponding to the issuing interface identifier, converts the application data into target data conforming to the message configuration, sends the target data to a bus according to the route configuration, and forwards the target data to a receiving node by the bus based on the route configuration;
a core data layer of a receiving node receives target data transmitted by a bus, determines a subscription interface identifier corresponding to a publishing interface identifier of the target data, inquires a message configuration corresponding to the subscription interface identifier, analyzes the target data by using the message configuration to obtain application data, stores the application data to a global data area, and constructs an incidence relation between the application data and the subscription interface identifier;
and the upper layer application of the receiving node determines a subscription interface identifier under the condition that the application data needs to be subscribed, calls a preset application program interface corresponding to the subscription interface identifier, and acquires the application data corresponding to the subscription interface identifier in the global data area.
Under the condition that the sending node is a master control node, the receiving node is a remote node, and the node interaction method is that the master control node issues application data to the remote node;
and under the condition that the sending node is a remote node, the receiving node is a main control node, and the node interaction method is that the main control node subscribes application data from the remote node.
The functions described in the method of the present embodiment, if implemented in the form of software functional units and sold or used as independent products, may be stored in a storage medium readable by a computing device. Based on such understanding, part of the contribution of the embodiments of the present invention to the prior art or part of the technical solution may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computing device (which may be a personal computer, a server, a mobile computing device, a network device, or the like) to execute all or part of the steps of the method described in the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (9)

1. A node interaction method is characterized by comprising the following steps:
determining application data information by upper-layer application in a master control node, wherein the application data information comprises application data and a release interface identifier; calling a preset application program interface corresponding to the release interface identifier, and releasing the application data to a global data area of an AS5643 bus by using the preset application program interface;
a core data layer in the main control node extracts the application data from the global data area, inquires message configuration and route configuration corresponding to the release interface identifier, converts the application data into target data conforming to the message configuration, and sends the target data to a bus according to the route configuration, so that the target data is forwarded to a remote node by the bus based on the route configuration, and the AS5643 bus communication is adopted between the main control node and the remote node;
before the upper layer application in the master control node determines the application data information, the method further comprises the following steps:
the master control node acquires an interface control document of the node interaction system; the interface control document comprises N interface configuration information corresponding to N interfaces of each node in the node interaction system one to one; the interface configuration information of one interface comprises an interface name, a data type for transmitting application data, message configuration of a node to which the interface belongs and node identifications of nodes of two sides connected by the interface;
the master control node determines an attribute set of each interface based on each interface configuration information, wherein the attribute set comprises a corresponding relation between an interface identifier and an application program interface and a corresponding relation between the interface identifier and message configuration in the interface configuration information;
the master control node sends the interface configuration information and the attribute set of each interface to the node to which the interface belongs, so that the node stores the interface configuration information and the attribute set.
2. The method of claim 1, wherein the master node determining the set of attributes for each interface based on each interface configuration information comprises:
the master control node allocates a unique interface identifier for the interface;
the master control node constructs an application program interface for the interface based on the interface name and the data type in the interface configuration information;
the master control node constructs a corresponding relation between the interface identification and the application program interface, and constructs a corresponding relation between the interface identification and the message configuration in the interface configuration information.
3. The method of claim 2, wherein the master node constructs an application program interface for the interface based on the interface name and the data type in the interface configuration information, comprising:
the master control node constructs the name of an application program interface containing the interface name based on the interface name in the interface configuration information;
the main control node constructs parameters of an application program interface based on the data type in the interface configuration information;
and establishing the application program interface comprising the name of the application program interface and the parameters of the application program interface.
4. A node interaction method is characterized by comprising the following steps:
a core data layer of a remote node receives target data transmitted by an AS5643 bus, determines a subscription interface identifier corresponding to a publishing interface identifier of the target data, inquires a message configuration corresponding to the subscription interface identifier, analyzes the target data by using the message configuration to acquire application data, stores the application data to a global data area, and constructs an incidence relation between the application data and the subscription interface identifier;
the upper layer application of the remote node determines a subscription interface identifier under the condition that application data need to be subscribed, calls a preset application program interface corresponding to the subscription interface identifier, and acquires the application data corresponding to the subscription interface identifier in the global data area;
the process of the main control node for configuration comprises the following steps:
the master control node acquires an interface control document of the node interaction system; the interface control document comprises N interface configuration information corresponding to N interfaces of each node in the node interaction system one to one; the interface configuration information of one interface comprises an interface name, a data type for transmitting application data, message configuration of a node to which the interface belongs and node identifications of nodes of two sides connected by the interface;
the master control node determines an attribute set of each interface based on each interface configuration information, wherein the attribute set comprises a corresponding relation between an interface identifier and an application program interface and a corresponding relation between the interface identifier and message configuration in the interface configuration information;
the master control node sends the interface configuration information and the attribute set of each interface to the node to which the interface belongs, so that the node stores the interface configuration information and the attribute set.
5. A node interaction method is characterized by comprising the following steps:
determining application data information by upper-layer application in a remote node, wherein the application data information comprises application data and a release interface identifier; calling a preset application program interface corresponding to the release interface identifier, and releasing the application data to an AS5643 bus global data area by using the preset application program interface;
a core data layer in a remote node extracts the application data from the global data area, inquires message configuration and routing configuration corresponding to the release interface identifier, converts the application data into target data conforming to the message configuration, and sends the target data to a bus according to the routing configuration, so that the bus forwards the target data to a main control node based on the routing configuration, and the main control node and the remote node communicate by adopting an AS5643 bus;
the process of the main control node for configuration comprises the following steps:
the master control node acquires an interface control document of the node interaction system; the interface control document comprises N interface configuration information corresponding to N interfaces of each node in the node interaction system one to one; the interface configuration information of one interface comprises an interface name, a data type for transmitting application data, message configuration of a node to which the interface belongs and node identifications of nodes of two sides connected by the interface;
the master control node determines an attribute set of each interface based on each interface configuration information, wherein the attribute set comprises a corresponding relation between an interface identifier and an application program interface and a corresponding relation between the interface identifier and message configuration in the interface configuration information;
the master control node sends the interface configuration information and the attribute set of each interface to the node to which the interface belongs, so that the node stores the interface configuration information and the attribute set.
6. A node interaction method is characterized by comprising the following steps:
a core data layer of a main control node receives target data transmitted by an AS5643 bus, determines a subscription interface identifier corresponding to a publishing interface identifier of the target data, inquires a message configuration corresponding to the subscription interface identifier, analyzes the target data by using the message configuration to obtain application data, stores the application data to a global data area, and constructs an incidence relation between the application data and the subscription interface identifier;
determining a subscription interface identifier by the upper layer application of the main control node under the condition that application data needs to be subscribed, calling a preset application program interface corresponding to the subscription interface identifier, and acquiring the application data corresponding to the subscription interface identifier in the global data area;
the process of the main control node for configuration comprises the following steps:
the master control node acquires an interface control document of the node interaction system; the interface control document comprises N interface configuration information corresponding to N interfaces of each node in the node interaction system one to one; the interface configuration information of one interface comprises an interface name, a data type for transmitting application data, message configuration of a node to which the interface belongs and node identifications of nodes of two sides connected by the interface;
the master control node determines an attribute set of each interface based on each interface configuration information, wherein the attribute set comprises a corresponding relation between an interface identifier and an application program interface and a corresponding relation between the interface identifier and message configuration in the interface configuration information;
the master control node sends the interface configuration information and the attribute set of each interface to the node to which the interface belongs, so that the node stores the interface configuration information and the attribute set.
7. A transmitting node, comprising:
determining application data information by upper application in a sending node, wherein the application data information comprises application data and a release interface identifier; calling a preset application program interface corresponding to the release interface identifier, and releasing the application data to a global data area of an AS5643 bus by using the preset application program interface;
a core data layer in a sending node extracts the application data from the global data area, inquires message configuration and routing configuration corresponding to the issuing interface identifier, converts the application data into target data conforming to the message configuration, and sends the target data to a bus according to the routing configuration, so that the bus forwards the target data to a receiving node based on the routing configuration, and the AS5643 bus communication is adopted between the master control node and a remote node;
the process of the main control node for configuration comprises the following steps:
the master control node acquires an interface control document of the node interaction system; the interface control document comprises N interface configuration information corresponding to N interfaces of each node in the node interaction system one to one; the interface configuration information of one interface comprises an interface name, a data type for transmitting application data, message configuration of a node to which the interface belongs and node identifications of nodes of two sides connected by the interface;
the master control node determines an attribute set of each interface based on each interface configuration information, wherein the attribute set comprises a corresponding relation between an interface identifier and an application program interface and a corresponding relation between the interface identifier and message configuration in the interface configuration information;
the master control node sends the interface configuration information and the attribute set of each interface to the node to which the interface belongs, so that the node stores the interface configuration information and the attribute set.
8. A receiving node, comprising:
a core data layer of a receiving node receives target data transmitted by an AS5643 bus, determines a subscription interface identifier corresponding to a publishing interface identifier of the target data, inquires a message configuration corresponding to the subscription interface identifier, analyzes the target data by using the message configuration to acquire application data, stores the application data to a global data area, and constructs an incidence relation between the application data and the subscription interface identifier;
determining a subscription interface identifier by the upper layer application of the receiving node under the condition that application data needs to be subscribed, calling a preset application program interface corresponding to the subscription interface identifier, and acquiring the application data corresponding to the subscription interface identifier in the global data area;
the process of the main control node for configuration comprises the following steps:
the master control node acquires an interface control document of the node interaction system; the interface control document comprises N interface configuration information corresponding to N interfaces of each node in the node interaction system one to one; the interface configuration information of one interface comprises an interface name, a data type for transmitting application data, message configuration of a node to which the interface belongs and node identifications of nodes of two sides connected by the interface;
the master control node determines an attribute set of each interface based on each interface configuration information, wherein the attribute set comprises a corresponding relation between an interface identifier and an application program interface and a corresponding relation between the interface identifier and message configuration in the interface configuration information;
the master control node sends the interface configuration information and the attribute set of each interface to the node to which the interface belongs, so that the node stores the interface configuration information and the attribute set.
9. A node interaction system, comprising:
determining application data information by upper application in a sending node, wherein the application data information comprises application data and a release interface identifier; calling a preset application program interface corresponding to the release interface identifier, and releasing the application data to a global data area of an AS5643 bus by using the preset application program interface;
a core data layer in a sending node extracts the application data from the global data area, inquires message configuration and routing configuration corresponding to the issuing interface identifier, converts the application data into target data conforming to the message configuration, and sends the target data to a bus according to the routing configuration, so that the bus forwards the target data to a receiving node based on the routing configuration, and the AS5643 bus communication is adopted between the sending node and the receiving node;
a core data layer of a receiving node receives target data transmitted by the AS5643 bus, determines a subscription interface identifier corresponding to a publishing interface identifier of the target data, inquires a message configuration corresponding to the subscription interface identifier, analyzes the target data by using the message configuration to acquire application data, stores the application data to a global data area, and constructs an association relationship between the application data and the subscription interface identifier;
determining a subscription interface identifier by the upper layer application of the receiving node under the condition that application data needs to be subscribed, calling a preset application program interface corresponding to the subscription interface identifier, and acquiring the application data corresponding to the subscription interface identifier in the global data area;
the process of the main control node for configuration comprises the following steps:
the master control node acquires an interface control document of the node interaction system; the interface control document comprises N interface configuration information corresponding to N interfaces of each node in the node interaction system one to one; the interface configuration information of one interface comprises an interface name, a data type for transmitting application data, message configuration of a node to which the interface belongs and node identifications of nodes of two sides connected by the interface;
the master control node determines an attribute set of each interface based on each interface configuration information, wherein the attribute set comprises a corresponding relation between an interface identifier and an application program interface and a corresponding relation between the interface identifier and message configuration in the interface configuration information;
the master control node sends the interface configuration information and the attribute set of each interface to the node to which the interface belongs, so that the node stores the interface configuration information and the attribute set.
CN201811635949.3A 2018-12-29 2018-12-29 Node and node interaction method and system Active CN109510748B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811635949.3A CN109510748B (en) 2018-12-29 2018-12-29 Node and node interaction method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811635949.3A CN109510748B (en) 2018-12-29 2018-12-29 Node and node interaction method and system

Publications (2)

Publication Number Publication Date
CN109510748A CN109510748A (en) 2019-03-22
CN109510748B true CN109510748B (en) 2021-06-29

Family

ID=65756865

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811635949.3A Active CN109510748B (en) 2018-12-29 2018-12-29 Node and node interaction method and system

Country Status (1)

Country Link
CN (1) CN109510748B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110365584B (en) * 2019-08-06 2022-03-01 北京润科通用技术有限公司 Network management method and device
CN113282400B (en) * 2021-06-29 2022-06-17 中国平安人寿保险股份有限公司 Application publishing method, device, equipment and storage medium based on interface routing
CN115118772A (en) * 2022-06-21 2022-09-27 壹沓科技(上海)有限公司 Message communication system and method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104601544A (en) * 2014-12-05 2015-05-06 中国航空工业集团公司第六三一研究所 Aviation data service communication method for airborne network service system
CN106533871A (en) * 2016-11-10 2017-03-22 北京润科通用技术有限公司 Release subscription method and system based on AFDX bus
CN106940642A (en) * 2017-01-13 2017-07-11 西南电子技术研究所(中国电子科技集团公司第十研究所) The simulated-bus device system of dynamic I CD configurations
CN107241234A (en) * 2017-08-09 2017-10-10 北京润科通用技术有限公司 A kind of AS5643 network simulation methods and system
CN107977323A (en) * 2017-11-24 2018-05-01 中国航空工业集团公司西安航空计算技术研究所 A kind of AFDX Bus simulator methods based on Ethernet
CN108199865A (en) * 2017-12-07 2018-06-22 中国航空工业集团公司西安航空计算技术研究所 A kind of route service implementation method based on distribution subscription
CN109101373A (en) * 2017-06-20 2018-12-28 北京航空航天大学 General-utility test platform based on subscription/publication mode

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104601544A (en) * 2014-12-05 2015-05-06 中国航空工业集团公司第六三一研究所 Aviation data service communication method for airborne network service system
CN106533871A (en) * 2016-11-10 2017-03-22 北京润科通用技术有限公司 Release subscription method and system based on AFDX bus
CN106940642A (en) * 2017-01-13 2017-07-11 西南电子技术研究所(中国电子科技集团公司第十研究所) The simulated-bus device system of dynamic I CD configurations
CN109101373A (en) * 2017-06-20 2018-12-28 北京航空航天大学 General-utility test platform based on subscription/publication mode
CN107241234A (en) * 2017-08-09 2017-10-10 北京润科通用技术有限公司 A kind of AS5643 network simulation methods and system
CN107977323A (en) * 2017-11-24 2018-05-01 中国航空工业集团公司西安航空计算技术研究所 A kind of AFDX Bus simulator methods based on Ethernet
CN108199865A (en) * 2017-12-07 2018-06-22 中国航空工业集团公司西安航空计算技术研究所 A kind of route service implementation method based on distribution subscription

Also Published As

Publication number Publication date
CN109510748A (en) 2019-03-22

Similar Documents

Publication Publication Date Title
US11368522B2 (en) Lightweight IoT information model
KR102116401B1 (en) Cross resource subscription to M2M service layer
KR101877188B1 (en) Service layer interworking using mqtt protocol
EP3861706B1 (en) Framework for dynamic brokerage and management of topics and data at the service layer
JP6524264B2 (en) Method and apparatus for analyzing and grouping service layer subscriptions and notifications to increase efficiency
WO2015081786A1 (en) Method and apparatus for implementing subscription notification
CN109510748B (en) Node and node interaction method and system
EP2835938B1 (en) Message publishing and subscribing method and apparatus
CN103795689A (en) Resource subscription method and device
CN112055078B (en) Data transmission method, device, computer equipment and storage medium
KR102500594B1 (en) Service Layer Message Templates in Communication Networks
JP6169662B2 (en) API conversion adapter, API conversion system, and API conversion program
CN107368334B (en) Business plug-in interaction system and method
CN108965359B (en) Communication method, communication device, readable medium, and electronic apparatus
CN116996421B (en) Network quality detection method and related equipment
CN112383924B (en) Base station equipment management method, device and system
KR100731021B1 (en) Mobile telecommunication device and system having function for managing messages, and method thereby
CN116225736A (en) Fusion method, device, equipment and storage medium of multiple ROS systems
WO2018095325A1 (en) Information notification method, device, and system
CN117499975A (en) Application detection method and device, computer readable storage medium and electronic equipment
CN116629340A (en) Method, device, equipment and storage medium for updating model
KR101350477B1 (en) A method for sending and receiving bulk data through m2m architecture
CN117499396A (en) Data processing method and device based on cloud native platform system
CN113381990A (en) Method and system for intercommunication between on-demand terminals
JP2003188924A (en) Internet communication transfer system enabling information in local system not having global fixed ip address to be distributed on internet

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant