CN113645082B - AS5643 network dynamic simulation test method and device - Google Patents
AS5643 network dynamic simulation test method and device Download PDFInfo
- Publication number
- CN113645082B CN113645082B CN202110988740.0A CN202110988740A CN113645082B CN 113645082 B CN113645082 B CN 113645082B CN 202110988740 A CN202110988740 A CN 202110988740A CN 113645082 B CN113645082 B CN 113645082B
- Authority
- CN
- China
- Prior art keywords
- node
- message
- simulation
- module
- information
- 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
Links
- 238000005094 computer simulation Methods 0.000 title claims abstract description 64
- 238000010998 test method Methods 0.000 title claims description 22
- 238000004088 simulation Methods 0.000 claims abstract description 244
- 238000012360 testing method Methods 0.000 claims abstract description 94
- 238000000034 method Methods 0.000 claims abstract description 35
- 238000004806 packaging method and process Methods 0.000 claims description 23
- 238000012544 monitoring process Methods 0.000 claims description 14
- 238000012856 packing Methods 0.000 claims description 8
- 230000008676 import Effects 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 12
- 238000013461 design Methods 0.000 description 10
- 238000004590 computer program Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 230000005540 biological transmission Effects 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- 230000006854 communication Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000003068 static effect Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000011981 development test Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000012827 research and development Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/14—Network analysis or design
- H04L41/145—Network analysis or design involving simulating, designing, planning or modelling of a network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The method and the device for dynamic simulation test of the AS5643 network can import an interface control file, wherein the interface control file comprises node attribute configuration information, node message information and at least one message variable information corresponding to the node message information of each simulation node. Generating a node configuration file based on node attribute configuration information in the interface control file, and generating an equipment model based on node message information in the interface control file and message variable information corresponding to the node message information. Based on the node configuration files of the simulation nodes, the equipment model corresponding to the simulation nodes is accessed into the AS5643 network to perform dynamic simulation test, and a simulation test result is obtained. According to the method and the system, the real working scene is highly simulated through the simulation nodes, the AS5643 network is subjected to dynamic simulation test, accurate simulation test results can be obtained, and the AS5643 network is optimized according to the simulation test results.
Description
Technical Field
The disclosure relates to the technical field of AS5643 network protocols, in particular to a method and a device for dynamic simulation test of an AS5643 network.
Background
AS5643 is used for the 1394B interface on the aircraft, adding deterministic constraints to the IEEE-1394B specification protocol for transmission to meet the requirements of high bandwidth, high certainty, and high reliability of avionics systems. The AS5643 network has complex topology, and when designing the system, the configuration of a control node (CC) and each Remote Node (RN) needs to be considered, so that the real-time performance and the reliability of the AS5643 network are ensured. After the design is completed, the hardware is required to be waited for to be completed, the design is iterated according to the verification result, and the AS5643 network is ensured to be in the optimal design.
Currently, the design of the AS5643 network is a complex problem, and if the AS5643 network is improperly designed, the problems of uncertainty, reliability and the like are not satisfied in the communication process. After the AS5643 network design is complete, a static estimation method is generally used to estimate the bandwidth of the entire AS5643 network, and then network bandwidth verification is performed after all equipment development is completed. However, the bandwidth estimated by the static estimation method does not take into account the performance of the device and the characteristics of the 1394B interface physical layer, making bandwidth prediction inaccurate. If the load of the remote node or AS5643 bus is too high, the topology of the whole system needs to be changed, so that the design, research and development and test are iterated continuously, the period is long, and the workload is large.
Disclosure of Invention
In view of the above problems, the present disclosure provides a method and an apparatus for dynamic simulation testing of an AS5643 network, which overcome or at least partially solve the above problems, and the technical solution is AS follows:
an AS5643 network dynamic simulation test method comprises the following steps:
importing an interface control file, wherein the interface control file comprises node attribute configuration information of each simulation node, at least one node message information and at least one message variable information corresponding to the node message information;
generating node configuration files corresponding to the simulation nodes based on the node attribute configuration information of the simulation nodes;
Generating equipment models corresponding to the simulation nodes respectively based on the at least one node message information of the simulation nodes and at least one message variable information corresponding to the node message information;
based on the node configuration file of each simulation node, accessing the equipment model corresponding to each simulation node into an AS5643 network to perform dynamic simulation test, and obtaining a simulation test result.
Optionally, the node message information includes at least a message ID and a message ICD, and the generating, based on the at least one node message information of each of the simulation nodes and at least one message variable information corresponding to the node message information, an equipment model corresponding to each of the simulation nodes includes:
Establishing an association relationship between the message ID and the message ICD based on the message ID and the message ICD in the at least one node message information of each simulation node;
Generating message configuration files corresponding to the node message information based on the at least one node message information of each simulation node; generating a Simulink message read-write module corresponding to the message configuration file according to the message configuration file, and determining that the identifier of the Simulink message read-write module is the message ID in the node message information corresponding to the message configuration file;
Generating a packaging module and an unpacking module corresponding to the message variable information based on the at least one message variable information corresponding to the node message information, and determining the message ICD in the node message information corresponding to the message variable information by the packaging module and the unpacking module;
according to the association relation between the message ID and the message ICD, establishing read-write association between the Simulink message read-write module corresponding to the same node message information and the packaging module and the unpacking module;
For any one of the simulation nodes: and combining the packaging module and the unpacking module corresponding to the simulation node to generate an equipment model corresponding to the simulation node.
Optionally, the AS5643 network dynamic simulation test method further includes:
And respectively creating a variable input pin and a variable output pin corresponding to each message variable information in the Simulink message read-write module corresponding to the node message information based on the at least one message variable information corresponding to the node message information.
Optionally, at any of the pair of simulation nodes: the packing module and the unpacking module corresponding to the simulation node are combined, and after the equipment model corresponding to the simulation node is generated, the method further comprises:
And adding a load statistics module to the equipment model so that the load statistics module can carry out statistics on network load information of the node interface.
Optionally, the load statistics module includes a statistics writing bandwidth module and a statistics reading bandwidth module, and the adding the load statistics module to the device model includes:
Adding the statistic writing bandwidth module to the packaging module in the equipment model so that the statistic writing bandwidth module can count the writing bandwidth of the equipment model;
And adding the statistic read bandwidth module to the unpacking module in the equipment model so that the statistic read bandwidth module can count the read bandwidth of the equipment model.
Optionally, based on the node configuration file of each simulation node, the dynamic simulation test is performed by accessing the device model corresponding to each simulation node into an AS5643 network, so AS to obtain a simulation test result, including:
Based on the node configuration files of the simulation nodes, hardware parameters of AS5643 simulation boards corresponding to the simulation nodes are respectively configured;
And accessing the equipment model corresponding to each simulation node into an AS5643 network to perform dynamic simulation test through the AS5643 simulation board cards with the configured hardware parameters, and obtaining a simulation test result.
Optionally, the node attribute configuration information at least includes a node type, a node identifier, a node rate, and frame start packet information.
Optionally, the node type includes a control type and a remote type, and the dynamically simulating test is performed by accessing the device model corresponding to each simulation node into an AS5643 network based on the node configuration file of each simulation node, so AS to obtain a simulation test result, including:
Determining the simulation node with the node type being the control type as a simulation master node, and determining the simulation node with the node type being the remote type as a simulation slave node;
Downloading the equipment model corresponding to the simulation master node to a first simulation computer based on the node configuration file of the simulation master node;
Based on the node configuration file of the simulation slave node, downloading the equipment model corresponding to the simulation slave node into a second simulation computer;
and accessing the first simulation computer and the second simulation computer into an AS5643 network to perform dynamic simulation test, and obtaining a simulation test result.
Optionally, the AS5643 network dynamic simulation test method further includes:
Configuring a monitoring node; and accessing the monitoring node into the AS5643 network to count the bandwidth data of the AS5643 network in each preset period.
An AS5643 network dynamic simulation test device, comprising: an interface control file importing unit, a node configuration file generating unit, an equipment model generating unit and a simulation testing unit,
The interface control file importing unit is used for importing an interface control file, wherein the interface control file comprises node attribute configuration information of each simulation node, at least one node message information and at least one message variable information corresponding to the node message information;
The node configuration file generating unit is used for respectively generating node configuration files corresponding to the simulation nodes based on the node attribute configuration information of the simulation nodes;
The device model generating unit is configured to generate a device model corresponding to each simulation node based on the at least one node message information of each simulation node and at least one message variable information corresponding to the node message information;
The simulation test unit is used for accessing the equipment model corresponding to each simulation node into an AS5643 network for dynamic simulation test based on the node configuration file of each simulation node, and obtaining a simulation test result.
By means of the technical scheme, the AS5643 network dynamic simulation test method and device can be used for importing an interface control file, wherein the interface control file comprises node attribute configuration information, node message information and at least one message variable information corresponding to the node message information of each simulation node. Generating a node configuration file based on node attribute configuration information in the interface control file, and generating an equipment model based on node message information in the interface control file and message variable information corresponding to the node message information. Based on the node configuration files of the simulation nodes, the equipment model corresponding to the simulation nodes is accessed into the AS5643 network to perform dynamic simulation test, and a simulation test result is obtained. According to the method and the system, the real working scene is highly simulated through the simulation nodes, the AS5643 network is subjected to dynamic simulation test, an accurate simulation test result is obtained, and the AS5643 network is optimized according to the simulation test result.
The foregoing description is merely an overview of the technical solutions of the present disclosure, and may be implemented according to the content of the specification in order to make the technical means of the present disclosure more clearly understood, and in order to make the above and other objects, features and advantages of the present disclosure more clearly understood, the following specific embodiments of the present disclosure are specifically described.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the disclosure. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
FIG. 1 is a schematic diagram of an embodiment of the AS5643 network dynamic simulation test method provided in FIG. 1 in accordance with an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of another implementation of the AS5643 network dynamic simulation test method provided in FIG. 1 for an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of another implementation of the AS5643 network dynamic simulation test method provided in FIG. 1 for an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of another implementation of the AS5643 network dynamic simulation test method provided by the embodiment of the present disclosure in FIG. 1;
fig. 5 shows a schematic structural diagram of an AS5643 network dynamic simulation test device according to an embodiment of the present disclosure;
Fig. 6 shows a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Fig. 1 is a schematic diagram of one implementation manner of an AS5643 network dynamic simulation test method provided by an embodiment of the present disclosure, where the AS5643 network dynamic simulation test method includes:
s100, importing an interface control file, wherein the interface control file comprises node attribute configuration information of each simulation node, at least one node message information and at least one message variable information corresponding to the node message information.
After the AS5643 network design is completed, the AS5643 network generates a corresponding interface control file (INTERFACE CONTROL DOCUMENT, ICD). The embodiment of the disclosure can import the interface control file after the AS5643 network design is completed. The interface control file may include node attribute configuration information of each simulation node, at least one node message information, and at least one message variable information corresponding to the node message information. The interface control file may also include connection information between the various emulated nodes. The connection information is used to describe the connection relationship between the emulated nodes.
Optionally, the node attribute configuration information may include at least a node type, a node identifier, a node rate, and start of frame packet information. The node types may include control types and remote types, among others. It will be appreciated that the frame start packet information is used to describe the configuration of the frame start packet, and may specifically include information such as a frame start packet transmission period. The simulation node with the node type being the control type is a control (CC) node, and the simulation node with the node type being the remote type is a Remote (RN) node. In a typical case, the interface control file includes information about at least one control node and at least one remote node.
It will be appreciated that in the interface control file, a simulation node may have multiple node message information. Alternatively, the node message information may include at least a message ID and a message ICD. The node message information may also include the number of messages.
It is understood that one node message information may correspond to a plurality of message variable information. The message variable information may include an input/output direction of the variable, a type of the variable, and offset information of the variable in node message information corresponding to the message variable information.
S200, respectively generating node configuration files corresponding to the simulation nodes based on the node attribute configuration information of the simulation nodes.
The node configuration file corresponding to the simulation node at least comprises the node type, the node rate and the frame start packet sending period of the simulation node. According to the embodiment of the disclosure, the hardware parameters related to the AS5643 simulation board card corresponding to the simulation node can be configured according to the node configuration file of the simulation node. The AS5643 emulation board is also called AS AS5643 emulation card, and is an interface board adopting a 1394B interface physical layer and used for the AS5643 and IEEE1394 data bus communication.
According to the embodiment of the disclosure, the node configuration file is generated by utilizing the node attribute configuration information of the simulation nodes in the interface control file, and the hardware configuration of the AS5643 simulation board card is realized according to the node configuration file, so that the hardware parameters of real equipment accessed to the AS5643 network are more similar when the AS5643 network is subjected to dynamic simulation test.
S300, respectively generating equipment models corresponding to the simulation nodes based on at least one node message information of the simulation nodes and at least one message variable information corresponding to the node message information.
Specifically, based on the AS5643 network dynamic simulation test method shown in fig. 1, AS shown in fig. 2, step S300 may include:
S310, based on the message ID and the message ICD in at least one node message information of each simulation node, establishing an association relationship between the message ID and the message ICD.
Specifically, the embodiment of the disclosure may establish an association relationship between a message ID and a message ICD in a node message information, so as to form a table corresponding to the message ID and the message ICD.
S320, respectively generating message configuration files corresponding to the node message information based on at least one node message information of each simulation node.
The message configuration files correspond to the node message information one by one. According to the embodiment of the disclosure, according to the node message information, the message configuration file corresponding to the node message information can be generated. It can be understood that the message configuration file of the same simulation node has a corresponding relationship with the node configuration file.
S330, generating a Simulink message read-write module corresponding to the message configuration file according to the message configuration file, and determining the identification of the Simulink message read-write module as the message ID in the node message information corresponding to the message configuration file.
Specifically, according to the embodiment of the disclosure, the Simulink message read-write module corresponding to the message configuration file can be automatically generated according to the message configuration file. The Simulink message read-write module is a module designed based on a visual simulation tool in MATLAB and can be used for dynamic simulation. After the Simulink message read-write module is generated, the embodiment of the disclosure determines the message ICD in the node message information corresponding to the Simulink message read-write module as the unique identifier of the Simulink message read-write module.
According to the embodiment of the disclosure, the Simulink message read-write module is generated by using the node message information in the interface control file, so that the related hardware corresponding to the simulation node can perform read-write operation by using the Simulink message read-write module.
S340, based on at least one message variable information corresponding to the node message information, generating a packaging module and a unpacking module corresponding to the message variable information, and determining that the identification of the packaging module and the unpacking module is the message ICD in the node message information corresponding to the message variable information.
Optionally, the embodiment of the disclosure may generate the packaging module and the unpacking module corresponding to the message variable information based on the type of the variable in the message variable information and the offset information of the variable in the node message information corresponding to the message variable information.
The packaging module can be used for simulating a process of transmitting data by the real equipment, and the unpacking module can be used for simulating a process of receiving data by the real equipment.
Optionally, the embodiment of the disclosure may create a variable input pin and a variable output pin corresponding to each message variable information in the Simulink message read-write module corresponding to the node message information based on at least one message variable information corresponding to the node message information.
Optionally, the embodiment of the disclosure may respectively create a variable input pin and a variable output pin corresponding to the message variable information in the Simulink message read-write module corresponding to the node message information corresponding to the message variable information based on the input/output direction of the variable in the message variable information, so as to input the variable corresponding to the message variable information into the Simulink message read-write module and output the variable corresponding to the message variable information from the Simulink message read-write module.
S350, according to the association relation between the message ID and the message ICD, the read-write association between the Simulink message read-write module corresponding to the message information of the same node and the packaging module and the unpacking module is established.
According to the embodiment of the disclosure, the corresponding packing module and unpacking module are generated for the corresponding Simulink message read-write module by utilizing the message variable information in the interface control file, and the read-write association between the Simulink message read-write module and the packing module and the unpacking module is established through the association relationship between the message ID and the message ICD, so that the simulation node has the function of connecting to equipment of the AS5643 network in a real working scene.
S360, for any simulation node: and combining the packaging module and the unpacking module corresponding to the simulation node to generate the equipment model corresponding to the simulation node.
It will be appreciated that the device model corresponding to the control node may be referred to as a control model and the device model corresponding to the remote node may be referred to as a remote model. The embodiment of the disclosure can combine the device models corresponding to the simulation nodes into one interface model corresponding to the interface control file, and the interface model comprises one control model and a plurality of remote models in a normal case. The number of remote models in the interface model is determined based on the number of emulated nodes in the interface control file having a node type that is a remote type. The control model may be used to simulate a control node of the real plant and the remote model may be used to simulate a remote node of the real plant.
Optionally, based on the AS5643 network dynamic simulation test method shown in fig. 2, AS shown in fig. 3, the schematic diagram of another implementation of the AS5643 network dynamic simulation test method provided by the embodiment of the present disclosure, after step S360, the method further includes:
And S370, adding a load statistics module to the equipment model so that the load statistics module can carry out statistics on network load information of the node interfaces.
Optionally, the load statistics module includes a statistics write bandwidth module and a statistics read bandwidth module.
Specifically, the embodiment of the disclosure may add a statistics writing bandwidth module to a packaging module in the device model, so that the statistics writing bandwidth module performs statistics on the writing bandwidth of the device model. The embodiment of the disclosure can add the statistical read bandwidth module to the unpacking module in the equipment model so that the statistical read bandwidth module can carry out statistics on the read bandwidth of the equipment model.
According to the embodiment of the disclosure, the writing bandwidth of the equipment model after being connected to the AS5643 network is counted through the counting writing bandwidth module, and the reading bandwidth of the equipment model after being connected to the AS5643 network is counted through the counting reading bandwidth module, so that the network load information of the simulation node corresponding to the equipment model can be obtained.
S400, based on the node configuration files of the simulation nodes, accessing the equipment model corresponding to the simulation nodes into the AS5643 network to perform dynamic simulation test, and obtaining simulation test results.
Optionally, based on the AS5643 network dynamic simulation test method shown in fig. 1, AS shown in fig. 4, step S400 may include:
S410, based on the node configuration files of the simulation nodes, hardware parameters of the AS5643 simulation board card corresponding to the simulation nodes are respectively configured.
S420, accessing the equipment model corresponding to each simulation node into an AS5643 network for dynamic simulation test through the AS5643 simulation board cards with the configured hardware parameters, and obtaining a simulation test result.
Specifically, the embodiment of the disclosure can determine a simulation node with a node type of control type as a simulation master node and determine a simulation node with a node type of remote type as a simulation slave node. And downloading the equipment model corresponding to the simulation master node into the first simulation computer based on the node configuration file of the simulation master node. And based on the node configuration file of the simulation slave node, downloading the equipment model corresponding to the simulation slave node into a second simulation computer. And accessing the first simulation computer and the second simulation computer into the AS5643 network to perform dynamic simulation test, and obtaining a simulation test result.
According to the embodiment of the disclosure, the device model is downloaded into the simulation computer to perform semi-physical simulation, so that the scene of the real device accessing the AS5643 network can be simulated to the greatest extent, and a more accurate simulation test result is obtained.
Optionally, the embodiment of the disclosure may further configure the monitoring node. And accessing the monitoring node into the AS5643 network to count the bandwidth data of the AS5643 network in each preset time period. The node type of the monitoring node may be a remote type. The monitor does not need any message. The embodiment of the disclosure can count the data information such AS the maximum value, the minimum value, the average value and the like of the bandwidth of the AS5643 network in each preset period through the monitoring node.
According to the embodiment of the disclosure, based on the interface control file after the AS5643 network design is completed, the dynamic simulation test of the AS5643 network can be rapidly performed, the dynamic simulation test is infinitely close to a real scene, and the load condition of each node and the condition of an AS5643 hardware layer can be fully considered in the whole test process. According to the embodiment of the disclosure, the effectiveness of the AS5643 network can be intuitively determined through the load analysis of each node and the bandwidth analysis of the AS5643 network, so that the iteration cycle of design-research-development-test related to the AS5643 network is reduced, and the risk of system integration is reduced. Meanwhile, the embodiment of the disclosure automatically generates the equipment model based on the interface control file, avoids deviation of artificial construction simulation model on test consistency, is convenient for repeated test, and is also beneficial to comparing network bandwidth and node load under different test configurations, thereby optimizing design of AS5643 network.
The AS5643 network dynamic simulation test method provided by the present disclosure can import an interface control file, wherein the interface control file includes node attribute configuration information, node message information and at least one message variable information corresponding to the node message information of each simulation node. Generating a node configuration file based on node attribute configuration information in the interface control file, and generating an equipment model based on node message information in the interface control file and message variable information corresponding to the node message information. Based on the node configuration files of the simulation nodes, the equipment model corresponding to the simulation nodes is accessed into the AS5643 network to perform dynamic simulation test, and a simulation test result is obtained. According to the method and the system, the real working scene is highly simulated through the simulation nodes, the AS5643 network is subjected to dynamic simulation test, an accurate simulation test result is obtained, and the AS5643 network is optimized according to the simulation test result.
Although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
Corresponding to the method embodiment, the embodiment of the disclosure further provides an AS5643 network dynamic simulation test device, the structure of which is shown in fig. 5, where the AS5643 network dynamic simulation test device includes: an interface control file importing unit 100, a node configuration file generating unit 200, an equipment model generating unit 300, and a simulation testing unit 400.
An interface control file importing unit 100, configured to import an interface control file, where the interface control file includes node attribute configuration information of each simulation node, at least one node message information, and at least one message variable information corresponding to the node message information.
The node configuration file generating unit 200 is configured to generate node configuration files corresponding to the simulation nodes respectively based on the node attribute configuration information of the simulation nodes.
The device model generating unit 300 is configured to generate device models corresponding to the simulation nodes based on at least one node message information of each simulation node and at least one message variable information corresponding to the node message information.
The simulation test unit 400 is configured to access the device model corresponding to each simulation node to the AS5643 network for dynamic simulation test based on the node configuration file of each simulation node, so AS to obtain a simulation test result.
Optionally, the node message information includes at least a message ID and a message ICD, and the device model generating unit 300 includes: the system comprises a message association relation building subunit, a message configuration file generating subunit, a Simulink message read-write module generating subunit, a unpacking module generating subunit, a read-write association building subunit and an equipment model generating subunit.
And the message association relation establishing subunit is used for establishing association relation between the message ID and the message ICD based on the message ID and the message ICD in the message information of at least one node of each simulation node.
And the message configuration file generation subunit is used for respectively generating message configuration files corresponding to the message information of each node based on at least one node message information of each simulation node.
The generation subunit of the Simulink message read-write module is used for generating a Simulink message read-write module corresponding to the message configuration file according to the message configuration file, and determining that the identifier of the Simulink message read-write module is the message ID in the node message information corresponding to the message configuration file.
The unpacking module generating subunit is configured to generate a packing module and an unpacking module corresponding to the message variable information based on at least one message variable information corresponding to the node message information, and determine that the identifier of the packing module and the unpacking module is the message ICD in the node message information corresponding to the message variable information.
And the read-write association establishing subunit is used for establishing read-write association between the Simulink message read-write module corresponding to the message information of the same node and the packaging module and the unpacking module according to the association relation between the message ID and the message ICD.
An equipment model generation subunit, configured to, for any one of the simulation nodes: and combining the packaging module and the unpacking module corresponding to the simulation node to generate the equipment model corresponding to the simulation node.
Optionally, the AS5643 network dynamic simulation test device may further include: and a variable pin creation unit.
The variable pin creation unit is used for respectively creating variable input pins and variable output pins corresponding to the variable information of each message in the Simulink message read-write module corresponding to the node message information based on at least one message variable information corresponding to the node message information.
Optionally, the AS5643 network dynamic simulation test device may further include: and a load statistics adding unit.
The load statistics adding unit is used for the equipment model generating subunit to any simulation node: and combining the packaging module and the unpacking module corresponding to the simulation node, generating an equipment model corresponding to the simulation node, and adding a load statistics module to the equipment model so that the load statistics module can carry out statistics on network load information of the node interface.
Optionally, the load statistics module includes a statistics writing bandwidth module and a statistics reading bandwidth module, and the load statistics adding unit is specifically configured to add the statistics writing bandwidth module to the packaging module in the device model, so that the statistics writing bandwidth module performs statistics on the writing bandwidth of the device model. And adding a statistic read bandwidth module to the unpacking module in the equipment model so that the statistic read bandwidth module can count the read bandwidth of the equipment model.
Alternatively, the simulation test unit 400 may include: and the simulation board card hardware configuration subunit and the simulation test subunit.
And the simulation board hardware configuration subunit is used for respectively configuring hardware parameters of the AS5643 simulation board corresponding to each simulation node based on the node configuration file of each simulation node.
And the simulation test subunit is used for accessing the equipment model corresponding to each simulation node into the AS5643 network for dynamic simulation test through the AS5643 simulation board cards with the configured hardware parameters, and obtaining a simulation test result.
Optionally, the node attribute configuration information includes at least a node type, a node identifier, a node rate, and start of frame packet information.
Optionally, the node types include a control type and a remote type. The simulation test unit 400 is specifically configured to determine a simulation node with a node type of a control type as a simulation master node, and determine a simulation node with a node type of a remote type as a simulation slave node. And downloading the equipment model corresponding to the simulation master node into the first simulation computer based on the node configuration file of the simulation master node. And based on the node configuration file of the simulation slave node, downloading the equipment model corresponding to the simulation slave node into a second simulation computer. And accessing the first simulation computer and the second simulation computer into the AS5643 network to perform dynamic simulation test, and obtaining a simulation test result.
Optionally, the AS5643 network dynamic simulation test device may further include: and the monitoring node configuration unit and the monitoring point access unit.
And the monitoring node configuration unit is used for configuring the monitoring nodes.
And the monitoring and detecting point access unit is used for accessing the monitoring node into the AS5643 network so AS to count the bandwidth data of the AS5643 network in each preset period.
The AS5643 network dynamic simulation test device provided by the disclosure can be imported into an interface control file, wherein the interface control file comprises node attribute configuration information, node message information and at least one message variable information corresponding to the node message information of each simulation node. Generating a node configuration file based on node attribute configuration information in the interface control file, and generating an equipment model based on node message information in the interface control file and message variable information corresponding to the node message information. Based on the node configuration files of the simulation nodes, the equipment model corresponding to the simulation nodes is accessed into the AS5643 network to perform dynamic simulation test, and a simulation test result is obtained. According to the method and the system, the real working scene is highly simulated through the simulation nodes, the AS5643 network is subjected to dynamic simulation test, an accurate simulation test result is obtained, and the AS5643 network is optimized according to the simulation test result.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
The AS5643 network dynamic simulation test device includes a processor and a memory, where the interface control file importing unit 100, the node configuration file generating unit 200, the device model generating unit 300, the simulation test unit 400, and the like are stored AS program units in the memory, and the processor executes the program units stored in the memory to implement corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be provided with one or more than one kernel, the real working scene is highly simulated through the simulation nodes by adjusting kernel parameters, the AS5643 network is subjected to dynamic simulation test, an accurate simulation test result is obtained, and the AS5643 network is optimized according to the simulation test result.
Embodiments of the present disclosure provide a computer readable storage medium having a program stored thereon, which when executed by a processor, implements the AS5643 network dynamic simulation test method.
The embodiment of the disclosure provides a processor for running a program, wherein the program runs to execute the AS5643 network dynamic simulation test method.
As shown in fig. 6, an embodiment of the present disclosure provides an electronic device 500, the electronic device 500 comprising at least one processor 501, and at least one memory 502, a bus 503 connected to the processor 501; wherein, the processor 501 and the memory 502 complete the communication with each other through the bus 503; the processor 501 is configured to invoke the program instructions in the memory 502 to perform the AS5643 network dynamic simulation test method described above. The electronic device 500 herein may be a server, a PC, a PAD, a cell phone, etc.
The present disclosure also provides a computer program product adapted to perform a program initialized with the above-described AS5643 network dynamic simulation test method steps when executed on an electronic device.
The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus, electronic devices (systems), and computer program products according to embodiments of the disclosure. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, the electronic device includes one or more processors (CPUs), memory, and a bus. The electronic device may also include input/output interfaces, network interfaces, and the like.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
It will be appreciated by those skilled in the art that embodiments of the present disclosure may be provided as a method, system, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present disclosure may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The foregoing is merely exemplary of the present disclosure and is not intended to limit the present disclosure. Various modifications and variations of this disclosure will be apparent to those skilled in the art. Any modifications, equivalent substitutions, improvements, or the like, which are within the spirit and principles of the present disclosure, are intended to be included within the scope of the claims of the present disclosure.
Claims (8)
1. The AS5643 network dynamic simulation test method is characterized by comprising the following steps:
importing an interface control file, wherein the interface control file comprises node attribute configuration information of each simulation node, at least one node message information and at least one message variable information corresponding to the node message information;
generating node configuration files corresponding to the simulation nodes based on the node attribute configuration information of the simulation nodes;
Generating an equipment model corresponding to each simulation node based on the at least one node message information of each simulation node and at least one message variable information corresponding to the node message information, respectively, including: establishing an association relationship between a message ID and a message ICD based on the message ID and the message ICD in the at least one node message information of each simulation node; generating message configuration files corresponding to the node message information based on the at least one node message information of each simulation node; generating a Simulink message read-write module corresponding to the message configuration file according to the message configuration file, and determining that the identifier of the Simulink message read-write module is the message ID in the node message information corresponding to the message configuration file; generating a packaging module and an unpacking module corresponding to the message variable information based on the at least one message variable information corresponding to the node message information, and determining the message ICD in the node message information corresponding to the message variable information by the packaging module and the unpacking module; according to the association relation between the message ID and the message ICD, establishing read-write association between the Simulink message read-write module corresponding to the same node message information and the packaging module and the unpacking module; for any one of the simulation nodes: combining the packaging module and the unpacking module corresponding to the simulation node to generate an equipment model corresponding to the simulation node;
Based on the node configuration file of each simulation node, accessing the equipment model corresponding to each simulation node into an AS5643 network to perform dynamic simulation test, and obtaining a simulation test result, wherein the method comprises the following steps: based on the node configuration files of the simulation nodes, hardware parameters of AS5643 simulation boards corresponding to the simulation nodes are respectively configured; and accessing the equipment model corresponding to each simulation node into an AS5643 network to perform dynamic simulation test through the AS5643 simulation board cards with the configured hardware parameters, and obtaining a simulation test result.
2. The method as recited in claim 1, further comprising:
And respectively creating a variable input pin and a variable output pin corresponding to each message variable information in the Simulink message read-write module corresponding to the node message information based on the at least one message variable information corresponding to the node message information.
3. The method of claim 1, wherein at any one of said pair of emulation nodes: the packing module and the unpacking module corresponding to the simulation node are combined, and after the equipment model corresponding to the simulation node is generated, the method further comprises:
And adding a load statistics module to the equipment model so that the load statistics module can carry out statistics on network load information of the node interface.
4. The method of claim 3, wherein the load statistics module comprises a statistical write bandwidth module and a statistical read bandwidth module, the adding load statistics module to the device model comprising:
Adding the statistic writing bandwidth module to the packaging module in the equipment model so that the statistic writing bandwidth module can count the writing bandwidth of the equipment model;
And adding the statistic read bandwidth module to the unpacking module in the equipment model so that the statistic read bandwidth module can count the read bandwidth of the equipment model.
5. The method of claim 1, wherein the node attribute configuration information includes at least a node type, a node identification, a node rate, and start of frame packet information.
6. The method of claim 5, wherein the node type includes a control type and a remote type, the dynamically simulating the device model corresponding to each simulation node into an AS5643 network based on the node configuration file of each simulation node to obtain a simulation test result, and the dynamically simulating the device model comprises:
Determining the simulation node with the node type being the control type as a simulation master node, and determining the simulation node with the node type being the remote type as a simulation slave node;
Downloading the equipment model corresponding to the simulation master node to a first simulation computer based on the node configuration file of the simulation master node;
Based on the node configuration file of the simulation slave node, downloading the equipment model corresponding to the simulation slave node into a second simulation computer;
and accessing the first simulation computer and the second simulation computer into an AS5643 network to perform dynamic simulation test, and obtaining a simulation test result.
7. The method as recited in claim 1, further comprising:
Configuring a monitoring node; and accessing the monitoring node into the AS5643 network to count the bandwidth data of the AS5643 network in each preset period.
8. An AS5643 network dynamic simulation test device, comprising: the device comprises an interface control file importing unit, a node configuration file generating unit, an equipment model generating unit and a simulation testing unit;
the interface control file importing unit is used for importing an interface control file, wherein the interface control file comprises node attribute configuration information of each simulation node, at least one node message information and at least one message variable information corresponding to the node message information;
The node configuration file generating unit is used for respectively generating node configuration files corresponding to the simulation nodes based on the node attribute configuration information of the simulation nodes;
The device model generating unit is configured to generate a device model corresponding to each simulation node based on the at least one node message information of each simulation node and at least one message variable information corresponding to the node message information;
The simulation test unit is used for accessing the equipment model corresponding to each simulation node into an AS5643 network for dynamic simulation test based on the node configuration file of each simulation node to obtain a simulation test result;
The device model generation unit includes: the system comprises a message association relation establishing subunit, a message configuration file generating subunit, a Simulink message reading and writing module generating subunit, a unpacking module generating subunit, a reading and writing association establishing subunit and an equipment model generating subunit;
the message association relation establishing subunit is configured to establish an association relation between a message ID and a message ICD based on the message ID and the message ICD in the at least one node message information of each simulation node;
the message configuration file generation subunit is configured to generate a message configuration file corresponding to each node message information based on the at least one node message information of each simulation node;
The Simulink message read-write module generating subunit is configured to generate a Simulink message read-write module corresponding to the message configuration file according to the message configuration file, and determine that the identifier of the Simulink message read-write module is the message ID in the node message information corresponding to the message configuration file;
The unpacking module generating subunit is configured to generate a packing module and an unpacking module corresponding to the message variable information based on the at least one message variable information corresponding to the node message information, and determine the message ICD in the node message information corresponding to the message variable information identified by the packing module and the unpacking module;
The read-write association establishing subunit is configured to establish read-write association between the Simulink message read-write module corresponding to the same node message information and the packaging module and the unpacking module according to an association relationship between the message ID and the message ICD;
the device model generation subunit is configured to, for any one of the simulation nodes: combining the packaging module and the unpacking module corresponding to the simulation node to generate an equipment model corresponding to the simulation node;
the simulation test unit includes: a simulation board hardware configuration subunit and a simulation test subunit;
The simulation board hardware configuration subunit is configured to configure hardware parameters of the AS5643 simulation board corresponding to each simulation node based on the node configuration file of each simulation node;
The simulation test subunit is configured to access the device model corresponding to each simulation node to an AS5643 network for dynamic simulation test through the AS5643 simulation board cards with configured hardware parameters, so AS to obtain a simulation test result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110988740.0A CN113645082B (en) | 2021-08-26 | 2021-08-26 | AS5643 network dynamic simulation test method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110988740.0A CN113645082B (en) | 2021-08-26 | 2021-08-26 | AS5643 network dynamic simulation test method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113645082A CN113645082A (en) | 2021-11-12 |
CN113645082B true CN113645082B (en) | 2024-07-09 |
Family
ID=78424026
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110988740.0A Active CN113645082B (en) | 2021-08-26 | 2021-08-26 | AS5643 network dynamic simulation test method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113645082B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102480467A (en) * | 2010-11-25 | 2012-05-30 | 上海宇芯科技有限公司 | SOC (System on a Chip) software and hardware collaborative simulation verification method based on network communication protocol |
CN104765709A (en) * | 2015-03-10 | 2015-07-08 | 中国电子科技集团公司第十研究所 | Multi-channel bus data simulation system |
Family Cites Families (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7447622B2 (en) * | 2003-04-01 | 2008-11-04 | Microsoft Corporation | Flexible network simulation tools and related methods |
WO2009105459A2 (en) * | 2008-02-18 | 2009-08-27 | Ita Software, Inc. | Methods and systems to test airline information systems |
US7826381B1 (en) * | 2008-05-30 | 2010-11-02 | Spirent Communications, Inc. | Method and device test data streams bound to emulated devices |
CN106982140B (en) * | 2017-03-31 | 2021-01-29 | 北京润科通用技术有限公司 | Information flow simulation method and system |
CN107241234B (en) * | 2017-08-09 | 2020-07-31 | 北京润科通用技术有限公司 | AS5643 network simulation method and system |
US10685583B2 (en) * | 2017-09-26 | 2020-06-16 | The Boeing Company | Flight simulator and method of use |
CN108170569A (en) * | 2017-12-13 | 2018-06-15 | 中国航空工业集团公司成都飞机设计研究所 | A kind of integrated form 1394B bus network emulators |
CN110502795A (en) * | 2019-07-23 | 2019-11-26 | 中国航空无线电电子研究所 | External simulation model accesses middleware |
CN112286512B (en) * | 2020-10-30 | 2024-02-23 | 西南电子技术研究所(中国电子科技集团公司第十研究所) | UI management subsystem of avionic simulation test platform |
CN113050920A (en) * | 2021-04-25 | 2021-06-29 | 中航机载***共性技术有限公司 | Reliability analysis method for reconfigurable system |
-
2021
- 2021-08-26 CN CN202110988740.0A patent/CN113645082B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102480467A (en) * | 2010-11-25 | 2012-05-30 | 上海宇芯科技有限公司 | SOC (System on a Chip) software and hardware collaborative simulation verification method based on network communication protocol |
CN104765709A (en) * | 2015-03-10 | 2015-07-08 | 中国电子科技集团公司第十研究所 | Multi-channel bus data simulation system |
Also Published As
Publication number | Publication date |
---|---|
CN113645082A (en) | 2021-11-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108170590B (en) | Test system and method of block chain system | |
CN106648556B (en) | Method and device for front-end and back-end integrated development test | |
CN114327861B (en) | Method, device, system and storage medium for executing EDA task | |
CN108139961A (en) | Telemetering defines system | |
CN109254922A (en) | A kind of automated testing method and device of server B MC Redfish function | |
CN117278434A (en) | Flow playback method and device and electronic equipment | |
CN115221071A (en) | Chip verification method and device, electronic equipment and storage medium | |
CN112217886A (en) | Testing method and system of distributed system, message production and consumption module | |
CN108427635A (en) | Quickly method, server and the computer readable storage medium of test web page | |
CN113645082B (en) | AS5643 network dynamic simulation test method and device | |
CN106776372B (en) | Emulation data access method and device based on FPGA | |
CN115941538B (en) | Test system, test method and test device for multiparty security calculation | |
CN116560968A (en) | Simulation calculation time prediction method, system and equipment based on machine learning | |
CN107729601B (en) | Method and device for configuring RAM in simulation process and computer storage medium | |
CN110633214B (en) | Configuration method and device for internal test message | |
CN113807969A (en) | Parallel verification method for service system and related equipment | |
CN114826994B (en) | User environment playback method, system, electronic device and readable storage medium | |
CN114944998B (en) | Internet of things system testing method and device based on simulator | |
CN116881016B (en) | Processing method and device of server process, storage medium and electronic equipment | |
CN109901990B (en) | Method, device and equipment for testing service system | |
CN110134843A (en) | A kind of generation method and device of file destination | |
CN107885659A (en) | Method and device, the equipment of request analog response to client | |
CN117130946B (en) | Test scene generation method and device, electronic equipment and readable storage medium | |
CN117573730B (en) | Data processing method, apparatus, device, readable storage medium, and program product | |
WO2023035147A1 (en) | Data processing method of industry edge product and distributed computing protocol engine thereof |
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 |