CN105302763A - USB 3.0 protocol based read-only control system and method - Google Patents

USB 3.0 protocol based read-only control system and method Download PDF

Info

Publication number
CN105302763A
CN105302763A CN201510662312.3A CN201510662312A CN105302763A CN 105302763 A CN105302763 A CN 105302763A CN 201510662312 A CN201510662312 A CN 201510662312A CN 105302763 A CN105302763 A CN 105302763A
Authority
CN
China
Prior art keywords
usb
interface
read
control module
main frame
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
CN201510662312.3A
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.)
Third Research Institute of the Ministry of Public Security
Original Assignee
Third Research Institute of the Ministry of Public Security
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 Third Research Institute of the Ministry of Public Security filed Critical Third Research Institute of the Ministry of Public Security
Priority to CN201510662312.3A priority Critical patent/CN105302763A/en
Publication of CN105302763A publication Critical patent/CN105302763A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Systems (AREA)

Abstract

The invention relates to a USB 3.0 protocol based read-only control system and method. The system comprises a USB read-only control module connected with a host to read data in a USB device according to a data request of the host and delete other operation requests of the USB device of the host, a USB interface conversion module used for obtaining an interface protocol of the USB device and transmitting the interface protocol to the USB read-only control module, and an SPI storage module used for storing programs and configuration information of the system. According to the USB 3.0 protocol based read-only control system and method adopting the structure, a USB 3.0 interface can perform read-only reading of an access device in a mode of keeping USB 3.0 high-speed transmission; and the system is simple in structure, convenient to operate and wide in application range.

Description

Based on read-only control system and the method for USB3.0 agreement
Technical field
The present invention relates to field, particularly relate to, specifically refer to a kind of read-only control system based on USB3.0 agreement and method.
Background technology
The read-only access of equipment is evidence obtaining industry to protect case resource not caused loss of data by malice, the event such as unexpected and distorting a kind of data protection means of necessity of proposition.USB interface due to each side such as compatibility, performance all better, therefore use in the interface of electronic equipment individual and occupy high ratio.Therefore, the read-only access for USB interface has become the pre-requisite abilities that relevant device is identified in evidence obtaining.
USB3.0 is up-to-date USB specification, and this specification is initiated by companies such as Intel.USB2.0 has obtained PC manufacturer and has generally approved, interface more becomes the requisite interfaces of hardware vendor.USB3.0 is the upgraded version of USB2.0, and to USB2.0 hardware compatibility.It is that the transmission speed of interface has risen to 5Gbps full duplex that USB3.0 compares the maximum lifting of USB2.0, and USB2.0 is 480Mbps half-duplex.
Because USB3.0 upgrades from half-duplex to full-duplex mode, originally the read-only interface transmission plan of USB2.0 is not suitable for the equipment of USB3.0.On the market the scheme that USB3.0 equipment is read-only mainly be have employed to the pattern of degradation at present, under USB3.0 interface being downgraded to USB2.0 half-duplex protocol pattern, carry out the read-only access of equipment.This pattern greatly reduces the performance of USB3.0 equipment, cannot give play to the high speed advantage of USB3.0 interface.
Summary of the invention
The object of the invention is the shortcoming overcoming above-mentioned prior art, provide the read-only control system based on USB3.0 agreement and method that a kind of USB3.0 of making interface can carry out the read-only reading of access device under the pattern keeping USB3.0 high-speed transfer.
To achieve these goals, the read-only control system based on USB3.0 agreement of the present invention and method have following formation:
Should based on the read-only control system of USB3.0 agreement, its principal feature is, described system comprises:
USB read control module, in order to be connected reading the data in USB device according to the request of data of main frame and delete other operation requests of this USB device of main frame with main frame;
USB interface modular converter, in order to obtain the interface protocol of described USB device, and is sent to a described USB read control module;
SPI memory module, in order to the program of saved system and the configuration information of system.
Further, USB described read control module comprises, USB interface control module, PCIe interface unit, OUTFIFO, INFIFO, USB2.0 interface, USB3.0 interface.
The invention still further relates to a kind of read-only control method based on USB3.0 agreement, its principal feature is that described method comprises the following steps:
(1) the USB interface modular converter described in judges whether the access that there is USB device;
(2) if there is the access of USB device, then USB described read control module generates the USB storage device of the corresponding interface on main frame, then continues step (4);
(3) access of if there is no USB device, then continue step (1);
(4) whether the data operation request that the main frame described in USB read control module described in judges sends to described USB device is read request of data;
(5) if the data operation request that described main frame sends to described USB device is reading request of data, then USB described read control module reads corresponding data and is sent to described main frame from described USB device;
(6) if described main frame is not reading request of data to the data operation request that described USB device sends, USB then described read control module deletes this data operation request, and sends the information of data operation request successful operation to described main frame.
Further, described USB interface modular converter judges whether the access that there is USB device, specifically comprises the following steps:
(1.1) USB read control module opening timing described in is interrupted, with the state of the USB interface modular converter described in timing inquiry;
(1.2) USB interface modular converter judges whether the access that there is USB device;
(1.3) if there is the access of USB device, then described USB interface modular converter changes the state of self, and returns the result of the access that there is USB device;
(1.4) access of if there is no USB device, then return the result of the access that there is not USB device.
Further, USB described read control module comprises USB interface control module, USB2.0 interface and USB3.0 interface; USB described read control module generates the USB storage device of the corresponding interface on main frame, specifically comprises the following steps:
(2.1) the USB interface modular converter described in judges whether the USB device accessed is USB3.0 equipment;
(2.2) if the USB device of access is USB3.0 equipment, described USB interface control module is connected with main frame by described USB3.0 interface, and on main frame, generate the USB storage device of USB3.0 interface;
(2.3) if the USB device of access is not USB3.0 equipment, described USB interface control module is connected with main frame by described USB2.0 interface, and on main frame, generate the USB storage device of USB2.0 interface.
Further, USB described read control module comprises USB interface control module, USB2.0 interface, USB3.0 interface, OUTFIFO, INFIFO and PCIe interface unit; Whether the data operation request that the main frame described in USB described read control module judges sends to described USB device is read request of data, specifically comprises the following steps:
(4.1) main frame described in sends data operation request to described USB read control module;
(4.2) whether the data operation request described in the USB interface control module described in judges is read request of data.
Further, USB described read control module reads corresponding data and is sent to described main frame from described USB device, specifically comprises the following steps:
(5.1) the USB interface control module described in by described reading request of data stored in OUTFIFO;
(5.2) data in described OUTFIFO are sent to described USB interface modular converter by the PCIe interface unit described in;
(5.3) the USB interface modular converter described in sends the request to USB device;
(5.4) corresponding data are saved in INFIFO by described USB interface modular converter, PCIe interface unit by the USB device described in
(5.5) data in INFIFO are sent to described main frame by the USB interface control module described in;
(5.6) main frame described in is preserved and is shown this data.
Further, USB described read control module deletes this data operation request, and sends the information of data operation request successful operation to described main frame, specifically comprises the following steps:
(6.1) this data operation request is deleted by the USB interface control module described in, and described main frame sends the information of data operation request successful operation;
(6.2) related data in host memory removed by the main frame described in.
Further, further comprising the steps of before described step (1):
(0) USB read control module described in carries out initialization to described system.
Further, described step (0) specifically comprises the following steps:
(0.1) USB read control module described in reads initialize routine and loads from described SPI memory module;
(0.2) parameter of USB read control module to described USB interface modular converter described in is configured.
Have employed the read-only control system based on USB3.0 agreement in this invention and method, make USB3.0 interface can carry out the read-only reading of access device under the pattern keeping USB3.0 high-speed transfer, its structure is simple, easy to operate, has wide range of applications.
Accompanying drawing explanation
Fig. 1 is the structural representation of the read-only control system based on USB3.0 agreement of the present invention.
Embodiment
In order to more clearly describe technology contents of the present invention, conduct further description below in conjunction with specific embodiment.
Refer to shown in Fig. 1, the read-only control system of USB3.0 is primarily of USB read control module, USB interface modular converter and corresponding SPI storer composition, and SPI storer is used for save routine and relevant configuration information.。
USB read control module is connected to the USB3.0 interface of computing machine by USB3.0 interface, carry out the initialization of USB device, then receive, resolve the usb protocol data of main frame after USB device access.Write, deletion and formatted requests are filtered, corresponding usb protocol data is put in OUTFIFO buffer zone by read requests, realizes read-only controlling functions; USB interface modular converter is connected to by PCIe interface, the protocol data of OUTFIFO buffer zone is sent to USB device by USB interface modular converter, the return data of USB device is saved in INFIFO buffer zone, and then is sent to the USB3.0 interface of computing machine.
The read-only control method of USB3.0 agreement of the present invention comprises the following steps:
(1) initialization
After system electrification, USB read control module has been responsible for the initialization operation of module.Comprise from SPI storer loading procedure; The USB2.0 interface of detection computations machine (or main frame or host computer, the i.e. equipment that inserts of USB device), the connection status of USB3.0 interface; The parameter of USB interface modular converter is configured.
After initialization terminates, whether the state of USB read control module opening timing interrupt inquiry USB interface modular converter, have USB device to access to detect.
(2) USB device access
When USB device accesses, the correlation behavior of USB interface modular converter can change, and points out that this equipment is USB2.0, or the equipment of USB3.0.USB read control module, according to this feedback information, controls corresponding interface, generates the USB storage device of the corresponding interface on computers.
(3) read operation
Read through model filters write, delete command, carries out two-way converting to the data produced in read-only operation process.Treatment scheme is as follows:
(3.1) computing machine sends reading request of data by USB3.0 (or USB2.0) interface to only read through model;
(3.2) reading protocol data is put in OUTFIFO buffer zone by USB read control module;
(3.3) PCIe interface controls to send the data of OUTFIFO buffer zone to USB interface modular converter;
(3.4) USB interface modular converter by request forward to USB storage device;
(3.5) result data controls to be saved in INFIFO buffer zone by USB interface modular converter, PCIe interface by USB storage device;
(3.6) result data of INFIFO buffer zone is transmitted to computing machine by USB read control module;
(3.7) computing machine is preserved and is shown result data.
(4) deletion action (write, formatted class are seemingly)
When carrying out deletion action to USB device on computers, although show deleted on computers, a kind of false deletion, in USB storage, data still exist, and just the data in calculator memory are deleted.Again, after plugging USB flash disk, can see that data still exist.
Treatment scheme is as follows:
(4.1) computing machine sends deletion request of data by USB3.0 (or USB2.0) interface to only read through model;
(4.2) USB read control module detects it is delete agreement, returns immediately to computing machine transmit operation successful protocol, in fact not retransmission protocol data;
(4.3) agreement that computing machine receives successful operation returns, the related content in dump internal memory.Data now in USB storage still exist.
Have employed the read-only control system based on USB3.0 agreement in this invention and method, make USB3.0 interface can carry out the read-only reading of access device under the pattern keeping USB3.0 high-speed transfer, its structure is simple, easy to operate, has wide range of applications.
In this description, the present invention is described with reference to its specific embodiment.But, still can make various amendment and conversion obviously and not deviate from the spirit and scope of the present invention.Therefore, instructions and accompanying drawing are regarded in an illustrative, rather than a restrictive.

Claims (10)

1. based on a read-only control system for USB3.0 agreement, it is characterized in that, described system comprises:
USB read control module, in order to be connected reading the data in USB device according to the request of data of main frame and delete other operation requests of this USB device of main frame with main frame;
USB interface modular converter, in order to obtain the interface protocol of described USB device, and is sent to a described USB read control module;
SPI memory module, in order to the program of saved system and the configuration information of system.
2. the read-only control system based on USB3.0 agreement according to claim 1, it is characterized in that, USB described read control module comprises, USB interface control module, PCIe interface unit, OUTFIFO, INFIFO, USB2.0 interface, USB3.0 interface.
3. realize the read-only control method based on USB3.0 agreement based on the system described in claim 1 or 2, it is characterized in that, described method comprises the following steps:
(1) the USB interface modular converter described in judges whether the access that there is USB device;
(2) if there is the access of USB device, then USB described read control module generates the USB storage device of the corresponding interface on main frame, then continues step (4);
(3) access of if there is no USB device, then continue step (1);
(4) whether the data operation request that the main frame described in USB read control module described in judges sends to described USB device is read request of data;
(5) if the data operation request that described main frame sends to described USB device is reading request of data, then USB described read control module reads corresponding data and is sent to described main frame from described USB device;
(6) if described main frame is not reading request of data to the data operation request that described USB device sends, USB then described read control module deletes this data operation request, and sends the information of data operation request successful operation to described main frame.
4. the read-only control method based on USB3.0 agreement according to claim 3, is characterized in that, described USB interface modular converter judges whether the access that there is USB device, specifically comprises the following steps:
(1.1) USB read control module opening timing described in is interrupted, with the state of the USB interface modular converter described in timing inquiry;
(1.2) USB interface modular converter judges whether the access that there is USB device;
(1.3) if there is the access of USB device, then described USB interface modular converter changes the state of self, and returns the result of the access that there is USB device;
(1.4) access of if there is no USB device, then return the result of the access that there is not USB device.
5. the read-only control method based on USB3.0 agreement according to claim 3, is characterized in that, USB described read control module comprises USB interface control module, USB2.0 interface and USB3.0 interface; USB described read control module generates the USB storage device of the corresponding interface on main frame, specifically comprises the following steps:
(2.1) the USB interface modular converter described in judges whether the USB device accessed is USB3.0 equipment;
(2.2) if the USB device of access is USB3.0 equipment, described USB interface control module is connected with main frame by described USB3.0 interface, and on main frame, generate the USB storage device of USB3.0 interface;
(2.3) if the USB device of access is not USB3.0 equipment, described USB interface control module is connected with main frame by described USB2.0 interface, and on main frame, generate the USB storage device of USB2.0 interface.
6. the read-only control method based on USB3.0 agreement according to claim 3, is characterized in that, USB described read control module comprises USB interface control module, USB2.0 interface, USB3.0 interface, OUTFIFO, INFIFO and PCIe interface unit; Whether the data operation request that the main frame described in USB described read control module judges sends to described USB device is read request of data, specifically comprises the following steps:
(4.1) main frame described in sends data operation request to described USB read control module;
(4.2) whether the data operation request described in the USB interface control module described in judges is read request of data.
7. the read-only control method based on USB3.0 agreement according to claim 6, is characterized in that, USB described read control module reads corresponding data and be sent to described main frame from described USB device, specifically comprises the following steps:
(5.1) the USB interface control module described in by described reading request of data stored in OUTFIFO;
(5.2) data in described OUTFIFO are sent to described USB interface modular converter by the PCIe interface unit described in;
(5.3) the USB interface modular converter described in sends the request to USB device;
(5.4) corresponding data are saved in INFIFO by described USB interface modular converter, PCIe interface unit by the USB device described in
(5.5) data in INFIFO are sent to described main frame by the USB interface control module described in;
(5.6) main frame described in is preserved and is shown this data.
8. the read-only control method based on USB3.0 agreement according to claim 6, it is characterized in that, USB described read control module deletes this data operation request, and sends the information of data operation request successful operation to described main frame, specifically comprises the following steps:
(6.1) this data operation request is deleted by the USB interface control module described in, and described main frame sends the information of data operation request successful operation;
(6.2) related data in host memory removed by the main frame described in.
9. the read-only control method based on USB3.0 agreement according to claim 3, is characterized in that, further comprising the steps of before described step (1):
(0) USB read control module described in carries out initialization to described system.
10. the read-only control method based on USB3.0 agreement according to claim 9, is characterized in that, described step (0) specifically comprises the following steps:
(0.1) USB read control module described in reads initialize routine and loads from described SPI memory module;
(0.2) parameter of USB read control module to described USB interface modular converter described in is configured.
CN201510662312.3A 2015-10-14 2015-10-14 USB 3.0 protocol based read-only control system and method Pending CN105302763A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510662312.3A CN105302763A (en) 2015-10-14 2015-10-14 USB 3.0 protocol based read-only control system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510662312.3A CN105302763A (en) 2015-10-14 2015-10-14 USB 3.0 protocol based read-only control system and method

Publications (1)

Publication Number Publication Date
CN105302763A true CN105302763A (en) 2016-02-03

Family

ID=55200046

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510662312.3A Pending CN105302763A (en) 2015-10-14 2015-10-14 USB 3.0 protocol based read-only control system and method

Country Status (1)

Country Link
CN (1) CN105302763A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105893295A (en) * 2016-04-22 2016-08-24 福州瑞芯微电子股份有限公司 Multiplexing system based on USB 3.0 port
CN107391424A (en) * 2017-08-07 2017-11-24 厦门市美亚柏科信息股份有限公司 A kind of read-only card reader and its implementation
CN107526977A (en) * 2017-07-31 2017-12-29 深圳市辰星瑞腾科技有限公司 A kind of USB data transmission method
CN107844718A (en) * 2017-07-31 2018-03-27 深圳市辰星瑞腾科技有限公司 A kind of computer internal USB transmits safety governor
CN108664441A (en) * 2018-07-13 2018-10-16 重庆爱思网安信息技术有限公司 The read-only control systems of USB and method
CN110175485A (en) * 2019-05-28 2019-08-27 江苏永瀚特种合金技术有限公司 A kind of unidirectionally read-only card reader, unidirectional card-reading system and read-only method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101968723A (en) * 2010-10-27 2011-02-09 四川和芯微电子股份有限公司 Storage control system and method
US20110055407A1 (en) * 2009-09-01 2011-03-03 Apple Inc. Device-dependent selection between modes for asymmetric serial protocols
CN103413101A (en) * 2013-08-30 2013-11-27 梁效宁 System and method for preventing electronic data from being tampered

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110055407A1 (en) * 2009-09-01 2011-03-03 Apple Inc. Device-dependent selection between modes for asymmetric serial protocols
CN101968723A (en) * 2010-10-27 2011-02-09 四川和芯微电子股份有限公司 Storage control system and method
CN103413101A (en) * 2013-08-30 2013-11-27 梁效宁 System and method for preventing electronic data from being tampered

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105893295A (en) * 2016-04-22 2016-08-24 福州瑞芯微电子股份有限公司 Multiplexing system based on USB 3.0 port
CN105893295B (en) * 2016-04-22 2019-07-09 福州瑞芯微电子股份有限公司 One kind being based on USB3.0 multiplexed port system
CN107526977A (en) * 2017-07-31 2017-12-29 深圳市辰星瑞腾科技有限公司 A kind of USB data transmission method
CN107844718A (en) * 2017-07-31 2018-03-27 深圳市辰星瑞腾科技有限公司 A kind of computer internal USB transmits safety governor
CN107391424A (en) * 2017-08-07 2017-11-24 厦门市美亚柏科信息股份有限公司 A kind of read-only card reader and its implementation
CN108664441A (en) * 2018-07-13 2018-10-16 重庆爱思网安信息技术有限公司 The read-only control systems of USB and method
CN108664441B (en) * 2018-07-13 2020-03-31 重庆爱思网安信息技术有限公司 USB read-only control system and method
CN110175485A (en) * 2019-05-28 2019-08-27 江苏永瀚特种合金技术有限公司 A kind of unidirectionally read-only card reader, unidirectional card-reading system and read-only method

Similar Documents

Publication Publication Date Title
CN105302763A (en) USB 3.0 protocol based read-only control system and method
US7356637B2 (en) Virtual IDE storage device with PCI express interface
EP2612252B1 (en) Virtual usb compound device enumeration
US7606964B2 (en) Virtual USB flash memory storage device with PCI express interface, controller and method thereof
US8745304B2 (en) USB to SD bridge
WO2017084565A1 (en) Storage data access method, related controller, device, host, and system
US20220206780A1 (en) Online upgrading method and system for multi-core embedded system
CN109324991B (en) Hot plug device, method, medium and system of PCIE (peripheral component interface express) equipment
US9164804B2 (en) Virtual memory module
US20140047159A1 (en) Enterprise server with flash storage modules
US10496608B2 (en) Synchronizing changes in a file system which are initiated by a storage device and a host device
US20100095044A1 (en) Motherboard system, storage device for booting up thereof and connector
KR102595233B1 (en) Data processing system and operating method thereof
US11645011B2 (en) Storage controller, computational storage device, and operational method of computational storage device
US20220100425A1 (en) Storage device, operating method of storage device, and operating method of computing device including storage device
CN108268414A (en) SD card driver and its control method based on SPI mode
TWI416418B (en) Controllers, apparatuses, and methods for transferring data
US8527667B2 (en) Apparatuses and methods for transferring data
US20220147254A1 (en) Ufs device, method of operating the ufs device, and system including the ufs device
US20090083021A1 (en) Emulation of ahci-based solid state drive using nand interface
US20230229357A1 (en) Storage controller, computational storage device, and operational method of computational storage device
CN108733479B (en) Method for unloading solid state hard disk card and device using same
KR20070070680A (en) Device and system for debugging device using control bus
US7418545B2 (en) Integrated circuit capable of persistent reservations
CN111338998B (en) FLASH access processing method and device based on AMP system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160203