Multifunctional import device and method of external pseudo static random access memory

By externally connecting a pseudo-static random access memory and a field programmable gate array chip to the multi-function introduction device, the data cache capacity is expanded, the data loss problem in the existing technology is solved, and more efficient data protection is achieved.

CN118656325APending Publication Date: 2024-09-17中孚安全技术有限公司
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Due to the small internal cache capacity of the main control chip, the existing multi-function import device has a high probability of data loss during one-way transmission and cannot effectively protect important data.

Method used

By connecting an external pseudo-static random access memory, the data cache capacity of the receiving end is expanded, and the field programmable gate array chip is used to simulate the eMMC interface, and the data is written into the pseudo-static random access memory, and is read out and transmitted to the intranet host to reduce the probability of data loss.

Benefits of technology

It effectively expands the data cache capacity, reduces the probability of data loss during one-way transmission, improves data protection capabilities, and has relatively low hardware modification and development costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656325A
    Figure CN118656325A
Patent Text Reader

Abstract

The invention provides a multifunctional import device and method for an external pseudo-static random access memory, and relates to the field of data import, and the specific scheme is that the multifunctional import device comprises a transmitting end, an optical fiber module and a receiving end which are connected in sequence; the transmitting end and the receiving end respectively comprise a main control chip, the main control chip of the receiving end is connected with the field programmable gate array chip through a peripheral interface, and the field programmable gate array chip is connected with the pseudo static random access memory; data is unidirectionally transmitted between the two main control chips through an optical fiber module, and after the main control chip of the receiving end receives the data, the data is cached in a pseudo-static random access memory and then is sent to an intranet host from the pseudo-static random access memory; by externally connecting the pseudo-static random access memory, the data cache capacity of the receiving end is increased, and the loss probability of data during one-way transmission is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of data import, and in particular relates to a multifunctional import device and method of an external pseudo-static random access memory. Background Art

[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.

[0003] With the development of information technology and Internet technology, data leakage is becoming more and more serious, and data protection is becoming more and more important. When a maliciously modified USB flash drive or hard drive is connected to an intranet host with important data, it may cause serious data leakage or damage by malicious Trojan programs.

[0004] The existing method for protecting the data of the intranet host is to use a multifunctional import device to send the data of the external network to the intranet host by a unidirectional transmission method, and the multifunctional import device is divided into a sending end and a receiving end, each of which has a main control chip. The sending end is connected to a USB flash drive or a hard disk, and the receiving end is connected to the intranet host. The sending end transmits the data to the receiving end unidirectionally through an optical fiber and then puts the data into the internal cache of the receiving end main control chip. When an abnormality occurs in the intranet host, resulting in the data in the cache not being sent in time, the internal cache of the receiving end buffers the data to prevent data loss.

[0005] In the existing multifunctional import device, the data cache of the receiving end is in the internal cache of the main control chip. Due to the hardware limitations of the existing multifunctional import device, the capacity is small, only a few hundred KB and the capacity cannot be expanded. Limited by the capacity of the internal cache of the receiving end, the buffering effect on the data is limited, and data loss is bound to occur. Summary of the invention

[0006] In order to overcome the deficiencies of the above-mentioned prior art, the present invention provides a multifunctional import device and method of an external pseudo-static random access memory, which increases the data cache capacity of the receiving end and reduces the probability of data loss during unidirectional transmission through the external pseudo-static random access memory.

[0007] To achieve the above objectives, one or more embodiments of the present invention provide the following technical solutions:

[0008] A first aspect of the present invention provides a multifunctional import device for an external pseudo-static random access memory.

[0009] A multifunctional import device for an external pseudo-static random access memory, comprising a transmitting end, an optical fiber module and a receiving end connected in sequence;

[0010] The transmitting end and the receiving end each include a main control chip, the main control chip of the receiving end is connected to a field programmable gate array chip through a peripheral interface, and the field programmable gate array chip is connected to a pseudo-static random access memory;

[0011] The two main control chips transmit data unidirectionally through the optical fiber module. After receiving the data, the main control chip at the receiving end first caches the data in the pseudo-static random access memory, and then sends the data from the pseudo-static random access memory to the intranet host.

[0012] Furthermore, the main control chip of the transmitting end is provided with two interfaces: a USB interface and a SERDES interface;

[0013] The USB interface is used to connect to the external network of data;

[0014] The SERDES interface is used to connect to the optical fiber module.

[0015] Furthermore, the main control chip of the receiving end is provided with three interfaces: a USB interface, a SERDES interface and an eMMChost interface;

[0016] The USB interface is used to connect to the intranet host;

[0017] The SERDES interface is used to connect to the optical fiber module;

[0018] The eMMC host interface is used to connect to a field programmable gate array chip.

[0019] Further, the optical fiber module comprises an optical fiber module transmitting end and an optical fiber module receiving end;

[0020] After receiving the electrical data signal from the main control chip at the transmitting end, the transmitting end of the optical fiber module converts the electrical data signal into an optical data signal and sends it unidirectionally to the receiving end of the optical fiber module;

[0021] The optical fiber module receiving end converts the optical signal into an electrical data signal and sends it to the receiving end main control chip.

[0022] Furthermore, the field programmable gate array chip utilizes GPIO to simulate an eMMC device interface, and connects the pseudo-static random access memory through the eMMC device interface and RTL.

[0023] Furthermore, after receiving the data, the main control chip of the receiving end first caches the data in a pseudo-static random access memory, specifically:

[0024] Through the eMMC host interface, a data write command is sent to write the data into the field programmable gate array chip. The RTL user logic in the field programmable gate array chip parses the command and data, and writes the data into the pseudo-static random access memory through the eMMC device interface. After the write is successful, the field programmable gate array chip feeds back a data write success signal to the receiving end main control chip.

[0025] Furthermore, the sending of data from the pseudo-static random access memory to the intranet host is specifically as follows:

[0026] When the receiving end main control chip receives the data write success signal, it sends a data read command through the eMMC host interface. The RTL user logic in the field programmable gate array chip parses the command, reads the data from the pseudo-static random access memory, and sends it to the intranet host to complete the data import.

[0027] A second aspect of the present invention provides a multifunctional import method of an external pseudo-static random access memory.

[0028] A multifunctional import method of an external pseudo-static random access memory, comprising:

[0029] The data is transmitted unidirectionally between the main control chip at the sending end and the main control chip at the receiving end through the optical fiber module. After the main control chip at the receiving end receives the data, it is first cached in the pseudo-static random access memory, and then the data is sent from the pseudo-static random access memory to the intranet host;

[0030] The main control chip at the receiving end is connected to a field programmable gate array chip through a peripheral interface, and the field programmable gate array chip is connected to a pseudo-static random access memory.

[0031] The third aspect of the present invention provides a computer-readable storage medium having a program stored thereon, which, when executed by a processor, implements the steps of a multifunctional import method of an external pseudo-static random access memory as described in the second aspect of the present invention.

[0032] The fourth aspect of the present invention provides an electronic device, including a memory, a processor, and a program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of a multifunctional import method of an external pseudo-static random access memory as described in the second aspect of the present invention are implemented.

[0033] One or more of the above technical solutions have the following beneficial effects:

[0034] The multifunctional import device of the external pseudo-static random access memory provided by the present invention increases the data buffer capacity of the receiving end and reduces the probability of data loss during unidirectional transmission through the external pseudo-static random access memory.

[0035] The present invention utilizes the existing multifunctional import device hardware, utilizes the idle peripheral eMMC interface of the main control chip as the data access interface, and externally connects FPGA to simulate a PSRAM pseudo-static random access memory of the eMMC interface, thereby reducing hardware modification and development costs.

[0036] The present invention can use different types of FPGA chips to simulate an eMMC device interface and use its internal storage resources to implement different types of memory chips.

[0037] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0039] Figure 1 This is a structural diagram of an existing multifunctional introduction device.

[0040] Figure 2 This is a structural diagram of a multifunctional import device of an external pseudo-static random access memory according to the first embodiment.

[0041] Figure 3 It is a method flow chart structure diagram of the second embodiment. DETAILED DESCRIPTION

[0042] It should be noted that the following detailed descriptions are illustrative and are intended to provide further explanation of the present application. Unless otherwise specified, all technical and scientific terms used in the present invention have the same meanings as those commonly understood by those skilled in the art to which the present application belongs.

[0043] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0044] Embodiment 1

[0045] In one embodiment of the present disclosure, a multifunctional import device for an external pseudo-static random access memory is provided, which is composed of a transmitting end, an optical fiber module and a receiving end connected in sequence;

[0046] The transmitting end and the receiving end each include a main control chip, the main control chip of the receiving end is connected to a field programmable gate array chip through a peripheral interface, and the field programmable gate array chip is connected to a pseudo-static random access memory;

[0047] The two main control chips transmit data unidirectionally through the optical fiber module. After receiving the data, the main control chip at the receiving end first caches the data in the pseudo-static random access memory, and then sends the data from the pseudo-static random access memory to the intranet host.

[0048] Furthermore, the main control chip of the transmitting end is provided with two interfaces: a USB interface and a SERDES interface;

[0049] The USB interface is used to connect to the external network of data;

[0050] The SERDES interface is used to connect to the optical fiber module.

[0051] Furthermore, the main control chip of the receiving end is provided with three interfaces: a USB interface, a SERDES interface and an eMMChost interface;

[0052] The USB interface is used to connect to the intranet host;

[0053] The SERDES interface is used to connect to the optical fiber module;

[0054] The eMMC host interface is used to connect to a field programmable gate array chip.

[0055] Further, the optical fiber module comprises an optical fiber module transmitting end and an optical fiber module receiving end;

[0056] After receiving the electrical data signal from the main control chip at the transmitting end, the transmitting end of the optical fiber module converts the electrical data signal into an optical data signal and sends it unidirectionally to the receiving end of the optical fiber module;

[0057] The optical fiber module receiving end converts the optical signal into an electrical data signal and sends it to the receiving end main control chip.

[0058] Furthermore, the field programmable gate array chip uses GPIO to simulate an eMMC device interface, and connects the pseudo-static random access memory through the eMMC device interface and RTL. Furthermore, after the main control chip at the receiving end receives the data, it first caches it in the pseudo-static random access memory, specifically:

[0059] Through the eMMC host interface, a data write command is sent to write the data into the field programmable gate array chip. The RTL user logic in the field programmable gate array chip parses the command and data, and writes the data into the pseudo-static random access memory through the eMMC device interface. After the write is successful, the field programmable gate array chip feeds back a data write success signal to the receiving end main control chip.

[0060] Furthermore, the sending of data from the pseudo-static random access memory to the intranet host is specifically as follows:

[0061] When the receiving end main control chip receives the data write success signal, it sends a data read command through the eMMC host interface. The RTL user logic in the field programmable gate array chip parses the command, reads the data from the pseudo-static random access memory, and sends it to the intranet host to complete the data import.

[0062] The following is a detailed description of the implementation process of a multifunctional import device for an external pseudo-static random access memory in this embodiment.

[0063] Existing multifunctional induction devices, such as Figure 1 As shown, it is divided into a transmitting end and a receiving end, the transmitting end and the receiving end are electrically isolated, and data is transmitted from the transmitting end to the receiving end through a unidirectional optical signal.

[0064] The USB interface at the sending end is connected to the external network end of the data, such as a USB flash drive or a hard disk. After the data is processed by the sending end main control chip A through the USB interface, it is sent to the optical fiber module through the SERDES interface. The optical fiber module is also divided into two parts: the optical fiber module sending end and the optical fiber module receiving end. After the sending end of the optical fiber module receives the electrical data signal, it converts the electrical data signal into an optical data signal and sends it unidirectionally to the optical fiber module receiving end. After the optical fiber module receiving end converts the optical signal into an electrical data signal, it sends it to the receiving end main control chip B through the SERDES interface. The main control chip B stores the data in the internal cache of the chip, and the intranet host reads the data in the receiving end cache in real time.

[0065] like Figure 1 In the existing multifunctional import device shown, the data cache of the receiving end is in the internal cache of the main control chip. As described in the background technology, the internal cache capacity of the main control chip is small, only a few hundred KB and cannot be expanded. The buffering effect on data is limited, and data loss is bound to occur. For this reason, on this basis, this embodiment designs a multifunctional import device with an external pseudo-static random access memory, uses a field programmable gate array (FPGA) chip to simulate an eMMCDevice interface, and uses the FPGA's internal pseudo-static random access memory (PSRAM) for temporary data caching, so as to implement the FPGA into an eMMC interface type RAM, thereby improving the data reception fault tolerance rate.

[0066] The multifunctional introduction device proposed in this embodiment, such as Figure 2 As shown, based on the original technical solution, the existing eMMC host interface of the receiving end main control chip B is used to connect with the field programmable gate array (FPGA) chip, and the FPGA chip is connected to a pseudo-static random access memory (PSRAM) through the eMMC device interface card.

[0067] The eMMC device interface here is simulated by the field programmable gate array FPGA chip using GPIO. This is a feature of the FPGA chip. Through programming, its GPIO can be turned into a peripheral interface with specific functions, similar to UART, SPI, IIC, etc.

[0068] After the receiving main control chip B receives the data, it first transmits the data to the FPGA through the eMMC host interface using the standard eMMC protocol. The FPGA's RTL user logic parses the eMMC interface commands and data, and caches the data in the internal PSRAM (pseudo-static random access memory).

[0069] When the main control chip B detects that data is stored in the FPGA, it sends the eMMC standard data read command through the eMMC interface. The FPGA's RTL user logic parses the read command and reads the data from the PSRAM, reads the data from the FPGA through the eMMC interface, and sends the data to the intranet host to complete the data import of the USB flash drive or hard disk.

[0070] Embodiment 2

[0071] In one embodiment of the present disclosure, a multifunctional import method of an external pseudo-static random access memory is provided, comprising:

[0072] The data is transmitted unidirectionally between the main control chip at the sending end and the main control chip at the receiving end through the optical fiber module. After the main control chip at the receiving end receives the data, it is first cached in the pseudo-static random access memory, and then the data is sent from the pseudo-static random access memory to the intranet host;

[0073] The main control chip at the receiving end is connected to a field programmable gate array chip through a peripheral interface, and the field programmable gate array chip is connected to a pseudo-static random access memory.

[0074] To provide a more specific example, Figure 3 As shown, the specific steps are:

[0075] Step 0: The multifunctional import device is powered on, and the sending end and the receiving end start working.

[0076] Step 1: The main control chip A at the sending end determines whether there is an external network terminal such as a USB flash drive or hard disk device connected to the USB interface. If it is detected that there is an access, it goes to step 2, otherwise it continues to detect.

[0077] Step 2: When there is external network access, read the file to be transferred.

[0078] Step 3: The main control chip A transmits the read file data to the optical fiber module in the form of electrical signals through the SERDES interface. The optical fiber module converts the electrical signals into optical signals, and then converts the optical signals into electrical signals, and sends the data to the SERDES interface of the receiving main control chip B, thus realizing one-way data transmission.

[0079] Step 4: After receiving the data, the main control chip B writes the data into the FPGA through the eMMC interface standard write command. The RTL user logic in the FPGA parses the eMMC interface command and data, and writes the data into the PSRAM inside the FPGA. After the write is successful, the FPGA feeds back a data write success signal to the main control chip B, and the main control chip B records the amount of data written.

[0080] Step 5: When the main control chip B records that data is written to the FPGA, the main control chip B sends a standard read command to the FPGA through the eMMC interface. The RTL user logic in the FPGA parses the eMMC interface command and data, reads the data from the PSRAM inside the FPGA, and sends the data to the main control chip B through the eMMC interface. The main control chip B sends the read data to the intranet host through the USB interface connected to the intranet host.

[0081] The main control chip B records the amount of data read from the FPGA, and stops reading when the amount of data read is equal to the amount of data written.

[0082] Step 6: Complete the one-way import of data from the USB flash drive or hard disk device to the intranet host.

[0083] Embodiment 3

[0084] The purpose of this embodiment is to provide a computer-readable storage medium.

[0085] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of a multifunctional import method of an external pseudo-static random access memory as described in the second embodiment of the present disclosure.

[0086] Embodiment 4

[0087] The purpose of this embodiment is to provide an electronic device.

[0088] An electronic device includes a memory, a processor, and a program stored in the memory and executable on the processor. When the processor executes the program, the steps in a multifunctional import method of an external pseudo-static random access memory as described in the second embodiment of the present disclosure are implemented.

[0089] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A multifunctional import device for an external pseudo-static random access memory, characterized in that: It consists of a transmitter, an optical fiber module and a receiver connected in sequence; The transmitting end and the receiving end each include a main control chip, the main control chip of the receiving end is connected to a field programmable gate array chip through a peripheral interface, and the field programmable gate array chip is connected to a pseudo-static random access memory; The two main control chips transmit data unidirectionally through the optical fiber module. After receiving the data, the main control chip at the receiving end first caches the data in the pseudo-static random access memory, and then sends the data from the pseudo-static random access memory to the intranet host.

2. A multifunctional import device for an external pseudo-static random access memory as claimed in claim 1, characterized in that: The main control chip of the transmitting end is provided with two interfaces: a USB interface and a SERDES interface; The USB interface is used to connect to the external network of data; The SERDES interface is used to connect to the optical fiber module.

3. A multifunctional import device for an external pseudo-static random access memory as claimed in claim 1, characterized in that: The main control chip of the receiving end is provided with three interfaces: a USB interface, a SERDES interface and an eMMC host interface; The USB interface is used to connect to the intranet host; The SERDES interface is used to connect to the optical fiber module; The eMMC host interface is used to connect to a field programmable gate array chip.

4. A multifunctional import device for an external pseudo-static random access memory as claimed in claim 1, characterized in that: The optical fiber module comprises an optical fiber module transmitting end and an optical fiber module receiving end; After receiving the electrical data signal from the main control chip at the transmitting end, the transmitting end of the optical fiber module converts the electrical data signal into an optical data signal and sends it unidirectionally to the receiving end of the optical fiber module; The optical fiber module receiving end converts the optical signal into an electrical data signal and sends it to the receiving end main control chip.

5. A multifunctional import device for an external pseudo-static random access memory as claimed in claim 3, characterized in that: The field programmable gate array chip utilizes GPIO to simulate an eMMC device interface, and connects the pseudo-static random access memory through the eMMC device interface and RTL.

6. A multifunctional import device for an external pseudo-static random access memory as claimed in claim 5, characterized in that: After the main control chip of the receiving end receives the data, it first caches it in the pseudo-static random access memory, specifically: Through the eMMC host interface, a data write command is sent to write the data into the field programmable gate array chip. The RTL user logic in the field programmable gate array chip parses the command and data, and writes the data into the pseudo-static random access memory through the eMMC device interface. After the write is successful, the field programmable gate array chip feeds back a data write success signal to the receiving end main control chip.

7. A multifunctional import device for an external pseudo-static random access memory as claimed in claim 5, characterized in that: The method of sending data from the pseudo-static random access memory to the intranet host is as follows: When the receiving end main control chip receives the data write success signal, it sends a data read command through the eMMC host interface. The RTL user logic in the field programmable gate array chip parses the command, reads the data from the pseudo-static random access memory, and sends it to the intranet host to complete the data import.

8. A multifunctional import method of an external pseudo-static random access memory, characterized in that: include: The data is transmitted unidirectionally between the main control chip at the sending end and the main control chip at the receiving end through the optical fiber module. After the main control chip at the receiving end receives the data, it is first cached in the pseudo-static random access memory, and then the data is sent from the pseudo-static random access memory to the intranet host; The main control chip at the receiving end is connected to a field programmable gate array chip through a peripheral interface, and the field programmable gate array chip is connected to a pseudo-static random access memory.

9. An electronic device, comprising: a memory for non-transitory storage of computer readable instructions; a processor for executing the computer-readable instructions; Wherein, when the computer-readable instructions are executed by the processor, the method of claim 8 is performed.

10. A storage medium, characterized in that: The computer readable instructions are non-transitorily stored, wherein when the computer readable instructions are executed by a computer, the method of claim 8 is performed.