Dynamic schematic diagram simulation control method, device, equipment, medium and program product
By converting the control variable array into a JSON format string and publishing it to the simulation platform, the problem of increasing memory requirements in aircraft system dynamic schematic simulation is solved, efficient simulation control is achieved, and resource waste and configuration items are reduced.
Patent Information
- Application Number
- CN202410532009.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-29
- Publication Date
- 2024-08-23
AI Technical Summary
In the existing technology, during the simulation process of aircraft system dynamic schematic diagrams, as the number of schematic diagrams increases, the memory requirements for the simulation platform increase significantly, resulting in a waste of resources and low efficiency.
Convert the control variable array into a JSON format string and publish it to the simulation platform through the back-end server, so that the front-end server can perform simulation control based on the JSON format string, reducing configuration items and memory requirements.
This method significantly reduces the memory requirements for the simulation platform, improves the efficiency and resource utilization of simulation control, reduces configuration items, and achieves efficient simulation control of dynamic schematic diagrams.
Smart Images

Figure CN118536210A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of aircraft system simulation, and in particular to a dynamic schematic simulation control method, device, equipment, medium and program product. Background Art
[0002] The aircraft system dynamic schematic diagram shows trainees the aircraft system principles in a dynamic and clear manner.
[0003] In the process of simulating the dynamic schematic diagram of the aircraft system, a schematic diagram needs to be split into many controls, each control needs to be bound to a control variable, and each control variable must be passed to the front end through a simulation platform (such as the iSim platform, which is a Verilog graphical interface simulation tool for Windows) so that the front end can implement dynamic schematic simulation control based on the control variable.
[0004] However, as the number of schematics increases, the memory demand for the simulation platform grows significantly. Summary of the invention
[0005] The present invention provides a dynamic schematic simulation control method, device, equipment, medium and program product, which are used to solve the defect of obvious increase in memory demand for simulation platform in the prior art, and reduce the memory demand for simulation platform.
[0006] The present invention provides a dynamic schematic simulation control method, which is applied to a back-end server and includes:
[0007] Convert the control variable array into a JSON format string;
[0008] Publishing the JSON format string to the simulation platform, so that the front-end server can simulate and control the dynamic schematic diagram based on the JSON format string;
[0009] Among them, one control variable array contains the control variables of all controls corresponding to a dynamic schematic diagram.
[0010] In some embodiments, before converting the control variable array into a JSON format string, the process further includes:
[0011] According to all controls corresponding to each dynamic schematic diagram, the control variables included in each group of the control variable array are determined.
[0012] In some embodiments, after determining the control variables included in each group of the control variable array, the method further includes:
[0013] According to the ICD document corresponding to each dynamic schematic diagram, the control variables contained in each group of the control variable array are assigned values.
[0014] The present invention also provides a dynamic schematic simulation control method, which is applied to a front-end server and includes:
[0015] Receive the JSON format string converted from the control variable array from the simulation platform;
[0016] Based on the JSON format string, simulation control is performed on the dynamic schematic diagram;
[0017] Among them, one control variable array contains the control variables of all controls corresponding to a dynamic schematic diagram.
[0018] In some embodiments, the simulation control of the dynamic schematic diagram based on the JSON format string includes:
[0019] Parse the JSON format string to obtain the control variable array;
[0020] According to the assignment of the control variables in the control variable array, the working status of the control corresponding to the control variable in the control variable array is updated.
[0021] The present invention also provides a dynamic schematic simulation control device, comprising:
[0022] The conversion module is used to convert the control variable array into a JSON format string;
[0023] A publishing module, used for publishing the JSON format string to the simulation platform, so that the front-end server can simulate and control the dynamic schematic diagram based on the JSON format string;
[0024] Among them, one control variable array contains the control variables of all controls corresponding to a dynamic schematic diagram.
[0025] The present invention also provides a dynamic schematic simulation control device, comprising:
[0026] A receiving module is used to receive a JSON format string converted from a control variable array from a simulation platform;
[0027] A control module, used for performing simulation control on the dynamic schematic diagram based on the JSON format string;
[0028] Among them, one control variable array contains the control variables of all controls corresponding to a dynamic schematic diagram.
[0029] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the dynamic schematic simulation control method as described above is implemented.
[0030] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the dynamic schematic simulation control method as described in any one of the above is implemented.
[0031] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above-mentioned dynamic schematic simulation control methods.
[0032] The dynamic schematic simulation control method, device, equipment, medium and program product provided by the present invention transmit control variables in the form of control variable array, convert the control variable array into a JSON format string and publish it to the simulation platform, so that the front-end server can simulate and control the dynamic schematic based on the JSON format string. The present invention reduces configuration items and reduces the memory requirements of the simulation platform. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0034] Figure 1 It is one of the flow diagrams of the dynamic schematic diagram simulation control method provided by the present invention;
[0035] Figure 2 This is the second flow chart of the dynamic schematic diagram simulation control method provided by the present invention;
[0036] Figure 3 It is one of the structural schematic diagrams of the dynamic principle diagram simulation control device provided by the present invention;
[0037] Figure 4 This is the second structural schematic diagram of the dynamic principle diagram simulation control device provided by the present invention;
[0038] Figure 5 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions in the present invention will be clearly and completely described below in conjunction with the drawings in the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. It should be noted that the embodiments of the present invention and the features in the embodiments can be combined with each other in the absence of conflict. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0040] Figure 1 It is one of the flow charts of the dynamic schematic simulation control method provided by the present invention, such as Figure 1 As shown, the present invention provides a dynamic schematic simulation control method, which is applied to a back-end server and includes:
[0041] Step 110, converting the control variable array into a JSON format string; wherein a control variable array contains the control variables of all controls corresponding to a dynamic schematic diagram.
[0042] Step 120, publishing the JSON format string to the simulation platform, so that the front-end server can simulate and control the dynamic schematic diagram based on the JSON format string.
[0043] Specifically, since the working states of the controls on the front-end server are similar, for example, 0 represents the working state and 1 represents the non-working state, the method of transmitting a control variable array can be used to replace the method of transmitting a single control variable in the prior art, and a control variable array contains the control variables of all controls corresponding to a dynamic schematic.
[0044] The backend server converts the control variable array into a JSON format string and publishes the JSON format string to the simulation platform. On the one hand, the control variable array obtained after JSON format parsing is consistent with the data of the original control variable array. On the other hand, each dynamic schematic diagram only needs to set one control variable array, and each dynamic schematic diagram corresponds to an output variable (JSON format string), which can significantly reduce the number of control variables and configuration items, thereby reducing the memory requirements of the simulation platform. When using the JSON format to transfer the control variable array, you only need to transmit the name of the control variable array and the specific values it contains.
[0045] After the front-end server receives the JSON format string converted from the control variable array from the simulation platform, it parses the JSON format string to obtain the control variable array, updates the working status of the corresponding controls according to the assignment of the control variables in the control variable array, and completes the data communication between the dynamic schematic diagram and the simulation program under the simulation platform, thereby realizing the simulation control of the dynamic schematic diagram, that is, the schematic diagram is dynamically displayed on the front-end server.
[0046] The dynamic schematic simulation control method provided by the present invention transmits control variables in the form of a control variable array, converts the control variable array into a JSON format string and publishes it to a simulation platform, so that a front-end server can simulate and control the dynamic schematic based on the JSON format string. The present invention reduces configuration items and reduces the memory requirements of the simulation platform.
[0047] In some embodiments, before converting the control variable array into a JSON format string, the method further includes:
[0048] According to all the controls corresponding to each dynamic schematic diagram, the control variables contained in each group of control variable arrays are determined.
[0049] Specifically, one dynamic schematic diagram corresponds to a group of control variable arrays, and one control is bound to one control variable. Therefore, according to all the controls corresponding to each dynamic schematic diagram, the control variables contained in each group of control variable arrays can be determined. For example, the control variables can be commonly used State, Values, etc.
[0050] Taking the air conditioning system as an example, there are 50 controls in total (50 States and 8 Values). The backend server needs to create a control variable array containing 50-bit integers and 8-bit floating-point types.
[0051] In some embodiments, after determining the control variables included in each group of control variable arrays, the method further includes:
[0052] According to the ICD document corresponding to each dynamic schematic diagram, the control variables contained in each group of control variable arrays are assigned values.
[0053] Specifically, when developing a dynamic schematic, an interface control document (ICD) is written according to the layout order and working principle of the control. The ICD document contains the value assignment range and state range of the control variable.
[0054] After determining the control variables included in each group of control variable arrays, assign values to the control variables included in each group of control variable arrays according to the ICD document corresponding to each dynamic schematic diagram.
[0055] Take the air conditioning system as an example: when the aircraft is not powered on, the air conditioning system does not work, and all bits in the control variable array are set to 0; when the power is turned on and the sensor works, the position corresponding to the sensor in the control variable array is set to 1; when the engine is started, there is pressure in the pipeline but no flow, the position corresponding to the pipeline in the control variable array is set to 1; when the PACK component is turned on, air is transported to the cabin and cargo hold through the pipeline, and gas flows in the pipeline, the position corresponding to the pipeline in the control variable array is set to 2; when the air conditioning system is working, the valve position will be automatically adjusted, 0% means fully closed, and 100% means fully open, and the position corresponding to the valve opening and closing angle in the control variable array will be set accordingly.
[0056] Figure 2 This is the second flow chart of the dynamic schematic simulation control method provided by the present invention, such as Figure 2 As shown, the present invention provides a dynamic schematic simulation control method, which is applied to a front-end server and includes:
[0057] Step 210, receiving a JSON format string converted from a control variable array from a simulation platform; wherein a control variable array contains control variables of all controls corresponding to a dynamic schematic diagram.
[0058] Step 220, based on the JSON format string, simulation control is performed on the dynamic schematic diagram.
[0059] Specifically, since the working states of the controls on the front-end server are similar, for example, 0 represents the working state and 1 represents the non-working state, the method of transmitting a control variable array can be used to replace the method of transmitting a single control variable in the prior art, and a control variable array contains the control variables of all controls corresponding to a dynamic schematic.
[0060] The backend server converts the control variable array into a JSON format string and publishes the JSON format string to the simulation platform. On the one hand, the control variable array obtained after JSON format parsing is consistent with the data of the original control variable array. On the other hand, each dynamic schematic diagram only needs to set one control variable array, and each dynamic schematic diagram corresponds to an output variable (JSON format string), which can significantly reduce the number of control variables and configuration items, thereby reducing the memory requirements of the simulation platform. When using the JSON format to transfer the control variable array, you only need to transmit the name of the control variable array and the specific values it contains.
[0061] After the front-end server receives the JSON format string converted from the control variable array from the simulation platform, it completes the data communication between the dynamic schematic diagram and the simulation program under the simulation platform based on the JSON format string, thereby realizing the simulation control of the dynamic schematic diagram, that is, the schematic diagram is dynamically displayed on the front-end server.
[0062] The dynamic schematic simulation control method provided by the present invention transmits control variables in the form of a control variable array, converts the control variable array into a JSON format string and publishes it to a simulation platform, so that a front-end server can simulate and control the dynamic schematic based on the JSON format string. The present invention reduces configuration items and reduces the memory requirements of the simulation platform.
[0063] In some embodiments, simulation control of a dynamic schematic diagram is performed based on a JSON format string, including:
[0064] Parse the JSON format string to get the control variable array;
[0065] According to the assignment of the control variables in the control variable array, the working state of the control corresponding to the control variable in the control variable array is updated.
[0066] Specifically, after the front-end server receives the JSON format string converted from the control variable array from the simulation platform, it parses the JSON format string to obtain the control variable array, and updates the working status of the controls corresponding to the control variables in the control variable array according to the assignment of the control variables in the control variable array, completing the data communication between the dynamic schematic diagram and the simulation program under the simulation platform, thereby realizing simulation control of the dynamic schematic diagram.
[0067] The dynamic schematic diagram simulation control device provided by the present invention is described below. The dynamic schematic diagram simulation control device described below and the dynamic schematic diagram simulation control method described above can be referenced to each other.
[0068] Figure 3 It is one of the structural schematic diagrams of the dynamic schematic simulation control device provided by the present invention, such as Figure 3 As shown, the present invention provides a dynamic schematic simulation control device, comprising:
[0069] A conversion module 310, used to convert the control variable array into a JSON format string;
[0070] A publishing module 320, used for publishing the JSON format string to the simulation platform, so that the front-end server can simulate and control the dynamic schematic diagram based on the JSON format string;
[0071] Among them, one control variable array contains the control variables of all controls corresponding to a dynamic schematic diagram.
[0072] In some embodiments, the apparatus further comprises:
[0073] The determination module is used to determine the control variables contained in each group of the control variable array according to all the controls corresponding to each dynamic schematic diagram.
[0074] In some embodiments, the apparatus further comprises:
[0075] The assignment module is used to assign values to the control variables contained in each group of the control variable array according to the ICD document corresponding to each dynamic schematic diagram.
[0076] It should be noted here that the above-mentioned dynamic schematic simulation control device provided by the present invention can implement all the method steps implemented by the back-end server as the execution subject of the above-mentioned method embodiment, and can achieve the same technical effect. The parts and beneficial effects that are the same as the method embodiment in this embodiment will not be described in detail here.
[0077] Figure 4 This is the second structural schematic diagram of the dynamic schematic simulation control device provided by the present invention, such as Figure 4 As shown, the present invention provides a dynamic schematic simulation control device, comprising:
[0078] A receiving module 410 is used to receive a JSON format string converted from a control variable array from a simulation platform;
[0079] A control module 420, configured to perform simulation control on the dynamic schematic diagram based on the JSON format string;
[0080] Among them, one control variable array contains the control variables of all controls corresponding to a dynamic schematic diagram.
[0081] In some embodiments, the control module 420 is specifically used to:
[0082] Parse the JSON format string to obtain the control variable array;
[0083] According to the assignment of the control variables in the control variable array, the working status of the control corresponding to the control variable in the control variable array is updated.
[0084] It should be noted here that the above-mentioned dynamic schematic simulation control device provided by the present invention can implement all the method steps implemented by the front-end server as the execution subject of the above-mentioned method embodiment, and can achieve the same technical effect. The parts and beneficial effects that are the same as the method embodiment in this embodiment will not be described in detail here.
[0085] Figure 5is a schematic diagram of the structure of the electronic device provided by the present invention, such as Figure 5 As shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530 and a communication bus 540, wherein the processor 510, the communication interface 520 and the memory 530 communicate with each other through the communication bus 540. The processor 510 may call the logic instructions in the memory 530 to execute the dynamic schematic simulation control method, which includes:
[0086] Convert the control variable array into a JSON format string;
[0087] Publishing the JSON format string to the simulation platform, so that the front-end server can simulate and control the dynamic schematic diagram based on the JSON format string;
[0088] Wherein, one of the control variable arrays contains the control variables of all controls corresponding to a dynamic schematic diagram. Or,
[0089] Receive the JSON format string converted from the control variable array from the simulation platform;
[0090] Based on the JSON format string, simulation control is performed on the dynamic schematic diagram;
[0091] Among them, one control variable array contains the control variables of all controls corresponding to a dynamic schematic diagram.
[0092] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0093] On the other hand, the present invention further provides a computer program product, the computer program product includes a computer program, the computer program can be stored in a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the dynamic schematic simulation control method provided by the above methods, the method includes:
[0094] Convert the control variable array into a JSON format string;
[0095] Publishing the JSON format string to the simulation platform, so that the front-end server can simulate and control the dynamic schematic diagram based on the JSON format string;
[0096] Wherein, one of the control variable arrays contains the control variables of all controls corresponding to a dynamic schematic diagram. Or,
[0097] Receive the JSON format string converted from the control variable array from the simulation platform;
[0098] Based on the JSON format string, simulation control is performed on the dynamic schematic diagram;
[0099] Among them, one control variable array contains the control variables of all controls corresponding to a dynamic schematic diagram.
[0100] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to execute the dynamic schematic simulation control method provided by the above methods, the method comprising:
[0101] Convert the control variable array into a JSON format string;
[0102] Publishing the JSON format string to the simulation platform, so that the front-end server can simulate and control the dynamic schematic diagram based on the JSON format string;
[0103] Wherein, one of the control variable arrays contains the control variables of all controls corresponding to a dynamic schematic diagram. Or,
[0104] Receive the JSON format string converted from the control variable array from the simulation platform;
[0105] Based on the JSON format string, simulation control is performed on the dynamic schematic diagram;
[0106] Among them, one control variable array contains the control variables of all controls corresponding to a dynamic schematic diagram.
[0107] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0108] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0109] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.
[0110] It should be further noted that, in this article, the terms "comprises", "includes" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0111] In the present invention, "at least one" means one or more, and "more than one" means two or more than two. The terms "first", "second", "third", "fourth", etc. (if any) in the present invention are used to distinguish similar objects, rather than to describe a specific order or sequence.
[0112] In the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0113] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A dynamic schematic simulation control method, characterized in that: Applicable to backend servers, including: Convert the control variable array into a JSON format string; Publishing the JSON format string to the simulation platform, so that the front-end server can simulate and control the dynamic schematic diagram based on the JSON format string; Among them, one control variable array contains the control variables of all controls corresponding to a dynamic schematic diagram.
2. The dynamic schematic simulation control method according to claim 1, characterized in that: Before converting the control variable array into a JSON format string, the method further includes: According to all controls corresponding to each dynamic schematic diagram, the control variables included in each group of the control variable array are determined.
3. The dynamic schematic simulation control method according to claim 2, characterized in that: After determining the control variables included in each group of the control variable array, the method further includes: According to the ICD document corresponding to each dynamic schematic diagram, the control variables contained in each group of the control variable array are assigned values.
4. A dynamic schematic simulation control method, characterized in that: Applicable to front-end servers, including: Receive the JSON format string converted from the control variable array from the simulation platform; Based on the JSON format string, simulation control is performed on the dynamic schematic diagram; Among them, one control variable array contains the control variables of all controls corresponding to a dynamic schematic diagram.
5. The dynamic schematic simulation control method according to claim 4, characterized in that: The simulation control of the dynamic schematic diagram based on the JSON format string includes: Parse the JSON format string to obtain the control variable array; According to the assignment of the control variables in the control variable array, the working status of the control corresponding to the control variable in the control variable array is updated.
6. A dynamic schematic simulation control device, characterized in that: include: The conversion module is used to convert the control variable array into a JSON format string; A publishing module, used for publishing the JSON format string to the simulation platform, so that the front-end server can simulate and control the dynamic schematic diagram based on the JSON format string; Among them, one control variable array contains the control variables of all controls corresponding to a dynamic schematic diagram.
7. A dynamic schematic simulation control device, characterized in that: include: A receiving module is used to receive a JSON format string converted from a control variable array from a simulation platform; A control module, used for performing simulation control on the dynamic schematic diagram based on the JSON format string; Among them, one control variable array contains the control variables of all controls corresponding to a dynamic schematic diagram.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the dynamic schematic simulation control method as described in any one of claims 1 to 5 is implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the dynamic schematic simulation control method according to any one of claims 1 to 5 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the dynamic schematic simulation control method according to any one of claims 1 to 5 is implemented.
