CN116455990A - LVC contract training environment construction method and system based on information interaction bus - Google Patents

LVC contract training environment construction method and system based on information interaction bus Download PDF

Info

Publication number
CN116455990A
CN116455990A CN202310722964.6A CN202310722964A CN116455990A CN 116455990 A CN116455990 A CN 116455990A CN 202310722964 A CN202310722964 A CN 202310722964A CN 116455990 A CN116455990 A CN 116455990A
Authority
CN
China
Prior art keywords
data
protocol
template
item
acquisition
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.)
Granted
Application number
CN202310722964.6A
Other languages
Chinese (zh)
Other versions
CN116455990B (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.)
Chinese People's Liberation Army Aviation College
Original Assignee
Chinese People's Liberation Army Aviation College
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 Chinese People's Liberation Army Aviation College filed Critical Chinese People's Liberation Army Aviation College
Priority to CN202310722964.6A priority Critical patent/CN116455990B/en
Publication of CN116455990A publication Critical patent/CN116455990A/en
Application granted granted Critical
Publication of CN116455990B publication Critical patent/CN116455990B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/544Buffers; Shared memory; Pipes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/306User profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/06Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/12Protocol engines
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/548Queue

Abstract

The invention discloses a LVC contract training environment construction method and a system based on an information interaction bus, which are characterized in that a support joint test task environment platform is established, the platform is connected with a data sending end through a protocol template, a data packet conforming to the protocol template is generated according to user configuration information, the data packet is automatically received by a loading protocol template according to the protocol template and then is converted into a protocol data packet, the protocol data packet is stored in a resource warehouse, the protocol data packet is called out from the resource warehouse, dynamic data is obtained by encoding the protocol data packet by utilizing a dynamic encoding template and is stored in a hard disk of a computer, the dynamic data is received by a hardware communication processor by utilizing a multithreading technology, the dynamic data is received in a shared memory by protocol decoding software, the dynamic data is decoded according to the configured protocol template, and the decoded data is scheduled to a specified CPU by a Windows kernel in the computer for reading and writing, so that the data processing efficiency can be effectively improved, and the quick access of a target field packaging device is realized.

Description

LVC contract training environment construction method and system based on information interaction bus
Technical Field
The invention belongs to the technical field of simulation training, and particularly relates to an LVC contract training environment construction method and system based on an information interaction bus.
Background
The LVC resources are mostly transmitted by adopting serial buses such as Ethernet, RS422/485 and the like according to a contracted communication protocol, but the communication protocol is five-in-eight, and in the process of system construction joint debugging and joint testing, encoding and decoding of communication protocol data are usually needed. At present, for different systems, a mode of developing a special debugging or testing system is mostly adopted, and encoding and decoding of a protocol are realized through programming. This approach allows the range testers to put a lot of effort on developing the software code, consuming a lot of time and effort.
Through the interview and investigation of industrial departments in China and the analysis of various communication protocol specifications such as warning radar target track report, measuring radar information frame, AIS system information transmission specification, information interface specification in a certain command center, missile vehicle communication specification of a certain model and the like, various complex data protocols are found in a target range test system, and the main characteristics of the complex data protocols include multiple nesting of protocols, multiple branches, bit-by-bit use and the like. The above features result in dynamic decoding of the data packets being difficult.
Furthermore, since in a range test system, data packets of various formats are typically transmitted between devices. In the dynamic decoding process of the data packet based on the protocol template, the corresponding protocol template is automatically identified according to the received data packet, and then the data packet is analyzed according to the protocol template. Because of the high real-time performance of the data transmission of the complex system, especially the complex system constructed by using the gigabit Ethernet, the real-time performance of the data transmission can reach 5ms of one data packet. Therefore, a high requirement is put on the real-time performance of dynamic analysis of the data packet.
In summary, the dynamic decoding of the data packet based on the protocol template involves key links such as protocol identification and automatic analysis, and has high real-time requirements, and the technology is crucial to realizing the rapid access of the target range packaging equipment.
Disclosure of Invention
The invention aims to provide an LVC contract training environment construction method and system based on an information interaction bus.
In order to achieve the above purpose, the invention adopts the following technical scheme:
the invention provides an LVC contract training environment construction method based on an information interaction bus, which comprises the following steps:
establishing a support combined test task environment platform based on software, hardware and a range test system, and establishing connection between the platform and a data sending end through a protocol template, wherein the protocol template comprises a dynamic coding template and a loading protocol template;
generating a data packet conforming to a protocol template according to the user configuration information, automatically receiving the data packet by the loading protocol template according to the protocol template, converting the data packet into a protocol data packet, and storing the protocol data packet in a resource warehouse;
calling out a protocol data packet from the resource warehouse, coding the protocol data packet by using the dynamic coding template to obtain dynamic data, and storing the dynamic data in a computer hard disk;
the hardware communication processor receives dynamic data by utilizing a multithreading technology, writes the dynamic data into a queue, receives the dynamic data in a shared memory by protocol decoding software, and decodes the dynamic data according to a configured protocol template;
scheduling the decoded data to a specified CPU by a Windows kernel in the computer for reading and writing;
and collecting the read-write process to form experimental data.
Further, the software includes: test middleware, a test resource modeling tool, a test resource packaging tool, a shared resource library and a shared test database; the hardware comprises a test task planning tool, a test management tool and a test evaluation analysis tool.
Furthermore, the software, hardware and range test system based on the establishment of the support combined test task environment platform comprises: adopting a B/S technical architecture to establish a test system consisting of a shared resource library client, a shared test database client and a test evaluation analysis tool; dividing the test system into a view layer, an application layer and a resource layer, wherein a front end view layer adopts a reaction frame, a rear end application layer adopts a Spring frame, and the resource layer adopts a frame combining a cache, a database and a distributed file; and integrating the framework layers into a support combined test task environment platform.
Further, the protocol template includes: protocol model, protocol item, protocol frame head/frame tail/element item, protocol element bit four-layer data structure; the protocol model is used for describing all protocol item information under a certain protocol model, and the protocol item information is stored by adopting a mapping table; the protocol item is a complete description of a protocol, and is used for describing related information of the protocol item, the header information, the tail information and the element information of the protocol are stored in an array mode, and the element item is a format description of data transmitted by the protocol.
Further, the editing steps of the protocol item are as follows: a processing function for selecting an element, comprising: for "do not process" and "BCD encode", only the process function name needs to be specified; for the "physical value calculation" element, the coefficient k and the coefficient b need to be edited; for non-bit type data elements, firstly, selecting bit combinations of the elements, wherein one element can correspond to a plurality of bit combinations, then, editing different output information for different bit values of the selected bit combinations, and finally, selecting the data type of the output information; for bit type data elements, a user directly edits the data values of the elements, edits output information corresponding to the bit values, and finally selects the data type of the output information; for the element of 'bit analysis or physical value', simultaneously editing 'physical value calculation' information and 'bit analysis' information; for the "combined function processing" element, first, a processing function of the element needs to be added, a plurality of processing functions can be added, and then, corresponding function information editing is performed for each processing function.
Further, the editing steps of the protocol elements are as follows: firstly, selecting a sub-protocol item adding mode as 'selecting an existing protocol item' or 'editing a new protocol item'; if the selection of the existing protocol item needs to select a certain protocol item from the edited protocol item list as a sub-protocol of the protocol item element; if "edit new protocol item" is selected, a piece of protocol item information needs to be edited again as a sub-protocol of the protocol item element, wherein the element type in the sub-protocol can be any type of general item, branch item, protocol item and dynamic item.
Further, the collecting the read-write process includes: after time synchronization of the acquisition nodes, starting data acquisition work, and carrying out timing acquisition by software according to an acquisition period set in an acquisition scheme and storing a current acquisition time mark; after time synchronization of all acquisition nodes is carried out, starting data acquisition work, ordering the data from the middleware of the combined test system according to the concerned data set in the acquisition scheme by software on all the nodes, and when the data is changed, acquiring the data once by a test data acquisition playback tool according to the acquisition task of the current node, and storing a time mark of the current acquisition data; after time synchronization of all the acquisition nodes, starting data acquisition work, wherein the event triggering mode is to set a certain condition for the change of concerned data on the basis of a variable value triggering mode, and when the concerned data is changed and the changed data accords with the set triggering condition, all test data acquisition playback tools on the acquisition nodes acquire data once according to the acquisition task of the current node and store the time mark of the current acquisition.
Further, the method also comprises the step of synchronously playing back test data, which comprises the following steps: the method comprises the steps of timing playback, starting playback work after time synchronization of each playback node in the playback process, and in the working mode, performing timing playback of data by software on each node according to a timing period of an acquisition scheme corresponding to the playback scheme and displaying a time mark of the acquisition time of the playback data; the method comprises the steps of starting playback operation after time synchronization of each playback node in the playback process by variable value trigger and event trigger, in the working mode, playing back, displaying and recording a first piece of playback data and time marks thereof by software, starting timing, using the first time mark plus timing time as the time mark at the moment after timing is finished, comparing the time mark with the time mark of the next piece of playback data, and recording the time mark at the moment if the time mark is smaller than the time mark at the moment when the time mark is compared at the beginning, and performing the next cycle comparison; if the data is larger than the data, comparing the next piece of playback data until finding the time mark smaller than or equal to a certain piece of playback data, selecting the previous piece of playback data of the data for playback and display, displaying the content including the data and the time mark thereof, and recording the time mark of the data to start the next cycle comparison.
On the other hand, the invention provides an LVC contract training environment construction system based on an information interaction bus, which comprises:
the test platform module is used for establishing a support combined test task environment platform based on software, hardware and a target range test system, and establishing connection between the platform and a data sending end through a protocol template, wherein the protocol template comprises a dynamic coding template and a loading protocol template;
the data generation module is used for generating a data packet conforming to the protocol template according to the user configuration information, automatically receiving the data packet according to the protocol template by the loading protocol template, converting the data packet into a protocol data packet, and storing the protocol data packet in a resource warehouse;
the data storage module is used for calling out a protocol data packet from the resource warehouse, utilizing the dynamic coding template to code the protocol data packet to obtain dynamic data, and storing the dynamic data in a computer hard disk;
the decoding module is used for receiving the dynamic data by the hardware communication processor by utilizing a multithreading technology, writing the dynamic data into the queue, receiving the dynamic data in the shared memory by the protocol decoding software, and decoding the dynamic data according to the configured protocol template;
the training module is used for dispatching the decoded data to a specified CPU by a Windows kernel in the computer for reading and writing;
and the acquisition module is used for acquiring the read-write process to form experimental data.
The invention has the technical effects and advantages that: compared with the prior art, the LVC contract training environment construction method and system based on the information interaction bus provided by the invention have the following advantages:
the invention establishes a connection between the platform and the data sending end through the protocol template, generates a data packet conforming to the protocol template according to the user configuration information, automatically receives the data packet according to the protocol template by the loading protocol template, converts the data packet into a protocol data packet, stores the protocol data packet in a resource warehouse, calls the protocol data packet out of the resource warehouse, encodes the protocol data packet by utilizing a dynamic encoding template to obtain dynamic data, stores the dynamic data in a computer hard disk, receives the dynamic data by utilizing a multithreading technology by a hardware communication processor, writes the dynamic data into a queue, receives the dynamic data in a shared memory by protocol decoding software, decodes the dynamic data according to the configured protocol template, and dispatches the decoded data to a designated CPU (Central processing unit) by a Windows kernel in the computer, thereby effectively improving the data processing efficiency and realizing the quick access of the target field packaging equipment.
Drawings
FIG. 1 is a flow chart of a method for constructing an LVC contract training environment based on an information interaction bus in an embodiment of the invention;
FIG. 2 is a flow chart of editing protocol items in an embodiment of the present invention;
FIG. 3 is a flow chart of editing common item elements in an embodiment of the present invention;
FIG. 4 is a general block diagram of a management system according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a timing acquisition mode in an embodiment of the present invention;
FIG. 6 is a schematic diagram of a variable trigger acquisition mode in an embodiment of the present invention;
fig. 7 is a block diagram of an LVC contract training environment construction system based on an information interaction bus in an embodiment of the invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. The specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The embodiment of the invention provides an LVC contract training environment construction method based on an information interaction bus as shown in FIG. 1, which comprises the following steps:
s1, establishing a support combined test task environment platform based on software, hardware and a target range test system, and establishing connection between the platform and a data sending end through a protocol template, wherein the protocol template comprises a dynamic coding template and a loading protocol template;
wherein the software comprises: test middleware, a test resource modeling tool, a test resource packaging tool, a shared resource library and a shared test database; the hardware comprises a test task planning tool, a test management tool and a test evaluation analysis tool.
The method for establishing the environment platform for the combined test task based on the software, the hardware and the range test system comprises the following steps: adopting a B/S technical architecture to establish a test system consisting of a shared resource library client, a shared test database client and a test evaluation analysis tool; dividing the test system into a view layer, an application layer and a resource layer, wherein a front end view layer adopts a reaction frame, a rear end application layer adopts a Spring frame, and the resource layer adopts a frame combining a cache, a database and a distributed file; and integrating the framework layers into a support combined test task environment platform.
S2, generating a data packet conforming to a protocol template according to user configuration information, automatically receiving the data packet by the loading protocol template according to the protocol template, converting the data packet into a protocol data packet, and storing the protocol data packet in a resource warehouse;
specifically, the protocol template includes: protocol model, protocol item, protocol frame head/frame tail/element item, protocol element bit four-layer data structure;
the protocol model is used for describing all protocol item information under a certain protocol model, and the protocol item information is stored by adopting a mapping table;
the protocol item is a complete description of a protocol, and is used for describing related information of the protocol item, the header information, the tail information and the element information of the protocol are stored in an array mode, and the element item is a format description of data transmitted by the protocol.
S3, calling out a protocol data packet from the resource warehouse, coding the protocol data packet by using the dynamic coding template to obtain dynamic data, and storing the dynamic data in a computer hard disk;
s4, receiving dynamic data by a hardware communication processor by utilizing a multithreading technology, writing the dynamic data into a queue, receiving the dynamic data in a shared memory by protocol decoding software, and decoding the dynamic data according to a configured protocol template;
s5, dispatching the decoded data to a specified CPU by a Windows kernel in the computer for reading and writing;
in particular, with the rapid development of CPU technology, dual-core and even multi-core CPUs in the market have become mainstream, which makes it possible to independently execute tasks with some cores of the multi-core CPU on a Windows platform, thereby effectively improving the instantaneity of software.
In order to improve the real-time performance of the virtual test system support platform under the Windows operating system, the scheme is provided as follows: modifying the Affinity threshold at 0x124 of the Windows kernel object KTHREAD structure, changing the CPU Affinity of the appointed task, and executing the appointed task on the appointed CPU, thereby improving the real-time performance thereof.
CPU affinity management
From the analysis of Windows kernel scheduling, a CPU kernel scheduling affinity management system is designed according to the proposal of improving the task instantaneity by changing the scheduling mode.
The structure of the whole system is shown in fig. 4. The system consists of two major parts, namely a management service system device driver in a kernel mode and a management service system application program in a user mode. The management service system application program transfers the IRP to the management service system driver under the kernel by calling the Win32 subsystem API, and after the kernel receives the IRP, the kernel executes a corresponding dispatch function according to the internal information of the received IRP, and reads and writes the corresponding memory, thereby providing available system information for the management service system application program.
CPU affinity refers to the long-felt property of being able to bind one or more processes or threads to one or more processors in a system for execution. That is to say: "run the program on processor number 1 all the time" or "run the programs on all the processors instead of processor number 0". The scheduler will then follow the rules and the program will only run on the allowed processor.
On the Windows operating system, the interface for setting CPU Affinity to the programmer is represented by a 32-bit double-font number, which is called Affinity mask (Affinity bitMask). An affinity mask is a series of binary bits, each bit representing whether a CPU unit can perform the current task. For example, on a PC with four CPUs (or a quad-core CPU), the binary number of the affinity mask is shown as follows:
0000000000000000000000000000XXXXB
wherein from right to left, each bit represents whether CPU nos. 0 to 31 are available, and since there are only four CPUs per machine, only the first four bits are available, X being 1 represents that the current task can be executed on the CPU represented by this bit, and X being 0 represents that the current task cannot be executed on the CPU represented by this bit, for example:
00000000000000000000000000000010B
it represents that the current task can only be executed on CPU No. 1 (the number of the lower marks of the CPU starts from 0), and for example, 0x00000004 represents that the current task can only be executed on CPU No. 2, and 0x00000003 represents that the current task can be executed on CPU No. 0 and CPU No. 1.
S6, collecting the read-write process to form experimental data.
Specifically, the collecting the read-write process includes:
as shown in fig. 5, after time synchronization of each acquisition node, data acquisition is started, and software performs timing acquisition according to an acquisition period set in an acquisition scheme and stores a current acquisition time scale. In order to ensure that the acquisition time of each acquisition node is consistent, the item is precisely timed on each node by utilizing a multimedia timer, the timer is a timing service provided under a Windows system, a timing signal can be sent to software for calling the service by setting a timing period, and the accuracy of the timer is determined by the CPU of the current node and can reach 1 millisecond generally;
as shown in fig. 6, after time synchronization of each acquisition node, starting data acquisition work, ordering the data from the middleware of the combined test system by software on all nodes according to the attention data set in the acquisition scheme, and when the data is changed, acquiring the data once by the test data acquisition playback tool according to the acquisition task of the current node, and storing the time mark of the current acquisition data;
after time synchronization of all the acquisition nodes, starting data acquisition work, wherein the event triggering mode is to set a certain condition for the change of concerned data on the basis of a variable value triggering mode, and when the concerned data is changed and the changed data accords with the set triggering condition, all test data acquisition playback tools on the acquisition nodes acquire data once according to the acquisition task of the current node and store the time mark of the current acquisition.
In still other embodiments, further comprising trial data synchronized playback, comprising:
the method comprises the steps of timing playback, starting playback work after time synchronization of each playback node in the playback process, and in the working mode, performing timing playback of data by software on each node according to a timing period of an acquisition scheme corresponding to the playback scheme and displaying a time mark of the acquisition time of the playback data;
the method comprises the steps of starting playback operation after time synchronization of each playback node in the playback process by variable value trigger and event trigger, in the working mode, playing back, displaying and recording a first piece of playback data and time marks thereof by software, starting timing, using the first time mark plus timing time as the time mark at the moment after timing is finished, comparing the time mark with the time mark of the next piece of playback data, and recording the time mark at the moment if the time mark is smaller than the time mark at the moment when the time mark is compared at the beginning, and performing the next cycle comparison; if the data is larger than the data, comparing the next piece of playback data until finding the time mark smaller than or equal to a certain piece of playback data, selecting the previous piece of playback data of the data for playback and display, displaying the content including the data and the time mark thereof, and recording the time mark of the data to start the next cycle comparison.
Referring to fig. 2, the editing steps of the protocol item described above are as follows:
a processing function for selecting an element, comprising: for "do not process" and "BCD encode", only the process function name needs to be specified;
for the "physical value calculation" element, the coefficient k and the coefficient b need to be edited; specifically, taking the coefficient k as an example, in the editing process, the user needs to specify that the type of the coefficient k is an "input coefficient" or a "selection element", where the "input coefficient" refers to the value of the coefficient k that user inputs data, and the "selection element" refers to the fact that the user selects a certain element from edited protocol elements of the protocol item as the coefficient, and the protocol elements have conversion calculation of the processing function, and the data values before conversion and after conversion are different, so when the user selects a certain element as the coefficient, it is required to explicitly specify whether to select the data value before conversion or after conversion of the element. The editing process of the coefficient b is the same and will not be described again. After the coefficient editing is completed, the user needs to specify the converted target data type, and the processed element value is output according to the target data type.
For non-bit type data elements, firstly, selecting bit combinations of the elements, wherein one element can correspond to a plurality of bit combinations, then, editing different output information for different bit values of the selected bit combinations, and finally, selecting the data type of the output information;
for bit type data elements, a user directly edits the data values of the elements, edits output information corresponding to the bit values, and finally selects the data type of the output information;
for the element of 'bit analysis or physical value', simultaneously editing 'physical value calculation' information and 'bit analysis' information; for the "combined function processing" element, first, a processing function of the element needs to be added, a plurality of processing functions can be added, and then, corresponding function information editing is performed for each processing function.
As shown in fig. 3, the editing steps of the protocol element are as follows:
firstly, selecting a sub-protocol item adding mode as 'selecting an existing protocol item' or 'editing a new protocol item';
if the selection of the existing protocol item needs to select a certain protocol item from the edited protocol item list as a sub-protocol of the protocol item element;
if "edit new protocol item" is selected, a piece of protocol item information needs to be edited again as a sub-protocol of the protocol item element, wherein the element type in the sub-protocol can be any type of general item, branch item, protocol item and dynamic item.
In addition, the embodiment of the invention also provides an LVC contract training environment construction system based on the information interaction bus, which comprises the following steps:
the test platform module 101 is used for establishing a support combined test task environment platform based on software, hardware and a target range test system, and establishing connection between the platform and a data sending end through a protocol template, wherein the protocol template comprises a dynamic coding template and a loading protocol template;
the data generating module 102 is configured to generate a data packet according to the user configuration information, and the data packet is automatically received by the loading protocol template according to the protocol template, then converted into a protocol data packet, and stored in the resource repository;
the data storage module 103 is configured to call out a protocol data packet from the resource repository, encode the protocol data packet by using the dynamic encoding template to obtain dynamic data, and store the dynamic data in a hard disk of a computer;
the decoding module 104 is configured to receive the dynamic data by the hardware communication processor through a multithreading technology, write the dynamic data into the queue, receive the dynamic data in the shared memory by the protocol decoding software, and decode the dynamic data according to the configured protocol template;
the training module 105 is used for dispatching the decoded data to a specified CPU by a Windows kernel in the computer for reading and writing;
and the acquisition module 106 is used for acquiring the read-write process to form experimental data.
The embedded data packet dynamic decoding system comprises a protocol template editing tool, an embedded data packet dynamic encoding component based on a protocol template and an embedded data packet dynamic decoding component based on the protocol template, which are provided for the joint test system. By using the software tool, a user can establish templates of various complex protocols by using the protocol template editing tool and store the templates in a resource warehouse without programming aiming at communication protocols between different applications and different equipment.
The embedded dynamic data encoding and decoding technology based on the protocol template is a key technology in the tool software. When the system is constructed, the dynamic coding software loads the protocol template, and a data packet conforming to the protocol template can be generated according to the user configuration information; and loading the protocol template by the dynamic decoding software, and automatically analyzing the received dynamic data packet according to the protocol template.
It is worth mentioning that the system adopts unified homemade autonomous thought to guide the design of each subsystem software, adopts cross-architecture and service design concepts, ensures that the system design is compatible with homemade autonomous controllability, ensures that key software (including test middleware, test resource modeling tools, test resource packaging tools, shared resource libraries and shared test databases) and important supporting software (including test task planning tools, test management and control tools, test evaluation analysis tools and the like) in a combined test task environment software supporting platform have complete autonomous controllability, and can effectively support homemade operating systems and databases; the system development process is developed based on domestic basic software and hardware platforms, part of unconditional temporary development is performed by adopting non-domestic basic software platforms, meanwhile, the domestic hardware adaptation requirement is considered, the system is quickly migrated to the domestic hardware platform after the machine is mature, and the domestic autonomous and controllable system is propelled in steps.
Gradually advancing and finally fusing the hardware in the aspect of autonomous controllable deployment at home. The system meets the deployment requirement of the domestic autonomous controllable platform of the newly developed system according to the domestic autonomous controllable current situation and project construction requirement at the initial stage of construction, and gives consideration to the non-domestic deployment requirement; with the promotion of the localization process and the development and development of the system, the system is gradually and completely moved to the localization autonomous controllable platform. In the propulsion process, the system relies on the uniform resource nanotube capability provided by the cloud platform to provide stable, continuous and finally fused domestic autonomous controllable supporting capability for the combined test task environment software supporting platform.
According to the requirements and characteristics of all tools in the combined test task environment software supporting platform, the project group adopts B/S or C/S technical architecture in the development process, and C++ or Java programming language is used. Aiming at newly developed tools, the tools are directly developed on an independent controllable software and hardware platform, and cross-platform advanced development technology and tools are used, so that the developed tools originally have support for independent control; aiming at the tools based on the prior art, the support of domestic basic software is realized by modifying and adapting the tools, and compatibility detection is carried out on the modified tools, so that the migration from a commercial platform to an autonomous controllable platform is realized.
In the combined test task environment software supporting platform, a shared resource library client, a shared test database client, a test evaluation analysis tool and the like adopt a B/S technical architecture, a system is divided into a view layer, an application layer and a resource layer, in the specific technical aspect, a front end view layer adopts a reaction frame, a rear end application layer adopts a Spring frame, and the resource layer adopts a frame combining a cache, a database and a distributed file. The whole B/S technology stack can completely support autonomous controllable software and hardware environments, including domestic chips, operating systems and databases.
In a combined test task environment software supporting platform, a test middleware, a test resource modeling tool, a test resource packaging tool, a test task planning tool, a test management and control tool and the like adopt a C/S technical architecture, a system is divided into a model layer, a view layer and a control layer, in a specific technical aspect, a QT framework is used by a C++ application, a general, standard and platform-independent third party library comprising Boost, ACE, curl and the like is selected, so that the high efficiency and the stability of the system are enhanced, a JMF framework is used by a Java application, plug-in technology is used, and plug-in NatTable, poi, log4j and the like are integrated, so that the whole C/S technical stack can completely support an autonomous controllable software and hardware environment comprising a domestic chip, an operating system and a database.
Finally, it should be noted that: the foregoing description is only illustrative of the preferred embodiments of the present invention, and although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that modifications may be made to the embodiments described, or equivalents may be substituted for elements thereof, and any modifications, equivalents, improvements or changes may be made without departing from the spirit and principles of the present invention.

Claims (9)

1. The LVC contract training environment construction method based on the information interaction bus is characterized by comprising the following steps of:
establishing a support combined test task environment platform based on software, hardware and a range test system, and establishing connection between the platform and a data sending end through a protocol template, wherein the protocol template comprises a dynamic coding template and a loading protocol template;
generating a data packet conforming to a protocol template according to the user configuration information, automatically receiving the data packet by the loading protocol template according to the protocol template, converting the data packet into a protocol data packet, and storing the protocol data packet in a resource warehouse;
calling out a protocol data packet from the resource warehouse, coding the protocol data packet by using the dynamic coding template to obtain dynamic data, and storing the dynamic data in a computer hard disk;
the hardware communication processor receives dynamic data by utilizing a multithreading technology, writes the dynamic data into a queue, receives the dynamic data in a shared memory by protocol decoding software, and decodes the dynamic data according to a configured protocol template;
scheduling the decoded data to a specified CPU by a Windows kernel in the computer for reading and writing;
and collecting the read-write process to form experimental data.
2. The LVC contract training environment construction method based on an information interaction bus according to claim 1, wherein the software includes: test middleware, a test resource modeling tool, a test resource packaging tool, a shared resource library and a shared test database;
the hardware comprises a test task planning tool, a test management tool and a test evaluation analysis tool.
3. The method for constructing an LVC contract training environment based on an information interaction bus according to claim 2, wherein the building of the support joint test task environment platform based on the software, the hardware and the range test system comprises:
adopting a B/S technical architecture to establish a test system consisting of a shared resource library client, a shared test database client and a test evaluation analysis tool;
dividing the test system into a view layer, an application layer and a resource layer, wherein a front end view layer adopts a reaction frame, a rear end application layer adopts a Spring frame, and the resource layer adopts a frame combining a cache, a database and a distributed file;
and integrating the framework layers into a support combined test task environment platform.
4. The method for constructing an LVC contract training environment based on an information interaction bus according to claim 1, wherein the protocol template includes: protocol model, protocol item, protocol frame head/frame tail/element item, protocol element bit four-layer data structure;
the protocol model is used for describing all protocol item information under a certain protocol model, and the protocol item information is stored by adopting a mapping table;
the protocol item is a complete description of a protocol, and is used for describing related information of the protocol item, the header information, the tail information and the element information of the protocol are stored in an array mode, and the element item is a format description of data transmitted by the protocol.
5. The method for constructing an LVC contract training environment based on an information interaction bus according to claim 4, wherein the editing steps of the agreement item are as follows:
a processing function for selecting an element, comprising: for "do not process" and "BCD encode", only the process function name needs to be specified;
for the "physical value calculation" element, the coefficient k and the coefficient b need to be edited;
for non-bit type data elements, firstly, selecting bit combinations of the elements, wherein one element can correspond to a plurality of bit combinations, then, editing different output information for different bit values of the selected bit combinations, and finally, selecting the data type of the output information;
for bit type data elements, a user directly edits the data values of the elements, edits output information corresponding to the bit values, and finally selects the data type of the output information;
for the element of 'bit analysis or physical value', simultaneously editing 'physical value calculation' information and 'bit analysis' information; for the "combined function processing" element, first, a processing function of the element needs to be added, a plurality of processing functions can be added, and then, corresponding function information editing is performed for each processing function.
6. The method for constructing an LVC contract training environment based on an information interaction bus according to claim 4, wherein the editing steps of the protocol elements are as follows:
firstly, selecting a sub-protocol item adding mode as 'selecting an existing protocol item' or 'editing a new protocol item';
if the selection of the existing protocol item needs to select a certain protocol item from the edited protocol item list as a sub-protocol of the protocol item element;
if "edit new protocol item" is selected, a piece of protocol item information needs to be edited again as a sub-protocol of the protocol item element, wherein the element type in the sub-protocol can be any type of general item, branch item, protocol item and dynamic item.
7. The method for constructing an LVC contract training environment based on an information interaction bus according to claim 1, wherein the collecting the read-write process includes:
after time synchronization of the acquisition nodes, starting data acquisition work, and carrying out timing acquisition by software according to an acquisition period set in an acquisition scheme and storing a current acquisition time mark;
after time synchronization of all acquisition nodes is carried out, starting data acquisition work, ordering the data from the middleware of the combined test system according to the concerned data set in the acquisition scheme by software on all the nodes, and when the data is changed, acquiring the data once by a test data acquisition playback tool according to the acquisition task of the current node, and storing a time mark of the current acquisition data;
after time synchronization of all the acquisition nodes, starting data acquisition work, wherein the event triggering mode is to set a certain condition for the change of concerned data on the basis of a variable value triggering mode, and when the concerned data is changed and the changed data accords with the set triggering condition, all test data acquisition playback tools on the acquisition nodes acquire data once according to the acquisition task of the current node and store the time mark of the current acquisition.
8. The method for constructing an LVC contract training environment based on an information interaction bus according to claim 7, further comprising test data synchronous playback, comprising:
the method comprises the steps of timing playback, starting playback work after time synchronization of each playback node in the playback process, and in the working mode, performing timing playback of data by software on each node according to a timing period of an acquisition scheme corresponding to the playback scheme and displaying a time mark of the acquisition time of the playback data;
the method comprises the steps of starting playback operation after time synchronization of each playback node in the playback process by variable value trigger and event trigger, in the working mode, playing back, displaying and recording a first piece of playback data and time marks thereof by software, starting timing, using the first time mark plus timing time as the time mark at the moment after timing is finished, comparing the time mark with the time mark of the next piece of playback data, and recording the time mark at the moment if the time mark is smaller than the time mark at the moment when the time mark is compared at the beginning, and performing the next cycle comparison; if the data is larger than the data, comparing the next piece of playback data until finding the time mark smaller than or equal to a certain piece of playback data, selecting the previous piece of playback data of the data for playback and display, displaying the content including the data and the time mark thereof, and recording the time mark of the data to start the next cycle comparison.
9. LVC contract training environment construction system based on information interaction bus, characterized by comprising:
the test platform module is used for establishing a support combined test task environment platform based on software, hardware and a target range test system, and establishing connection between the platform and a data sending end through a protocol template, wherein the protocol template comprises a dynamic coding template and a loading protocol template;
the data generation module is used for generating a data packet conforming to the protocol template according to the user configuration information, automatically receiving the data packet according to the protocol template by the loading protocol template, converting the data packet into a protocol data packet, and storing the protocol data packet in a resource warehouse;
the data storage module is used for calling out a protocol data packet from the resource warehouse, utilizing the dynamic coding template to code the protocol data packet to obtain dynamic data, and storing the dynamic data in a computer hard disk;
the decoding module is used for receiving the dynamic data by the hardware communication processor by utilizing a multithreading technology, writing the dynamic data into the queue, receiving the dynamic data in the shared memory by the protocol decoding software, and decoding the dynamic data according to the configured protocol template;
the training module is used for dispatching the decoded data to a specified CPU by a Windows kernel in the computer for reading and writing;
and the acquisition module is used for acquiring the read-write process to form experimental data.
CN202310722964.6A 2023-06-19 2023-06-19 LVC contract training environment construction method and system based on information interaction bus Active CN116455990B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310722964.6A CN116455990B (en) 2023-06-19 2023-06-19 LVC contract training environment construction method and system based on information interaction bus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310722964.6A CN116455990B (en) 2023-06-19 2023-06-19 LVC contract training environment construction method and system based on information interaction bus

Publications (2)

Publication Number Publication Date
CN116455990A true CN116455990A (en) 2023-07-18
CN116455990B CN116455990B (en) 2023-08-22

Family

ID=87122402

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310722964.6A Active CN116455990B (en) 2023-06-19 2023-06-19 LVC contract training environment construction method and system based on information interaction bus

Country Status (1)

Country Link
CN (1) CN116455990B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063231A (en) * 2014-07-11 2014-09-24 哈尔滨工业大学 Test resource rapid access method based on HIT-TENA
WO2019040613A1 (en) * 2017-08-24 2019-02-28 Circadence Corporation System for dynamically provisioning cyber training environments
CN112307651A (en) * 2020-11-27 2021-02-02 中国运载火箭技术研究院 Self-organizing LVC application integration system
CN112380718A (en) * 2020-11-20 2021-02-19 中国运载火箭技术研究院 Adaptive equipment simulator adapter
CN114861379A (en) * 2021-01-20 2022-08-05 中国兵器科学研究院 Military training system based on LVC simulation
US20230033284A1 (en) * 2020-04-07 2023-02-02 Beijing University Of Posts And Telecommunications Internet-of-things resource access system and method
CN115688686A (en) * 2022-09-02 2023-02-03 中国人民解放军92493部队试验训练总体研究所 LVC resource access verification method and device
CN115758668A (en) * 2022-10-14 2023-03-07 航天新长征大道科技有限公司 Distributed simulation data interaction method based on LVC and related equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063231A (en) * 2014-07-11 2014-09-24 哈尔滨工业大学 Test resource rapid access method based on HIT-TENA
WO2019040613A1 (en) * 2017-08-24 2019-02-28 Circadence Corporation System for dynamically provisioning cyber training environments
US20230033284A1 (en) * 2020-04-07 2023-02-02 Beijing University Of Posts And Telecommunications Internet-of-things resource access system and method
CN112380718A (en) * 2020-11-20 2021-02-19 中国运载火箭技术研究院 Adaptive equipment simulator adapter
CN112307651A (en) * 2020-11-27 2021-02-02 中国运载火箭技术研究院 Self-organizing LVC application integration system
CN114861379A (en) * 2021-01-20 2022-08-05 中国兵器科学研究院 Military training system based on LVC simulation
CN115688686A (en) * 2022-09-02 2023-02-03 中国人民解放军92493部队试验训练总体研究所 LVC resource access verification method and device
CN115758668A (en) * 2022-10-14 2023-03-07 航天新长征大道科技有限公司 Distributed simulation data interaction method based on LVC and related equipment

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
YANG GAO 等: "Overview of Simulation Architectures Supporting Live Virtual Constructive (LVC) Integrated Training", 《2021 6TH INTERNATIONAL CONFERENCE ON CONTROL, ROBOTICS AND CYBERNETICS (CRC)》 *
李雷雷: "基于组件化的空战仿真系统建模研究", 《中国优秀硕士学位论文全文数据库 社会科学Ⅰ辑 2021年第05期》 *
杨芸 等: "LVC训练体系建设发展现状及关键技术", 《兵工自动化》, vol. 42, no. 1 *

Also Published As

Publication number Publication date
CN116455990B (en) 2023-08-22

Similar Documents

Publication Publication Date Title
US20100138808A1 (en) Embedded system design device and a method thereof using a target independent model
US9152389B2 (en) Trace generating unit, system, and program of the same
CN103092751B (en) Web application performance test system based on customer behavior model in cloud environment
Junghanns et al. The functional mock-up interface 3.0-new features enabling new applications
CN109032577B (en) Data simulation method
Andújar et al. VEF traces: a framework for modelling MPI traffic in interconnection network simulators
CN113568705B (en) Code integration simulation method under distributed architecture
US20060225042A1 (en) Virtual threads in business process programs
CN111176645A (en) Power grid big data application-oriented data integration management system and implementation method thereof
US20100205611A1 (en) System and method for parallel stream processing
CN114781648A (en) Automatic arranging, constructing and executing method and system for machine learning task
CN116455990B (en) LVC contract training environment construction method and system based on information interaction bus
CN113515348B (en) Simulator modeling method and device based on opportunity action flow
CN113542390A (en) Internet of things equipment management method and system adopting memory data model
WO2017019113A1 (en) Concurrency testing
CN112463340A (en) Tensorflow-based multi-task flexible scheduling method and system
CN112068942A (en) Large-scale parallel system simulation method based on single-node simulation
EP2447896A2 (en) Technique for efficient partial crawling of interactive client-server applications in a parallel, distributed environment
CN112612427B (en) Vehicle stop data processing method and device, storage medium and terminal
Madsen et al. Modeling and analysis framework for embedded systems
WO2021031545A1 (en) Free energy perturbation calculation scheduling method used in heterogeneous cluster environment
CN111523685B (en) Method for reducing performance modeling overhead based on active learning
CN113254187A (en) Test data generation method and device, electronic equipment and storage medium
CN112286831A (en) Multi-cycle data stream analysis method, system, device and storage medium
CN113296790A (en) Method, apparatus and computer readable medium for generating application data package

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