Joint simulation method for complex electronic products

By establishing a one-to-one connection between electrical principle simulation tools and high-level language terminals, and using two-way data interaction and application layer communication protocols, the problems of slow simulation speed and complex models in joint simulation are solved, and a more efficient simulation process is achieved. and concise models improve simulation efficiency and development convenience.

CN118555301APending Publication Date: 2024-08-27BEIJING AEROSPACE AUTOMATIC CONTROL RES INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410561387.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-08
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

Existing electrical principle simulation tools have problems with complex simulation models and slow simulation speed in joint simulation, resulting in low efficiency.

Method used

By realizing a one-to-one connection between the electrical principle simulation terminal and the high-level language program terminal on the communication terminal, two-way data interaction is supported, and the application layer communication protocol is used for data transmission, including data packet sending and connection management of signal simulation values, ensuring time Synchronous and efficient communication processes.

Benefits of technology

It achieves faster simulation speed and simpler simulation model, improving simulation efficiency and development convenience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118555301A
    Figure CN118555301A
Patent Text Reader

Abstract

The invention provides a joint simulation method for a complex electronic product, and the method is applied to a communication terminal, and the communication terminal comprises an electric principle simulation terminal and a high-level language program terminal. Wherein the electrical principle simulation end is a master port, and the high-level language program end is a slave port; the connection of the communication end only supports one-to-one connection between the master port and the slave port, and bidirectional interaction of data is carried out through the connection; the method comprises the following steps: establishing communication connection between an electric principle simulation end and a high-level language program end; the electrical principle simulation end and the high-level language program end mutually send a data packet including a signal simulation value; and after the joint simulation is finished, the communication connection between the electric principle simulation end and the high-level language program end is disconnected. According to the method provided by the invention, through the electrical principle simulation end and the high-level language program end, a faster simulation speed and a simpler simulation model can be provided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a joint simulation method for complex electronic products. Background Art

[0002] Co-simulation is a method that integrates multiple simulation technologies, combining simulation models and simulation tools from different fields to simulate and evaluate the behavior and performance of complex systems. A system uses multiple simulation software for co-simulation, with the focus on the definition of simulation interfaces. Different modules use different simulation software to implement their own professional simulation functions in different simulation software, and they work together through defined communication interfaces and communication protocols.

[0003] As the demand for joint simulation increases, some mainstream electrical principle simulation tools have opened some interfaces to each other, allowing specific tools to be called. However, there are problems such as complex simulation models and slow simulation speed. Summary of the invention

[0004] In order to solve one of the above technical defects, the present application provides a joint simulation method for complex electronic products.

[0005] The method is applied to a communication terminal, which includes an electrical principle simulation terminal and a high-level language program terminal; wherein the electrical principle simulation terminal is a master port and the high-level language program terminal is a slave port; the connection of the communication terminal only supports a one-to-one connection between the master port and the slave port, and bidirectional data interaction is performed through the connection; The method includes: The electrical principle simulation end establishes a communication connection with the high-level language program end; The electrical principle simulation end and the high-level language program end send data packets including signal simulation values ​​to each other; After the joint simulation is completed, the electrical principle simulation end disconnects the communication connection with the high-level language program end.

[0006] Optionally, the electrical principle simulation end establishes a communication connection with the high-level language program end, including: The electrical principle simulation end sends a signal connection request and a time connection request to the high-level language program end; After receiving the signal connection request and the time connection request, the high-level language program terminal replies a corresponding response data packet to the electrical principle simulation terminal; After receiving the response data packet, the electrical principle simulation end verifies the corresponding data packet; if the verification passes, the communication connection is successful.

[0007] Optionally, the electrical principle simulation end and the high-level language program end send data packets including signal simulation values ​​to each other, including: The sending end sends a Send request to the receiving end; the sending end is an electrical principle simulation end or a high-level language program end, and when the sending end is an electrical principle simulation end, the receiving end is a high-level language program end, and when the sending end is a high-level language program end, the receiving end is an electrical principle simulation end; After receiving the Send request, the receiving end receives the data packet.

[0008] Optionally, after receiving the Send request, the receiving end receives the data packet, including: After receiving the Send request, the receiving end prepares to receive the data packet, and after the preparation is completed, sends a Get request to the sending end; After receiving the Get request, the sender sends a data packet to the receiver; The receiving end receives the data packet.

[0009] Optionally, after receiving the Get request, the sender sends a data packet to the receiver, including: After receiving the Get request, the sender sends a Get response including a data packet to the receiver; The receiving end receives the data packet, including: The receiving end receives the data packet through the Get response.

[0010] Optionally, after receiving the Send request and receiving the data packet, the receiving end further includes: The receiving end processes the data packet.

[0011] Optionally, after the receiving end processes the data packet, the receiving end further includes: The receiving end sends a Send response to the sending end.

[0012] Optionally, after the joint simulation is completed, the electrical principle simulation end disconnects the communication connection with the high-level language program end, including: After the joint simulation is completed, the electrical principle simulation end sends a simulation end request to the high-level language program end; The high-level language program terminal feeds back a simulation end response based on the simulation end request; After receiving the simulation end response, the electrical principle simulation end disconnects the communication connection with the high-level language program end.

[0013] Optionally, the high-level language program terminal feeds back a simulation end response based on the simulation end request, including: The high-level language program terminal performs verification based on the end simulation request and feeds back an end simulation response after the verification passes.

[0014] Optionally, the electrical principle simulation end and the high-level language program end interact based on an application layer communication protocol; The application layer communication protocol adopts a mixed encoding of binary and plain text, and the application layer communication protocol header adopts binary encoding with a fixed length, and the application layer communication protocol body adopts plain text encoding with a variable length.

[0015] The present application provides a joint simulation method for complex electronic products, which is applied to a communication terminal, and the communication terminal includes: an electrical principle simulation terminal and a high-level language program terminal; wherein the electrical principle simulation terminal is a master port, and the high-level language program terminal is a slave port; the connection of the communication terminal only supports a one-to-one connection between the master port and the slave port, and a two-way interaction of data is performed through the connection; the method includes: the electrical principle simulation terminal establishes a communication connection with the high-level language program terminal; the electrical principle simulation terminal and the high-level language program terminal send data packets including signal simulation values ​​to each other; after the joint simulation is completed, the electrical principle simulation terminal disconnects the communication connection with the high-level language program terminal. The method provided by the present application can provide a faster simulation speed and a more concise simulation model through the electrical principle simulation terminal and the high-level language program terminal. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings: Figure 1 A schematic diagram of an implementation architecture of a communication terminal provided in an embodiment of the present application; Figure 2 A flowchart of a joint simulation method for complex electronic products provided in an embodiment of the present application. DETAILED DESCRIPTION

[0017] In order to make the technical solutions and advantages in the embodiments of the present application more clearly understood, the exemplary embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than an exhaustive list of all the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.

[0018] In the process of implementing this application, the inventors found that since complex electronic products are multi-disciplinary couplings of mechanics, electricity, heat, control, and software, joint simulation among multiple disciplines is very necessary. As the demand for joint simulation gradually increases, some mainstream electrical principle simulation tools have opened some interfaces to each other, allowing specific tools to be called. However, there are problems such as complex simulation models and slow simulation speed.

[0019] In view of the above problems, a method for joint simulation of complex electronic products is provided in an embodiment of the present application. The method is applied to a communication terminal, and the communication terminal includes: an electrical principle simulation terminal and a high-level language program terminal; wherein the electrical principle simulation terminal is a master port, and the high-level language program terminal is a slave port; the connection of the communication terminal only supports a one-to-one connection between the master port and the slave port, and two-way data interaction is performed through the connection; the method includes: the electrical principle simulation terminal and the high-level language program terminal establish a communication connection; the electrical principle simulation terminal and the high-level language program terminal send data packets including signal simulation values ​​to each other; after the joint simulation is completed, the electrical principle simulation terminal disconnects the communication connection with the high-level language program terminal. The method provided by the present application can provide a faster simulation speed and a more concise simulation model through the electrical principle simulation terminal and the high-level language program terminal.

[0020] This embodiment provides a joint simulation method for complex electronic products, which is applied to a communication terminal, such as Figure 1 As shown, the communication terminal includes: an electrical principle simulation terminal and a high-level language program terminal.

[0021] Among them, the electrical principle simulation end is the master port, and the high-level language program end is the slave port.

[0022] The connection at the communication end only supports one-to-one connection between the master port and the slave port, and bidirectional data interaction is performed through this connection.

[0023] In the specific implementation, the communication process is divided into the communication connection stage, the data transmission stage and the transmission closing stage. The communication end has two ports: the electrical principle simulation end and the high-level language program end. The data interaction between the ends is bidirectional, where the electrical principle simulation end is the master port and the high-level language program end is the slave port. The connection of the communication end only supports one-to-one connection between the master port and the slave port. Data transmission is divided into two categories: request and response. Both the master and slave ends can actively send requests. The above structure of the communication end has the advantages of providing users with faster simulation speed, simpler simulation model, and more convenient development method.

[0024] In addition, the electrical principle simulation end and the high-level language program end interact based on the application layer communication protocol.

[0025] The application layer communication protocol adopts a mixed encoding of binary and plain text, and the application layer communication protocol header adopts binary encoding with a fixed length, and the application layer communication protocol body adopts plain text encoding with a variable length.

[0026] See also Figure 2 The implementation process of the joint simulation method for complex electronic products provided in this embodiment is as follows: 201, the electrical principle simulation terminal establishes a communication connection with the high-level language program terminal.

[0027] The implementation process of step 201 is: 201-1, the electrical principle simulation end sends a signal connection request and a time connection request to the high-level language program end.

[0028] 201-2, after receiving the signal connection request and the time connection request, the high-level language program terminal replies a corresponding response data packet to the electrical principle simulation terminal.

[0029] 201-3, after receiving the response data packet, the electrical principle simulation terminal verifies the corresponding data packet. If the verification is successful, the communication connection is successful.

[0030] Step 201 is the communication connection stage.

[0031] 202, the electrical principle simulation end and the high-level language program end send data packets including signal simulation values ​​to each other.

[0032] The implementation process of step 202 is: 202-1, the sending end sends a Send request to the receiving end.

[0033] Among them, the sending end is an electrical principle simulation end or a high-level language program end, and when the sending end is an electrical principle simulation end, the receiving end is a high-level language program end, and when the sending end is a high-level language program end, the receiving end is an electrical principle simulation end.

[0034] 202-2, the receiving end receives the data packet after receiving the Send request.

[0035] Specifically, the implementation process of step 202-2 is: 1. After receiving the Send request, the receiving end prepares to receive the data packet, and after the preparation is completed, it sends a Get request to the sending end.

[0036] After the receiving end receives the Send request, 2. After receiving the Get request, the sender sends a data packet to the receiver.

[0037] For example, after receiving the Get request, the sending end sends a Get response including a data packet to the receiving end.

[0038] 3. The receiving end receives the data packet.

[0039] For example, the receiving end receives a data packet through a Get response.

[0040] After executing step 202, the receiving end processes the data packet.

[0041] After the receiving end processes the data packet, the receiving end also sends a Send response to the sending end.

[0042] Step 202 is the data transmission stage, where the electrical principle simulation end and the high-level language program end actively send data packets to each other to transfer their respective signal simulation values. In order to ensure the time synchronization of signal transmission, there are four types of data packets: Send request, Send response, Get request, and Get response.

[0043] During communication, the sender sends a Send request; after receiving the Send request, the receiver sends a Get request when it is ready to receive data; after receiving the Get request, the sender sends a Get response; after receiving the Get response, the receiver processes the data carried by the data packet and sends a Send response after processing. After receiving the Send response, the data transmission is successful. This communication method ensures that both parties can wait for each other during the communication process and achieve time synchronization.

[0044] 203. After the joint simulation is completed, the electrical principle simulation end disconnects the communication connection with the high-level language program end.

[0045] The implementation process of step 203 is: 203-1, after the joint simulation is completed, the electrical principle simulation end sends a simulation end request to the high-level language program end.

[0046] 203-2, the high-level language program terminal feeds back a simulation end response based on the simulation end request.

[0047] For example, the high-level language program terminal performs verification based on the end simulation request, and feeds back an end simulation response after the verification passes.

[0048] 203-3, after receiving the simulation end response, the electrical principle simulation end disconnects the communication connection with the high-level language program end.

[0049] Step 203 is the transmission closing stage. The electrical principle simulation end sends a simulation end request to the high-level language program end. After receiving the request and verifying it, the high-level language program end sends a simulation end response. The electrical principle simulation end receives the response data packet, the transmission is closed, and the entire simulation communication ends.

[0050] The joint simulation method for complex electronic products provided in this embodiment is a digital space global clock synchronization and asynchronous communication bus technology suitable for complex electronic product electrical principle joint simulation software. Through the joint communication simulation of electrical principle simulation software and high-level programming language programs, each electrical principle simulation software is connected through a communication bus to carry out joint simulation work.

[0051] The combined simulation method of complex electronic products provided in this embodiment greatly improves the data interaction speed through various combined simulation tests and synchronous and asynchronous communication buses, further accelerating the simulation speed of the overall system engineering. At the same time, the combined simulation method of complex electronic products provided in this embodiment greatly facilitates the user's code construction process through a more efficient and faster library call method and a simpler and faster parameter configuration, saving a lot of time for system design.

[0052] The joint simulation method for complex electronic products provided in this embodiment divides the communication process into a communication connection phase, a data transmission phase, and a transmission closing phase. In the communication connection phase, the electrical principle simulation end sends a signal connection request and a time connection request to the high-level language program end. After receiving the request, the high-level language program end replies with a corresponding response data packet. After the electrical principle simulation end receives the response data packet and verifies it, the communication connection is successful and enters the data transmission phase. Otherwise, the communication connection fails and the communication ends.

[0053] The present embodiment provides a method for joint simulation of complex electronic products, the method is applied to a communication terminal, the communication terminal includes: an electrical principle simulation terminal and a high-level language program terminal; wherein the electrical principle simulation terminal is a master port, and the high-level language program terminal is a slave port; the connection of the communication terminal only supports a one-to-one connection between the master port and the slave port, and a two-way data interaction is performed through the connection; the method includes: the electrical principle simulation terminal and the high-level language program terminal establish a communication connection; the electrical principle simulation terminal and the high-level language program terminal send data packets including signal simulation values ​​to each other; after the joint simulation is completed, the electrical principle simulation terminal disconnects the communication connection with the high-level language program terminal. The method provided in the present embodiment can provide a faster simulation speed and a more concise simulation model through the electrical principle simulation terminal and the high-level language program terminal.

[0054] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes. The schemes in the embodiments of the present application may be implemented in various computer languages, for example, object-oriented programming language Java and literal scripting language JavaScript, etc.

[0055] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0056] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0057] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0058] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0059] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A joint simulation method for complex electronic products, characterized in that: The method is applied to a communication terminal, which includes: an electrical principle simulation terminal and a high-level language program terminal; wherein the electrical principle simulation terminal is a master port, and the high-level language program terminal is a slave port; the connection of the communication terminal only supports a one-to-one connection between the master port and the slave port, and bidirectional data interaction is performed through the connection; The method comprises: The electrical principle simulation terminal establishes a communication connection with the high-level language program terminal; The electrical principle simulation end and the high-level language program end send data packets including signal simulation values ​​to each other; After the joint simulation is completed, the electrical principle simulation end disconnects the communication connection with the high-level language program end.

2. The method according to claim 1, characterized in that The electrical principle simulation end establishes a communication connection with the high-level language program end, including: The electrical principle simulation end sends a signal connection request and a time connection request to the high-level language program end; After receiving the signal connection request and the time connection request, the high-level language program end replies a corresponding response data packet to the electrical principle simulation end; After receiving the response data packet, the electrical principle simulation end verifies the corresponding data packet; if the verification passes, the communication connection is successful.

3. The method according to claim 1, characterized in that The electrical principle simulation end and the high-level language program end send data packets including signal simulation values ​​to each other, including: The sending end sends a Send request to the receiving end; the sending end is the electrical principle simulation end or the high-level language program end, and when the sending end is the electrical principle simulation end, the receiving end is the high-level language program end, and when the sending end is the high-level language program end, the receiving end is the electrical principle simulation end; The receiving end receives the data packet after receiving the Send request.

4. The method according to claim 3, characterized in that After receiving the Send request, the receiving end receives the data packet, including: After receiving the Send request, the receiving end prepares to receive the data packet, and after the preparation is completed, sends a Get request to the sending end; After receiving the Get request, the sending end sends a data packet to the receiving end; The receiving end receives the data packet.

5. The method according to claim 4, characterized in that After receiving the Get request, the sending end sends a data packet to the receiving end, including: After receiving the Get request, the sending end sends a Get response including a data packet to the receiving end; The receiving end receives the data packet, including: The receiving end receives the data packet through the Get response.

6. The method according to claim 3, characterized in that After the receiving end receives the Send request and receives the data packet, the method further includes: The receiving end processes the data packet.

7. The method according to claim 6, characterized in that After the receiving end processes the data packet, the further step further includes: The receiving end sends a Send response to the sending end.

8. The method according to claim 1, characterized in that After the joint simulation is completed, the electrical principle simulation end disconnects the communication connection with the high-level language program end, including: After the joint simulation is completed, the electrical principle simulation end sends a simulation end request to the high-level language program end; The high-level language program terminal feeds back a simulation end response based on the simulation end request; After receiving the simulation end response, the electrical principle simulation end disconnects the communication connection with the high-level language program end.

9. The method according to claim 8, characterized in that The high-level language program terminal feeds back a simulation end response based on the simulation end request, including: The high-level language program end performs verification based on the end simulation request, and feeds back an end simulation response after the verification passes.

10. The method according to claim 1, characterized in that The electrical principle simulation end and the high-level language program end interact based on the application layer communication protocol; The application layer communication protocol adopts a mixed encoding of binary and plain text, and the application layer communication protocol header adopts binary encoding with a fixed length, and the application layer communication protocol body adopts plain text encoding with a variable length.