CN113535624A - USB forced formatting drive-free socket and control method thereof - Google Patents
USB forced formatting drive-free socket and control method thereof Download PDFInfo
- Publication number
- CN113535624A CN113535624A CN202110787230.7A CN202110787230A CN113535624A CN 113535624 A CN113535624 A CN 113535624A CN 202110787230 A CN202110787230 A CN 202110787230A CN 113535624 A CN113535624 A CN 113535624A
- Authority
- CN
- China
- Prior art keywords
- usb
- formatting
- drive
- microcontroller
- free
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 9
- 238000004891 communication Methods 0.000 claims abstract description 9
- 230000005540 biological transmission Effects 0.000 claims abstract description 7
- 230000015654 memory Effects 0.000 claims abstract description 3
- 238000012546 transfer Methods 0.000 claims description 2
- 230000003993 interaction Effects 0.000 abstract description 2
- 230000001360 synchronised effect Effects 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 102100021935 C-C motif chemokine 26 Human genes 0.000 description 1
- 101000897493 Homo sapiens C-C motif chemokine 26 Proteins 0.000 description 1
- 241000700605 Viruses Species 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4063—Device-to-bus coupling
- G06F13/4068—Electrical coupling
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/70—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
- G06F21/82—Protecting input, output or interconnection devices
- G06F21/85—Protecting input, output or interconnection devices interconnection devices, e.g. bus-connected or in-line devices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/0042—Universal serial bus [USB]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- Information Transfer Systems (AREA)
Abstract
The invention provides a USB mandatory formatted drive-free socket and a control method thereof. The socket has a volumetric profile as small as 40mm by 27mm by 14.5 mm; a drive-free USB plug-and-play connection mode; the control chip comprises a USB formatting program which can format USB3.0 and USB2.0 interface flash memories; the control chip comprises a USB HUB program; the red and green indicating lamp indicates the running state. The microcontroller is a 32-bit general enhanced RISC-V series MCU, is provided with a high-speed USB communication interface, is provided with a DMA with 128-bit data width, supports a USB3.0 master/slave mode, and supports control, batch, interruption, real-time or synchronous transmission. The invention firstly formats the FLASH storage device accessed by the USB3.0/2.0 protocol, and then the storage device carries out data interaction with the public platform. Therefore, potential safety hazards are eliminated, and the safety of the public data platform is ensured. The invention is realized based on a single chip microcomputer, has simple structure and reasonable logic and has outstanding technical advantages.
Description
Technical Field
The invention relates to the technical field of information security, in particular to a USB mandatory formatted drive-free socket and a control method thereof.
Background
The laboratory uses a public data platform (a computer, a server and the like) to perform data transmission with an external storage device (FLASH, a mechanical hard disk and the like) through a USB3.0/2.0 protocol. And the external storage device may carry viruses, and the public platform can be attacked, so that the system security of the public platform is always difficult.
Disclosure of Invention
The invention aims to provide a USB mandatory formatting drive-free socket and a control method thereof aiming at the technical defects of the prior art so as to solve the technical problem that the conventional USB socket is lack of safety guarantee.
In order to achieve the technical purpose, the invention adopts the following technical scheme:
USB mandatory formatting drive-free sockets, as small as 40mm 27mm 14.5mm volume profile; a drive-free USB plug-and-play connection mode; the control chip comprises a USB formatting program which can format USB3.0 and USB2.0 interface flash memories; the control chip comprises a USB HUB program; the red and green indicating lamp indicates the running state.
Preferably, the microcontroller is a 32-bit general enhanced RISC-V series MCU, is provided with a high-speed USB communication interface, is provided with a DMA with 128-bit data width, supports a USB3.0 master/slave mode, and supports control, batch, interrupt, real-time or synchronous transmission.
Preferably, the microcontroller controls an external indicator light, and a GPIO port of the microcontroller is connected to the indicator light
A control method of a USB mandatory formatting drive-free socket comprises the following steps:
1) the microcontroller circularly scans whether the USB female head is connected with the FLASH equipment or not, and before the FLASH equipment is not detected, the data transmission between the USB male head and the public data platform is always in a disconnected state;
2) when the USB female head is scanned to be accessed into FLASH equipment, a formatting program is started, and a GPIO port of the microcontroller outputs green light to flicker;
3) after formatting is finished, starting the USB HUB, connecting the FLASH device with a public data platform through the HUB, using a USB3.0 or USB2.0 communication protocol, and simultaneously outputting a green light to be bright through a GPIO port on the microcontroller;
4) if the formatting fails for 3 times, the microcontroller does not start the USB HUB, communicates with the public platform through the USB2.0 protocol, sends the key code error, and outputs a red light to be on.
The invention provides a USB mandatory formatted drive-free socket and a control method thereof. According to the technical scheme, firstly, FLASH storage equipment accessed through a USB3.0/2.0 protocol is formatted, and then the storage equipment carries out data interaction with a public platform. Therefore, potential safety hazards are eliminated, and the safety of the public data platform is ensured. The invention is realized based on a single chip microcomputer, has simple structure and reasonable logic and has outstanding technical advantages.
Drawings
Fig. 1 is a connection relationship diagram of the present invention in use.
Fig. 2 is a configuration diagram of the present invention.
Fig. 3 is a control logic diagram of the present invention.
FIG. 4 is a pictorial representation of the present invention.
Detailed Description
Hereinafter, specific embodiments of the present invention will be described in detail. Well-known structures or functions may not be described in detail in the following embodiments in order to avoid unnecessarily obscuring the details. Approximating language, as used herein in the following examples, may be applied to identify quantitative representations that could permissibly vary in number without resulting in a change in the basic function. Unless defined otherwise, technical and scientific terms used in the following examples have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
The USB mandatory formatting drive-free socket and the control method thereof are as follows:
the technical scheme mainly comprises three parts:
the USB socket device is connected with a public data platform through a USB male connector and uses a USB3.0/2.0 communication protocol. The USB female head is connected with the FLASH storage equipment, and the USB3.0/2.0 protocol is used for communication. As shown in fig. 1.
1. Hardware design
USB socket devices use an MCU microcontroller, RISC-V3A core, supporting the IMAC subset of RISC-V instructions. DMA with 128-bit data width is adopted on the chip to support the high bandwidth requirement of a plurality of high-speed peripherals, and high-speed transmission of large data volume is realized.
And the USB3.0Host/Device mode and the OTG function are supported. Support control, bulk, interrupt, real time/isochronous transfer. The host supports USB3.0HUB. The internal circuit connections of the USB socket device are shown in fig. 2.
2. Software design
The USB interface equipment uses the USB3.0, USB2.0, USB HUB and file system module of the MCU. The specific software flow is as follows:
1) the singlechip scans the USB female head circularly to judge whether the FLASH equipment is accessed. Before no FLASH equipment is detected, the data transmission between the USB male head and the public data platform is always in a disconnected state.
2) When the FLASH device is scanned and accessed, a formatting program is started. The GPIO port of the singlechip outputs green light flicker to indicate formatting.
3) And after the formatting is finished, starting the USB HUB, connecting the FLASH device with a public data platform through the HUB, and using a USB3.0 communication protocol (the protocol is downward compatible with a USB2.0 protocol). Meanwhile, a GPIO port on the single chip microcomputer outputs a green light to be on, and the formatting is finished.
4) If the formatting fails for 3 times, the single chip microcomputer does not start the USB HUB, communicates with the public platform through a USB2.0 protocol, and sends a key code error. Meanwhile, the singlechip outputs a red light to be on, which indicates that formatting fails. The control logic is shown in fig. 3.
3. Structural appearance
The USB socket device uses a male mold USB communication device shell, the length is 40mm, the width is 27mm, and the height is 14.5 mm. The material used was ABS, the appearance of which is shown in FIG. 4.
The embodiments of the present invention have been described in detail, but the description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention. Any modification, equivalent replacement, and improvement made within the scope of the application of the present invention should be included in the protection scope of the present invention.
Claims (4)
- A USB positive-format drive-free jack, characterized by a volume profile as small as 40mm by 27mm by 14.5 mm; a drive-free USB plug-and-play connection mode; the control chip comprises a USB formatting program which can format USB3.0 and USB2.0 interface flash memories; the control chip comprises a USB HUB program; the red and green indicating lamp indicates the running state.
- 2. The USB forced formatting drive-free socket according to claim 1, wherein the microcontroller is a 32-bit general-purpose enhanced RISC-V series MCU, equipped with a high speed USB communication interface, equipped with a 128-bit data wide DMA, supporting USB3.0 master/slave mode, supporting control, bulk, interrupt, real-time or isochronous transfer.
- 3. The USB mandatory formatting drive-free jack of claim 2, wherein the microcontroller controls an external indicator light, the GPIO port of the microcontroller being connected to the indicator light.
- 4. A control method of a USB mandatory formatting drive-free socket is characterized by comprising the following steps:1) the microcontroller circularly scans whether the USB female head is connected with the FLASH equipment or not, and before the FLASH equipment is not detected, the data transmission between the USB male head and the public data platform is always in a disconnected state;2) when the USB female head is scanned to be accessed into FLASH equipment, a formatting program is started, and a GPIO port of the microcontroller outputs green light to flicker;3) after formatting is finished, starting the USB HUB, connecting the FLASH device with a public data platform through the HUB, using a USB3.0 or USB2.0 communication protocol, and simultaneously outputting a green light to be bright through a GPIO port on the microcontroller;4) if the formatting fails for 3 times, the microcontroller does not start the USB HUB, communicates with the public platform through the USB2.0 protocol, sends the key code error, and outputs a red light to be on.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110787230.7A CN113535624A (en) | 2021-07-12 | 2021-07-12 | USB forced formatting drive-free socket and control method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110787230.7A CN113535624A (en) | 2021-07-12 | 2021-07-12 | USB forced formatting drive-free socket and control method thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113535624A true CN113535624A (en) | 2021-10-22 |
Family
ID=78098732
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110787230.7A Pending CN113535624A (en) | 2021-07-12 | 2021-07-12 | USB forced formatting drive-free socket and control method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113535624A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1491982A1 (en) * | 2003-04-30 | 2004-12-29 | Hagiwara Sys-Com Co. Ltd. | USB storage device and control device |
JP2007094767A (en) * | 2005-09-29 | 2007-04-12 | Fujitsu Ltd | Memory controller and memory control method |
US20160328579A1 (en) * | 2015-05-04 | 2016-11-10 | Unisys Corporation | Usb dock system and method for securely connecting a usb device to a computing network |
CN106407793A (en) * | 2016-11-16 | 2017-02-15 | 北京众谊越泰科技有限公司 | Security access monitoring method of USB equipment |
CN107423641A (en) * | 2017-09-19 | 2017-12-01 | 中国南方电网有限责任公司超高压输电公司南宁监控中心 | A kind of anti-virus method and anti-virus device for mobile memory medium |
CN109240951A (en) * | 2017-06-30 | 2019-01-18 | 波音公司 | The system and method for the onboard networks additional storage node of safety are provided |
CN211698950U (en) * | 2020-03-17 | 2020-10-16 | 东莞市厚街医院 | Anti-virus card reader |
-
2021
- 2021-07-12 CN CN202110787230.7A patent/CN113535624A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1491982A1 (en) * | 2003-04-30 | 2004-12-29 | Hagiwara Sys-Com Co. Ltd. | USB storage device and control device |
JP2007094767A (en) * | 2005-09-29 | 2007-04-12 | Fujitsu Ltd | Memory controller and memory control method |
US20160328579A1 (en) * | 2015-05-04 | 2016-11-10 | Unisys Corporation | Usb dock system and method for securely connecting a usb device to a computing network |
CN106407793A (en) * | 2016-11-16 | 2017-02-15 | 北京众谊越泰科技有限公司 | Security access monitoring method of USB equipment |
CN109240951A (en) * | 2017-06-30 | 2019-01-18 | 波音公司 | The system and method for the onboard networks additional storage node of safety are provided |
CN107423641A (en) * | 2017-09-19 | 2017-12-01 | 中国南方电网有限责任公司超高压输电公司南宁监控中心 | A kind of anti-virus method and anti-virus device for mobile memory medium |
CN211698950U (en) * | 2020-03-17 | 2020-10-16 | 东莞市厚街医院 | Anti-virus card reader |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI393009B (en) | Data sharing and transfer systems and methods | |
KR101561516B1 (en) | Operating m-phy based communications over pci-based interfaces, and related cables, connectors, systems and methods | |
CN107943733A (en) | The interconnected method of parallel bus between a kind of veneer | |
CN202434203U (en) | Flash disk with OTG (on-the-go) function | |
CN110232041A (en) | A kind of implementation method of the domestic server master board based on Shen prestige chip | |
CN214337931U (en) | Network data transmission system and switch with built-in network data transmission system | |
JP3418969B2 (en) | LPC / ISA bridge and bridge method | |
CN201383075Y (en) | PC104-plus controller based on PowerPC processor | |
CN113535624A (en) | USB forced formatting drive-free socket and control method thereof | |
WO2004097614A1 (en) | Communication method and apparatus | |
CN105653498A (en) | VPX computer processing board based on VITA series standard | |
CN102693203A (en) | Embedded USB (universal serial bus) host | |
CN204835056U (en) | USB transmission equipment | |
CN101163304B (en) | Method and system for processing files of peripheral equipment and a mobile terminal | |
CN104123257B (en) | Universal serial bus device, communication means and computer-readable recording medium | |
CN213581897U (en) | Novel display control calculation module | |
CN209728624U (en) | A kind of domestic server master board based on 1621 chip of Shen prestige | |
CN114385531A (en) | VPX single-board computer based on Loongson processor | |
CN210924562U (en) | Backboard communication device | |
CN207251191U (en) | A kind of mobile terminal protects structure | |
CN103514125B (en) | Main control electronic device and main control end operational approach | |
CN203896466U (en) | Smart television with scalable inner core | |
US20150095540A1 (en) | External device and a transmission system and the method of the heterogeneous device | |
CN205750414U (en) | A kind of high-sensitive USB interface and mainboard thereof | |
CN201869223U (en) | Machine to machine terminal, communication module and data sending device |
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 |