CN116089124A - Communication method, device and medium of simulation system - Google Patents

Communication method, device and medium of simulation system Download PDF

Info

Publication number
CN116089124A
CN116089124A CN202310141911.5A CN202310141911A CN116089124A CN 116089124 A CN116089124 A CN 116089124A CN 202310141911 A CN202310141911 A CN 202310141911A CN 116089124 A CN116089124 A CN 116089124A
Authority
CN
China
Prior art keywords
firmware
tested
data
transmitted
communication
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.)
Pending
Application number
CN202310141911.5A
Other languages
Chinese (zh)
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.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN202310141911.5A priority Critical patent/CN116089124A/en
Publication of CN116089124A publication Critical patent/CN116089124A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application relates to the field of SSD development, and discloses a simulation system communication method, device and medium, comprising the following steps: acquiring a user operation instruction to acquire firmware information to be tested; generating a communication request according to the user operation instruction, the firmware information to be tested and the shared memory, and sending the user operation instruction and a storage address of corresponding data to be transmitted in the shared memory to the firmware end; and sending the communication request to the firmware to be tested so as to facilitate the firmware to be tested to determine the address information of the data to be transmitted and acquire the data to be transmitted. According to the method and the device, a communication request which can be identified by the firmware to be tested is generated according to the user operation instruction and the firmware to be tested information, so that address information of data to be transmitted in the shared memory is sent to the firmware to be tested, and the firmware to be tested can conveniently acquire the corresponding data to be transmitted and process the data. The communication request is only used for transmitting relevant information from the host to the firmware to be tested, and normal communication of the simulation system is prevented from being influenced by the type of the host or the firmware or system change.

Description

Communication method, device and medium of simulation system
Technical Field
The application relates to the field of SSD development, in particular to a simulation system communication method, device and medium.
Background
At present, in the field of SSDs (Solid State Drives, solid state disks), a set of complete simulation platform is required to perform simulation tests such as communication simulation, algorithm simulation, error injection and the like, so that the performance of the SSD is tested and verified, and the development efficiency and reliability of SSD products are improved.
In the prior art, the inter-process communication method between the control host and the SSD mainly comprises pipeline communication, message queue communication, shared memory, semaphore, signal, socket and the like. The communication interfaces between the system on the computer with the SSD and the SSD mainly comprise PCIE, SATA, M.2, U.2 and the like. Common communication protocols are IDE, AHCI, SATA, NVMe, etc. In the existing SSD simulation system, the transfer message mainly depends on the modes of function interfaces in the process, message queues in the process and the like, and the mode is simple, but the coupling degree between a HOST (HOST) process and the SSD process is too high, when the type of the HOST or the SSD or the configuration environment changes, the processes cannot normally communicate, and the communication mode severely limits the operations of performance, maintenance, transplantation, upgrading and the like of the simulation system.
It can be seen that how to provide a communication manner to ensure that different types of hosts and firmware (SSD) can normally communicate in different configuration environments or systems is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The purpose of the application is to provide a communication method, a device and a medium of a simulation system, which prevent the normal communication of the simulation system from being influenced by the type of a host or firmware (SSD) or system change, thereby improving the stability and the reliability of the communication of the simulation system.
In order to solve the above technical problems, the present application provides a communication method of a simulation system, which is applied to a host, and the method includes:
acquiring a user operation instruction to acquire firmware information to be tested;
generating a communication request according to the user operation instruction, the firmware information to be tested and a shared memory, wherein the shared memory is a memory space which is used for storing data to be transmitted and can be read by both the firmware to be tested and a host;
and sending the communication request to the firmware to be tested so that the firmware to be tested can determine the address information of the data to be transmitted and acquire the data to be transmitted.
Preferably, the generating the communication request according to the user operation instruction, the firmware information to be tested and the shared memory includes:
determining a communication protocol according to the firmware information to be tested;
and generating the communication request according to the user operation instruction, the communication protocol and the address information of the data to be transmitted in the shared memory.
Preferably, the sending the communication request to the firmware under test includes:
and sending the communication request to the firmware to be tested in a SOCKET mode.
Preferably, after the step of sending the communication request to the firmware to be tested, the method further includes:
judging whether a completion message sent by the firmware to be tested is detected;
and if not, sending alarm information.
Preferably, after the step of determining whether the completion message sent by the firmware to be tested is detected, the method further includes:
if the completion message is detected, evaluating the performance of the firmware to be tested according to the completion message.
In order to solve the technical problem, the application also provides a communication method of the simulation system, which is applied to a firmware end to be tested, and the method comprises the following steps:
obtaining a communication request sent by a host, wherein the communication request is a message generated by the host according to a user operation instruction, firmware information to be tested and a shared memory, and the shared memory is a memory space for storing data to be transmitted and can be read by both the firmware to be tested and the host;
determining address information of data to be transmitted in the shared memory according to the communication request;
and acquiring the data to be transmitted according to the address information.
Preferably, after the step of obtaining the data to be transmitted according to the address information, the method further includes:
and sending a completion message to the host.
In order to solve the above technical problem, the present application further provides a communication device of an emulation system, which is applied to a host, and the device includes:
the acquisition module is used for acquiring a user operation instruction so as to acquire firmware information to be tested;
the generation module is used for generating a communication request according to the user operation instruction, the firmware information to be tested and a shared memory, wherein the shared memory is a memory space which is used for storing data to be transmitted and can be read by both the firmware to be tested and a host;
and the sending module is used for sending the communication request to the firmware to be tested so that the firmware to be tested can determine the address information of the data to be transmitted and acquire the data to be transmitted.
In order to solve the technical problem, the application also provides a simulation system communication device, which comprises a memory for storing a computer program;
and the processor is used for realizing the steps of the simulation system communication method when executing the computer program.
In order to solve the above technical problem, the present application further provides a computer readable storage medium, where a computer program is stored, where the computer program when executed by a processor implements the steps of the simulation system communication method.
The application provides a communication method of a simulation system, which is applied to a host side, and comprises the following steps: acquiring a user operation instruction to acquire information of the firmware to be tested, so as to realize communication between a host side and the firmware to be tested; generating a communication request according to a user operation instruction, firmware information to be tested and a shared memory, wherein the shared memory is a memory space which is used for storing data to be transmitted and can be read by both the firmware to be tested and a host, so that the user operation instruction and a storage address of the corresponding data to be transmitted in the shared memory are sent to a firmware end, and the data to be transmitted is conveniently processed; and sending the communication request to the firmware to be tested so as to facilitate the firmware to be tested to determine the address information of the data to be transmitted and acquire the data to be transmitted. Therefore, according to the technical scheme provided by the application, the communication request which can be identified by the firmware to be tested is generated according to the user operation instruction and the firmware to be tested information, so that the address information of the data to be transmitted in the shared memory is sent to the firmware to be tested, and the firmware to be tested can conveniently acquire the corresponding data to be transmitted and process the data. The communication request is only used for transmitting relevant information from the host to the firmware to be tested, and normal communication of the simulation system is prevented from being influenced by the type of the host or the firmware (SSD) or system change.
In addition, the application also provides a simulation system communication device and a medium, and the user operation instruction is acquired to acquire the information of the firmware to be tested, so that the communication between the host side and the firmware to be tested is realized; generating a communication request according to a user operation instruction, firmware information to be tested and a shared memory, wherein the shared memory is a memory space which is used for storing data to be transmitted and can be read by both the firmware to be tested and a host, so that the user operation instruction and a storage address of the corresponding data to be transmitted in the shared memory are sent to a firmware end, and the data to be transmitted is conveniently processed; and sending the communication request to the firmware to be tested so as to facilitate the firmware to be tested to determine the address information of the data to be transmitted and acquire the data to be transmitted. Therefore, according to the technical scheme provided by the application, the communication request which can be identified by the firmware to be tested is generated according to the user operation instruction and the firmware to be tested information, so that the address information of the data to be transmitted in the shared memory is sent to the firmware to be tested, and the firmware to be tested can conveniently acquire the corresponding data to be transmitted and process the data. The communication request is only used for transmitting relevant information from the host to the firmware to be tested, and normal communication of the simulation system is prevented from being influenced by the type of the host or the firmware (SSD) or system change.
Drawings
For a clearer description of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described, it being apparent that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a communication method of a simulation system according to an embodiment of the present application;
FIG. 2 is a flow chart of another communication method of a simulation system according to an embodiment of the present application;
FIG. 3 is a block diagram of a communication device of a simulation system according to an embodiment of the present application;
fig. 4 is a block diagram of another communication device of a simulation system according to an embodiment of the present application.
Detailed Description
The following description of the technical solutions in the embodiments of the present application will be made clearly and completely with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments herein without making any inventive effort are intended to fall within the scope of the present application.
The core of the application is to provide a communication method, a device and a medium of a simulation system, which prevent the normal communication of the simulation system from being influenced by the type of a host or firmware (SSD) or system change, thereby improving the stability and the reliability of the communication of the simulation system.
In the working scene of the solid state disk simulation system, the host end and the firmware end of the simulation system realize instruction transmission and data exchange through communication. The inter-process communication method of the host and the SSD mainly comprises pipeline communication, message queue communication, shared memory, semaphore, signal, socket and the like. In general, when large-scale data transmission is involved, the host side generally sends the data to be transmitted to the firmware side, but this way needs to ensure that the host side and the firmware side can adapt, and when the host or firmware type changes, the user also needs to adapt the simulation system, so as to affect the working efficiency of the SSD simulation test. In order to solve the problem, the application provides a communication method of a simulation system, which is used for acquiring information of firmware to be tested by acquiring a user operation instruction so as to realize communication between a host end and the firmware to be tested; generating a communication request according to a user operation instruction, firmware information to be tested and a shared memory, wherein the shared memory is a memory space which is used for storing data to be transmitted and can be read by both the firmware to be tested and a host, so that the user operation instruction and a storage address of the corresponding data to be transmitted in the shared memory are sent to a firmware end, and the data to be transmitted is conveniently processed; and sending the communication request to the firmware to be tested so as to facilitate the firmware to be tested to determine the address information of the data to be transmitted and acquire the data to be transmitted. Therefore, according to the technical scheme provided by the application, the communication request which can be identified by the firmware to be tested is generated according to the user operation instruction and the firmware to be tested information, so that the address information of the data to be transmitted in the shared memory is sent to the firmware to be tested, and the firmware to be tested can conveniently acquire the corresponding data to be transmitted and process the data. The communication request is only used for transmitting relevant information from the host to the firmware to be tested, and normal communication of the simulation system is prevented from being influenced by the type of the host or the firmware or system change.
In the technical scheme provided by the application, when a user sends data to the firmware, the data is required to be sent to the shared memory of the host and the firmware through the host end, and then the firmware end obtains the corresponding data from the shared memory according to the communication request sent by the host end, so that the data transmission is realized.
In order to provide a better understanding of the present application, those skilled in the art will now make further details of the present application with reference to the drawings and detailed description.
Fig. 1 is a flowchart of a communication method of a simulation system, provided in an embodiment of the present application, applied to a host side, as shown in fig. 1, where the method includes:
s10: and acquiring a user operation instruction to acquire the firmware information to be tested.
In a specific implementation, a user controls and tests the simulation system and the firmware through a client provided by a host side of the simulation system. When the client acquires the user operation instruction, the user operation instruction is analyzed to acquire the firmware information to be detected, wherein the firmware information to be detected comprises the type of the firmware to be detected, the supported interface, the supported communication protocol and the like, so that the host side can generate a communication request which can be identified by the firmware to be detected according to the firmware information to be detected.
S11: and generating a communication request according to the user operation instruction, the firmware information to be tested and the shared memory, wherein the shared memory is a memory space which is used for storing data to be transmitted and can be read by both the firmware to be tested and the host.
In a specific implementation, the user operation instruction includes data saving, data reading, data modifying, and the like, taking data saving as an example, when a user sends data to the firmware, the data needs to be sent to the shared memory of the host and the firmware, and a communication request including a shared memory address is sent to the firmware end, so that the firmware end obtains corresponding data from the shared memory according to the communication request sent by the host end, thereby realizing data transmission.
It can be understood that, in order to prevent the communication protocol from being unable to adapt due to the change of the host end or the firmware end, the processes of the host end and the firmware end are independent from each other, when communication is needed, the host end determines the corresponding communication protocol according to the information of the firmware end, so that the address of the data in the shared space and the data operation instruction are sent to the firmware end, so that the firmware end processes the data according to the user operation instruction.
In this embodiment, taking an NVME message as an example, a communication request of a host side and a firmware side is described, and specifically, the generated NVME message includes: the method comprises the steps of storing addresses of data to be transmitted in a shared memory, instructions of users for the data to be transmitted, storing addresses of the data to be transmitted at a firmware end and the like.
S12: and sending the communication request to the firmware to be tested so as to facilitate the firmware to be tested to determine the address information of the data to be transmitted and acquire the data to be transmitted.
The embodiment provides a communication method of a simulation system, which is used for acquiring information of firmware to be tested by acquiring a user operation instruction so as to realize communication between a host side and the firmware to be tested; generating a communication request according to a user operation instruction, firmware information to be tested and a shared memory, wherein the shared memory is a memory space which is used for storing data to be transmitted and can be read by both the firmware to be tested and a host, so that the user operation instruction and a storage address of the corresponding data to be transmitted in the shared memory are sent to a firmware end, and the data to be transmitted is conveniently processed; and sending the communication request to the firmware to be tested so as to facilitate the firmware to be tested to determine the address information of the data to be transmitted and acquire the data to be transmitted. Therefore, according to the technical scheme provided by the application, the communication request which can be identified by the firmware to be tested is generated according to the user operation instruction and the firmware to be tested information, so that the address information of the data to be transmitted in the shared memory is sent to the firmware to be tested, and the firmware to be tested can conveniently acquire the corresponding data to be transmitted and process the data. The communication request is only used for transmitting relevant information from the host to the firmware to be tested, and normal communication of the simulation system is prevented from being influenced by the type of the host or the firmware or system change.
Taking NVME protocol as an example, a communication process between a host end and a firmware end is described, and the process includes:
(1) Generating nvme information adapting to an SSD protocol according to parameters in a terminal or a file by a host terminal, wherein address information in the nvme information fills an offset address of read/write data in a shared memory;
(2) The host end data transceiver module sends the generated nvme message to the firmware end in a socket mode and the like;
(3) After receiving nvme message, the receiving module at firmware end stores the received original information into the receiving message queue, and at the same time converts the shared memory offset address in the message into actual address, and transmits the nvme message after converting the address to firmware for processing.
(4) After the firmware end processes the nvme request message, a completion message needs to be returned to host; the firmware only needs to transmit the original request id to a completion sending module, and the col sending module can find the original receiving information in the receiving message queue according to the id and automatically generate the corresponding completion information.
(5) The host receives the completion message, processes the data in the memory according to the completed information, and releases the corresponding memory or takes out the data for further processing.
As a preferred embodiment, generating the communication request according to the user operation instruction, the firmware information to be tested and the shared memory includes: determining a communication protocol according to firmware information to be tested; and generating a communication request according to the user operation instruction and the communication protocol and the address information of the data to be transmitted in the shared memory.
Further, sending the communication request to the firmware under test includes: and sending the communication request to the firmware to be tested in a SOCKET mode.
In a specific implementation, after the host side generates the communication request according to the firmware side information, the communication request needs to be sent to the firmware side, so that the firmware side can process the data conveniently. Specifically, the communication request may be sent to the firmware to be tested in a SOCKET manner.
It should be noted that, after the step of sending the communication request to the firmware to be tested, the method further includes: judging whether a completion message sent by the firmware to be tested is detected; and if not, sending alarm information.
If the completion message sent by the firmware to be tested is detected, the firmware to be tested is indicated to process the data according to the user requirement, and the performance of the firmware to be tested can be evaluated according to the returned completion message. If the completion message sent by the firmware to be tested is not detected, the simulation system is indicated to have a fault, and management personnel are required to maintain in time.
As a preferred embodiment, after the step of determining whether the completion message sent by the firmware to be tested is detected, the method further includes:
if the completion message is detected, evaluating the performance of the firmware to be tested according to the completion message.
Fig. 2 is a flowchart of another communication method of a simulation system, provided in an embodiment of the present application, applied to a firmware to be tested, as shown in fig. 2, where the method includes:
s20: the method comprises the steps of obtaining a communication request sent by a host, wherein the communication request is a message generated by the host according to a user operation instruction, firmware information to be tested and a shared memory, and the shared memory is a memory space for storing data to be transmitted and can be read by both the firmware to be tested and the host;
s21: determining address information of data to be transmitted in a shared memory according to a communication request;
s22: and acquiring data to be transmitted according to the address information.
The embodiment provides a communication method of a simulation system, which is used for acquiring information of firmware to be tested by acquiring a user operation instruction so as to realize communication between a host side and the firmware to be tested; generating a communication request according to a user operation instruction, firmware information to be tested and a shared memory, wherein the shared memory is a memory space which is used for storing data to be transmitted and can be read by both the firmware to be tested and a host, so that the user operation instruction and a storage address of the corresponding data to be transmitted in the shared memory are sent to a firmware end, and the data to be transmitted is conveniently processed; and sending the communication request to the firmware to be tested so as to facilitate the firmware to be tested to determine the address information of the data to be transmitted and acquire the data to be transmitted. Therefore, according to the technical scheme provided by the application, the communication request which can be identified by the firmware to be tested is generated according to the user operation instruction and the firmware to be tested information, so that the address information of the data to be transmitted in the shared memory is sent to the firmware to be tested, and the firmware to be tested can conveniently acquire the corresponding data to be transmitted and process the data. The communication request is only used for transmitting relevant information from the host to the firmware to be tested, and normal communication of the simulation system is prevented from being influenced by the type of the host or the firmware or system change.
Further, after the step of obtaining the data to be transmitted according to the address information, the method further includes: and sending a completion message to the host end so as to facilitate the host end to acquire the working state of the system.
In the above embodiments, the detailed description is given of the communication method of the simulation system, and the application further provides a corresponding embodiment of the communication device of the simulation system. It should be noted that the present application describes an embodiment of the device portion from two angles, one based on the angle of the functional module and the other based on the angle of the hardware.
Fig. 3 is a block diagram of a communication device of an emulation system according to an embodiment of the present application, as shown in fig. 3, where the device is applied to a host, and includes:
the acquisition module 10 is used for acquiring a user operation instruction to acquire firmware information to be tested;
the generating module 11 is configured to generate a communication request according to a user operation instruction, firmware information to be tested, and a shared memory, where the shared memory is a memory space for storing data to be transmitted and both the firmware to be tested and the host can read;
the sending module 12 is configured to send a communication request to the firmware to be tested, so that the firmware to be tested determines address information of data to be transferred and obtains the data to be transferred.
Since the embodiments of the apparatus portion and the embodiments of the method portion correspond to each other, the embodiments of the apparatus portion are referred to the description of the embodiments of the method portion, and are not repeated herein.
The embodiment provides a simulation system communication device, which obtains firmware information to be tested by obtaining a user operation instruction, so as to realize communication between a host side and the firmware to be tested; generating a communication request according to a user operation instruction, firmware information to be tested and a shared memory, wherein the shared memory is a memory space which is used for storing data to be transmitted and can be read by both the firmware to be tested and a host, so that the user operation instruction and a storage address of the corresponding data to be transmitted in the shared memory are sent to a firmware end, and the data to be transmitted is conveniently processed; and sending the communication request to the firmware to be tested so as to facilitate the firmware to be tested to determine the address information of the data to be transmitted and acquire the data to be transmitted. Therefore, according to the technical scheme provided by the application, the communication request which can be identified by the firmware to be tested is generated according to the user operation instruction and the firmware to be tested information, so that the address information of the data to be transmitted in the shared memory is sent to the firmware to be tested, and the firmware to be tested can conveniently acquire the corresponding data to be transmitted and process the data. The communication request is only used for transmitting relevant information from the host to the firmware to be tested, and normal communication of the simulation system is prevented from being influenced by the type of the host or the firmware or system change.
Fig. 4 is a block diagram of another simulation system communication apparatus according to an embodiment of the present application, and as shown in fig. 4, the simulation system communication apparatus includes: a memory 20 for storing a computer program;
a processor 21 for implementing the steps of the simulation system communication method of the above embodiment when executing a computer program.
The terminal device provided in this embodiment may include, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like.
Processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 may be implemented in hardware in at least one of a digital signal processor (Digital Signal Processor, DSP), a Field programmable gate array (Field-Programmable Gate Array, FPGA), a programmable logic array (Programmable Logic Array, PLA). The processor 21 may also comprise a main processor, which is a processor for processing data in an awake state, also called central processor (Central Processing Unit, CPU), and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with an image processor (Graphics Processing Unit, GPU) for taking care of rendering and rendering of the content that the display screen is required to display. In some embodiments, the processor 21 may also include an artificial intelligence (Artificial Intelligence, AI) processor for processing computing operations related to machine learning.
Memory 20 may include one or more computer-readable storage media, which may be non-transitory. Memory 20 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used for storing a computer program 201, which, when loaded and executed by the processor 21, is capable of implementing the relevant steps of the simulation system communication method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 20 may further include an operating system 202, data 203, and the like, where the storage manner may be transient storage or permanent storage. The operating system 202 may include Windows, unix, linux, among others. Data 203 may include, but is not limited to, firmware information, user operational instructions, shared memory, and the like.
In some embodiments, the simulation system communication device may further include a display 22, an input/output interface 23, a communication interface 24, a power supply 25, and a communication bus 26.
Those skilled in the art will appreciate that the configuration shown in FIG. 4 is not limiting of the simulation system communication apparatus and may include more or fewer components than shown.
The simulation system communication device provided by the embodiment of the application comprises a memory and a processor, wherein the processor can realize the following method when executing a program stored in the memory:
acquiring a user operation instruction to acquire firmware information to be tested;
generating a communication request according to a user operation instruction, firmware information to be tested and a shared memory, wherein the shared memory is a memory space which is used for storing data to be transmitted and can be read by both the firmware to be tested and a host;
and sending the communication request to the firmware to be tested so as to facilitate the firmware to be tested to determine the address information of the data to be transmitted and acquire the data to be transmitted.
The embodiment provides a simulation system communication device, which obtains firmware information to be tested by obtaining a user operation instruction, so as to realize communication between a host side and the firmware to be tested; generating a communication request according to a user operation instruction, firmware information to be tested and a shared memory, wherein the shared memory is a memory space which is used for storing data to be transmitted and can be read by both the firmware to be tested and a host, so that the user operation instruction and a storage address of the corresponding data to be transmitted in the shared memory are sent to a firmware end, and the data to be transmitted is conveniently processed; and sending the communication request to the firmware to be tested so as to facilitate the firmware to be tested to determine the address information of the data to be transmitted and acquire the data to be transmitted. Therefore, according to the technical scheme provided by the application, the communication request which can be identified by the firmware to be tested is generated according to the user operation instruction and the firmware to be tested information, so that the address information of the data to be transmitted in the shared memory is sent to the firmware to be tested, and the firmware to be tested can conveniently acquire the corresponding data to be transmitted and process the data. The communication request is only used for transmitting relevant information from the host to the firmware to be tested, and normal communication of the simulation system is prevented from being influenced by the type of the host or the firmware or system change.
Finally, the present application also provides a corresponding embodiment of the computer readable storage medium. The computer-readable storage medium stores a computer program that, when executed by a processor, performs the steps described in the above method embodiments (the method may be a method corresponding to the host side, a method corresponding to the firmware side, or a method corresponding to the host side and the firmware side). The embodiment provides a simulation system communication device, which obtains firmware information to be tested by obtaining a user operation instruction, so as to realize communication between a host side and the firmware to be tested; generating a communication request according to a user operation instruction, firmware information to be tested and a shared memory, wherein the shared memory is a memory space which is used for storing data to be transmitted and can be read by both the firmware to be tested and a host, so that the user operation instruction and a storage address of the corresponding data to be transmitted in the shared memory are sent to a firmware end, and the data to be transmitted is conveniently processed; and sending the communication request to the firmware to be tested so as to facilitate the firmware to be tested to determine the address information of the data to be transmitted and acquire the data to be transmitted. Therefore, according to the technical scheme provided by the application, the communication request which can be identified by the firmware to be tested is generated according to the user operation instruction and the firmware to be tested information, so that the address information of the data to be transmitted in the shared memory is sent to the firmware to be tested, and the firmware to be tested can conveniently acquire the corresponding data to be transmitted and process the data. The communication request is only used for transmitting relevant information from the host to the firmware to be tested, and normal communication of the simulation system is prevented from being influenced by the type of the host or the firmware or system change.
It will be appreciated that the methods of the above embodiments, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored on a computer readable storage medium. With such understanding, the technical solution of the present application, or a part contributing to the prior art or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium, performing all or part of the steps of the method described in the various embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The simulation system communication method, device and medium provided by the application are described in detail above. In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section. It should be noted that it would be obvious to those skilled in the art that various improvements and modifications can be made to the present application without departing from the principles of the present application, and such improvements and modifications fall within the scope of the claims of the present application.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A method for communication in a simulation system, the method being applied to a host, the method comprising:
acquiring a user operation instruction to acquire firmware information to be tested;
generating a communication request according to the user operation instruction, the firmware information to be tested and a shared memory, wherein the shared memory is a memory space which is used for storing data to be transmitted and can be read by both the firmware to be tested and a host;
and sending the communication request to the firmware to be tested so that the firmware to be tested can determine the address information of the data to be transmitted and acquire the data to be transmitted.
2. The simulation system communication method according to claim 1, wherein the generating a communication request according to the user operation instruction, the firmware information to be tested, and the shared memory includes:
determining a communication protocol according to the firmware information to be tested;
and generating the communication request according to the user operation instruction, the communication protocol and the address information of the data to be transmitted in the shared memory.
3. The simulation system communication method according to claim 1, wherein the sending the communication request to the firmware under test includes:
and sending the communication request to the firmware to be tested in a SOCKET mode.
4. The method for communication of a simulation system according to claim 1, further comprising, after the step of sending the communication request to the firmware under test:
judging whether a completion message sent by the firmware to be tested is detected;
and if not, sending alarm information.
5. The method for simulating communication system according to claim 4, wherein after the step of determining whether the completion message sent by the firmware to be tested is detected, the method further comprises:
if the completion message is detected, evaluating the performance of the firmware to be tested according to the completion message.
6. A communication method of a simulation system, which is characterized by being applied to a firmware end to be tested, the method comprising:
obtaining a communication request sent by a host, wherein the communication request is a message generated by the host according to a user operation instruction, firmware information to be tested and a shared memory, and the shared memory is a memory space for storing data to be transmitted and can be read by both the firmware to be tested and the host;
determining address information of data to be transmitted in the shared memory according to the communication request;
and acquiring the data to be transmitted according to the address information.
7. The simulation system communication method according to claim 6, wherein after the step of acquiring the data to be transmitted according to the address information, further comprises:
and sending a completion message to the host.
8. An emulation system communication device for use at a host, said device comprising:
the acquisition module is used for acquiring a user operation instruction so as to acquire firmware information to be tested;
the generation module is used for generating a communication request according to the user operation instruction, the firmware information to be tested and a shared memory, wherein the shared memory is a memory space which is used for storing data to be transmitted and can be read by both the firmware to be tested and a host;
and the sending module is used for sending the communication request to the firmware to be tested so that the firmware to be tested can determine the address information of the data to be transmitted and acquire the data to be transmitted.
9. A simulation system communication apparatus comprising a memory for storing a computer program;
a processor for implementing the steps of the simulation system communication method according to any one of claims 1 to 7 when executing said computer program.
10. A computer readable storage medium, characterized in that it has stored thereon a computer program which, when executed by a processor, implements the steps of the simulation system communication method according to any of claims 1 to 7.
CN202310141911.5A 2023-02-17 2023-02-17 Communication method, device and medium of simulation system Pending CN116089124A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310141911.5A CN116089124A (en) 2023-02-17 2023-02-17 Communication method, device and medium of simulation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310141911.5A CN116089124A (en) 2023-02-17 2023-02-17 Communication method, device and medium of simulation system

Publications (1)

Publication Number Publication Date
CN116089124A true CN116089124A (en) 2023-05-09

Family

ID=86206341

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310141911.5A Pending CN116089124A (en) 2023-02-17 2023-02-17 Communication method, device and medium of simulation system

Country Status (1)

Country Link
CN (1) CN116089124A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116243957A (en) * 2023-05-10 2023-06-09 北京得瑞领新科技有限公司 Function extension control method, device and system of SSD

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116243957A (en) * 2023-05-10 2023-06-09 北京得瑞领新科技有限公司 Function extension control method, device and system of SSD
CN116243957B (en) * 2023-05-10 2023-10-31 北京得瑞领新科技有限公司 Function extension control method, device and system of SSD

Similar Documents

Publication Publication Date Title
US20140068134A1 (en) Data transmission apparatus, system, and method
CN108768730B (en) Method and device for operating intelligent network card
US10116746B2 (en) Data storage method and network interface card
US20170031694A1 (en) System and method for remote system configuration managment
US10110691B2 (en) Systems and methods for enabling virtual keyboard-video-mouse for external graphics controllers
US7895376B2 (en) Hardware configuration information system, method, and computer program product
CN116089124A (en) Communication method, device and medium of simulation system
CN112996020A (en) Bluetooth-based automatic testing method and device and Bluetooth testing terminal
US20200341653A1 (en) Method, network adapter and computer program product for processing data
CN114743586B (en) Mirror image storage implementation method and device of storage model and storage medium
CN114936135A (en) Abnormity detection method and device and readable storage medium
CN111371799B (en) Method, device and equipment for controlling data receiving and transmitting of MCTP (Multi-channel media Port) controller
WO2010050957A1 (en) Bit inversion for communication interface
CN112084099A (en) Method, device and equipment for obtaining alarm state value based on host and storage medium
CN110327626B (en) Virtual server creation method and device
CN113626087A (en) Method, system and device for data communication between host and BMC
CN113238863A (en) Data interaction method, device and system of BMC and BIOS
CN112579507A (en) Host machine and BMC communication method, BIOS, operating system, BMC and server
CN111198837A (en) SDIO interface system based on FPGA and controller bridging method
CN114301927B (en) Main node selection method, device and medium in distributed system
CN114721895B (en) Verification method, platform, equipment and medium for design to be tested
CN107305533B (en) Data transmission method and server
CN115002231A (en) Communication protocol based on HEX format, communication device and medium
US20040049560A1 (en) Method and apparatus for configuring a computer system to operate with perhiperal devices
CN114327771A (en) Communication method, device, equipment and storage medium of virtual machine and host

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