CN107066901A - A kind of disposable mobile memory and its storage and the method for reading data - Google Patents
A kind of disposable mobile memory and its storage and the method for reading data Download PDFInfo
- Publication number
- CN107066901A CN107066901A CN201710260959.2A CN201710260959A CN107066901A CN 107066901 A CN107066901 A CN 107066901A CN 201710260959 A CN201710260959 A CN 201710260959A CN 107066901 A CN107066901 A CN 107066901A
- Authority
- CN
- China
- Prior art keywords
- data
- write
- data processing
- processing unit
- interface
- 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
Classifications
-
- 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/78—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2221/00—Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/21—Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F2221/2143—Clearing memory, e.g. to prevent the data from being stolen
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
- Read Only Memory (AREA)
- Storage Device Security (AREA)
Abstract
本发明公开了一种一次性移动存储器,包括顺次连接的接口单元、数据处理单元及存储单元,其中,接口单元,用于接收需要存储和读取的数据及其指令并传送至数据处理单元;数据处理单元,用于从接口单元接收数据和指令并根据指令要求将接收的数据写入存储单元,用于从接口单元获取数据指令并根据指令要求对存储单元进行读取,以及用于将从存储单元读取的数据发送至接口单元;存储单元,采用一次性存储器,用于存储数据处理单元写入的数据。本发明还公开了上述移动存储器存储和读取数据的方法。本发明用于数据的一次性存储,在长期保存和使用过程中均能保证存储的数据不易丢失、任意修改和删除。
The invention discloses a one-time mobile memory, which includes an interface unit, a data processing unit and a storage unit connected in sequence, wherein the interface unit is used to receive data and instructions to be stored and read and transmit them to the data processing unit ; The data processing unit is used to receive data and instructions from the interface unit and write the received data into the storage unit according to the instruction requirements, to obtain data instructions from the interface unit and to read the storage unit according to the instruction requirements, and to write the received data to the storage unit according to the instruction requirements. The data read from the storage unit is sent to the interface unit; the storage unit adopts a one-time memory for storing the data written by the data processing unit. The invention also discloses the method for storing and reading data in the mobile memory. The invention is used for one-time storage of data, and can ensure that the stored data is not easy to be lost, modified and deleted arbitrarily during long-term storage and use.
Description
技术领域technical field
本发明涉及数据存储技术,具体是用于数据处理系统的一种一次性移动存储器及其存储和读取数据的方法。The invention relates to data storage technology, in particular to a disposable mobile memory used in a data processing system and a method for storing and reading data.
背景技术Background technique
在信息飞速传递的今天,数据的存储益发引起人们的关注。现有的存储设备主要包括移动存储设备及与系统配套的内、外置存储设备,其中,常用的移动存储设备如移动硬盘、U盘、各种存储卡等;常用的外置存储设备如磁(硬)盘、固态硬盘、磁带、光盘、USB存储器、存储卡(SD卡、MMC卡、记忆棒、CF卡等)等。Today, with the rapid transmission of information, data storage has attracted more and more attention. Existing storage devices mainly include mobile storage devices and internal and external storage devices matching the system. Among them, commonly used mobile storage devices such as mobile hard (hard) disk, solid state disk, tape, CD, USB memory, memory card (SD card, MMC card, memory stick, CF card, etc.), etc.
移动存储设备是为了方便数据的携带、搬移和传输而应运而生的,其具有方便与数据处理系统连接和断开、在没有外部供电的情况下存储的数据不丢失、便于携带等优点。现有用于数据处理系统的移动存储设备主要包括可反复写入移动存储介质和不可反复写入移动存储介质两类,其中,可反复写入移动存储介质如磁介质、FLASH等,不可反复写入移动存储介质如光盘等。磁介质、FLASH等可反复写入移动存储介质在突然掉电、跌落和反复擦写等情况下,极其有可能造成数据丢失和损坏,而光盘等不可反复写入移动存储介质在保存和使用过程中,表面易被磨损和变形,最终导致无法读取和写入数据。如何设计出在长期保存和使用过程中均不易丢失数据的不可反复写入移动存储介质,这成为目前人们普遍关注的问题,然而,现有没有相应的设备,也未见相关的报道。Mobile storage devices have emerged for the convenience of data portability, movement and transmission. They have the advantages of easy connection and disconnection with the data processing system, no loss of stored data without external power supply, and easy portability. The existing mobile storage devices used in data processing systems mainly include rewritable removable storage media and non-rewritable removable storage media. Among them, rewritable removable storage media such as magnetic media, FLASH, etc. Removable storage media such as CDs, etc. Magnetic media, FLASH and other rewritable removable storage media are extremely likely to cause data loss and damage in the event of sudden power failure, drop, and repeated erasure, while CDs and other non-rewritable removable storage media are In the process, the surface is easily worn and deformed, which eventually makes it impossible to read and write data. How to design a non-rewritable removable storage medium that is not easy to lose data during long-term storage and use has become a problem that people generally pay attention to. However, there is no corresponding equipment and no related reports.
发明内容Contents of the invention
本发明的目的在于克服现有技术的不足,提供了用于数据处理系统的一种一次性移动存储器,其应用时数据一经写入,即可在长期保存和使用过程中均能保证存储其内的数据不会丢失和损坏,也不能任意修改和删除。本发明还公开了上述移动存储器存储和读取数据的方法。The purpose of the present invention is to overcome the deficiencies of the prior art and provide a disposable mobile memory used in a data processing system. Once the data is written in its application, it can be guaranteed to be stored in it during long-term preservation and use. The data will not be lost or damaged, nor can it be modified or deleted arbitrarily. The invention also discloses the method for storing and reading data in the mobile memory.
本发明解决上述问题主要通过以下技术方案实现:一种一次性移动存储器,包括顺次连接的接口单元、数据处理单元及存储单元,其中,The present invention solves the above problems mainly through the following technical solutions: a disposable mobile memory, including an interface unit, a data processing unit and a storage unit connected in sequence, wherein,
接口单元,用于接收需要存储和读取的数据及其指令并传送至数据处理单元;The interface unit is used to receive data and instructions that need to be stored and read and transmit them to the data processing unit;
数据处理单元,用于从接口单元接收数据和指令并根据指令要求将接收的数据写入存储单元,用于从接口单元获取数据指令并根据指令要求对存储单元进行读取,以及用于将从存储单元读取的数据发送至接口单元;The data processing unit is used to receive data and instructions from the interface unit and write the received data into the storage unit according to the instruction requirements, to obtain data instructions from the interface unit and to read the storage unit according to the instruction requirements, and to write the data from the interface unit to the storage unit according to the instruction requirements. The data read by the storage unit is sent to the interface unit;
存储单元,采用一次性存储器,用于存储数据处理单元写入的数据。本发明的一次性存储单元为一次性写入芯片,一次性存储单元中每一个存储位置只能写入一次,不可进行反复写入,写入后数据内容不能再被改变。但是,在未写入数据的位置可以继续写入。本发明的移动存储器为一次性存储,使用场景为移动存储。The storage unit is a one-time memory for storing data written by the data processing unit. The one-time storage unit of the present invention is a write-once chip, and each storage location in the one-time storage unit can only be written once, and repeated writing is not allowed, and the data content cannot be changed after writing. However, writing can continue at locations where no data has been written. The mobile storage of the present invention is one-time storage, and the usage scenario is mobile storage.
进一步的,所述接口单元由总线插座及与总线插座连接的总线控制器组成,所述总线控制器用于将经接口单元传输的数据按总线协议处理并进行传输。Further, the interface unit is composed of a bus socket and a bus controller connected to the bus socket, and the bus controller is used to process and transmit the data transmitted through the interface unit according to the bus protocol.
进一步的,所述总线插座上设有USB接口、LAN接口、IEEE1394接口、Thunderbolt接口、SD接口、CF接口、MMC接口、eSATA接口、Lightning总线接口中的任意一种或多种接口。本发明应用时建立基于USB、LAN、IEEE1394、Thunderbolt、SD、CF、MMC、eSATA、Lightning总线的信息交换通道,传输的数据按照USB接口、LAN接口、IEEE1394接口、Thunderbolt接口、SD接口、CF接口、MMC接口、eSATA接口、Lightning总线标准规定的格式打包,本发明可由USB、LAN、IEEE1394、Thunderbolt、SD、CF、MMC、eSATA、Lightning等接口或外接独立电源为本发明供电。本发明所述的移动存储器用于数据处理系统时,采用USB接口、LAN接口、IEEE1394接口、Thunderbolt接口、SD接口、CF接口、MMC接口、eSATA接口、Lightning总线接口插接,这些总线接口是数据处理系统外设接口普遍的接口,有相应的国际标准,其目的是为所有的电脑外设提供统一的接口,提高传输速度,多样化的接口方式,增加可连接的设备种类和数量,以方便用户。本实施例与数据处理系统的信息交换通道是USB接口、LAN接口、IEEE1394接口、Thunderbolt接口、SD接口、CF接口、MMC接口、eSATA接口、Lightning总线,移动存储器与数据处理系统主机之间,可随时插拔,即插即用,无须关机,而且没有庞大的驱动器,没有机械转动部分,重量轻,启动快。Further, the bus socket is provided with any one or more of USB interface, LAN interface, IEEE1394 interface, Thunderbolt interface, SD interface, CF interface, MMC interface, eSATA interface, and Lightning bus interface. When the present invention is applied, an information exchange channel based on USB, LAN, IEEE1394, Thunderbolt, SD, CF, MMC, eSATA, Lightning bus is established, and the data transmitted is according to USB interface, LAN interface, IEEE1394 interface, Thunderbolt interface, SD interface, CF interface , MMC interface, eSATA interface, Lightning bus standard regulated format packaging, the present invention can be powered by USB, LAN, IEEE1394, Thunderbolt, SD, CF, MMC, eSATA, Lightning and other interfaces or an external independent power supply for the present invention. When the mobile memory of the present invention is used in a data processing system, USB interfaces, LAN interfaces, IEEE1394 interfaces, Thunderbolt interfaces, SD interfaces, CF interfaces, MMC interfaces, eSATA interfaces, and Lightning bus interfaces are used to plug in, and these bus interfaces are data There are corresponding international standards for the common interface of the processing system peripheral interface. user. The information exchange channel between the present embodiment and the data processing system is a USB interface, a LAN interface, an IEEE1394 interface, a Thunderbolt interface, an SD interface, a CF interface, an MMC interface, an eSATA interface, and a Lightning bus. Plug and play at any time, no need to shut down, and there is no huge drive, no mechanical rotating parts, light weight, and fast startup.
进一步的,所述数据处理单元连接有用于指示工作状态的指示单元。Further, the data processing unit is connected with an indicating unit for indicating the working state.
进一步的,一种一次性移动存储器,还包括写保护模块,所述写保护模块与数据处理单元和/或存储单元连接,用于控制对一次性存储器的数据写入。Further, a one-time mobile memory further includes a write protection module, which is connected to the data processing unit and/or the storage unit, and is used for controlling data writing to the one-time memory.
进一步的,一种一次性移动存储器,还包括电源,所述电源为移动存储器进行供电。Further, a disposable mobile memory further includes a power supply, and the power supply supplies power to the mobile memory.
基于上述一种一次性移动存储器存储和读取数据的方法,包括存储数据步骤和读取数据步骤,其中,The method for storing and reading data based on the above-mentioned one-time mobile memory includes a step of storing data and a step of reading data, wherein,
所述存储数据步骤包括以下步骤:The step of storing data includes the following steps:
S1.1、将移动存储器的接口单元与数据处理系统的主机连接,完成移动存储器初始化;S1.1. Connect the interface unit of the mobile storage to the host computer of the data processing system to complete the initialization of the mobile storage;
S1.2、待数据处理系统接收到用户发送的写指令和写入数据后,将写指令转换成数据处理单元理解并执行的写操作指令,并将写操作指令和写入数据传送给接口单元,接口单元再将写操作指令和写入数据传送给数据处理单元;S1.2. After the data processing system receives the write instruction and write data sent by the user, it converts the write instruction into a write operation instruction understood and executed by the data processing unit, and transmits the write operation instruction and write data to the interface unit , the interface unit then transmits the write operation instruction and the write data to the data processing unit;
S1.3、数据处理单元按照接收到的写操作指令,待数据处理系统需要写入的所有数据完成后,将写入结果由接口单元传送给数据处理系统;S1.3. The data processing unit transmits the writing result from the interface unit to the data processing system after all the data to be written by the data processing system is completed according to the received write operation instruction;
所述读取数据步骤包括以下步骤:The step of reading data includes the following steps:
S2.1、将移动存储器的接口单元与数据处理系统的主机连接,完成移动存储器初始化;S2.1. Connect the interface unit of the mobile storage to the host computer of the data processing system to complete the initialization of the mobile storage;
S2.2、待数据处理系统接收到用户发送的读指令后,将读指令转换成数据处理单元理解并执行的读操作指令并传送给接口单元,接口单元再将读操作指令传送给数据处理单元;S2.2. After the data processing system receives the read instruction sent by the user, it converts the read instruction into a read operation instruction understood and executed by the data processing unit and sends it to the interface unit, and the interface unit then transmits the read operation instruction to the data processing unit ;
S2.3、数据处理单元根据读操作指令对存储单元进行读取,读取的数据经接口单元输出至数据处理系统中。S2.3. The data processing unit reads the storage unit according to the read operation instruction, and the read data is output to the data processing system through the interface unit.
进一步的,所述存储数据步骤写入的数据量大时采用分批次的方式写入,所述读取数据步骤读取的数据量大时采用分批次的方式读取。其中,本发明在写入的数据量小时,采用单次写入;在读取的数据量小时,采用单次读取。Further, when the amount of data written in the step of storing data is large, it is written in batches, and when the amount of data read in the step of reading data is large, it is read in batches. Wherein, the present invention adopts single writing when the amount of written data is small, and adopts single reading when the amount of read data is small.
进一步的,一种一次性移动存储器存储和读取数据的方法,还包括写保护步骤,所述写保护步骤包括两种方式,第一种方式的具体操作步骤为:Further, a method for storing and reading data in a one-time mobile memory also includes a write protection step. The write protection step includes two methods. The specific operation steps of the first method are:
数据处理系统向数据处理单元发送写保护指令,数据处理单元收到写保护指令后关断对存储单元的数据写入功能,和/或将存储单元写入允许功能关闭;The data processing system sends a write protection instruction to the data processing unit, and the data processing unit turns off the data writing function to the storage unit after receiving the write protection instruction, and/or disables the writing permission function of the storage unit;
第二种方式的具体操作步骤为:采用数据处理单元把写保护模块的状态通知给数据处理系统,由数据处理系统对其判断,从而决定是否进行存储数据步骤。如此,本发明应用时可以采用“硬”写保护方式,也可采用“软”写保护方式,还可二者结合使用。The specific operation steps of the second method are: the data processing unit is used to notify the data processing system of the state of the write protection module, and the data processing system judges it to decide whether to store the data. In this way, when the present invention is applied, a "hard" write protection method or a "soft" write protection method can be adopted, or both can be used in combination.
进一步的,一种一次性移动存储器存储和读取数据的方法,还包括销毁或擦除数据步骤,所述销毁或擦除步骤的具体操作步骤为:Further, a method for storing and reading data in a one-time mobile memory also includes the step of destroying or erasing data, and the specific operation steps of the destroying or erasing step are:
数据处理系统向数据处理单元发送销毁或擦除数据指令,数据处理单元收到销毁或擦除数据指令后将存储单元所有或存有数据部分的存储位置全部置为“1”或“0”,使得存储的数据无法被读出或恢复。The data processing system sends an instruction to destroy or erase data to the data processing unit. After receiving the instruction to destroy or erase data, the data processing unit sets all the storage locations of the storage unit or the part of the stored data to "1" or "0". The stored data cannot be read or recovered.
综上所述,本发明具有以下有益效果:(1)本发明的移动存储器整体结构简单,使用元器件少,便于实现,成本低,轻便、易携带、易使用,写入数据不会丢失和损坏,也不能任意修改和删除,能提升数据存储的可靠性,便于推广应用。In summary, the present invention has the following beneficial effects: (1) the mobile memory of the present invention has a simple overall structure, uses few components and parts, is convenient to realize, has low cost, is light, easy to carry, and is easy to use, and the written data will not be lost and damage, and cannot be modified or deleted arbitrarily, which can improve the reliability of data storage and facilitate popularization and application.
(2)本发明应用时便于与数据处理系统连接或断开连接,使得本发明应用时操作便捷。(2) The application of the present invention is convenient to connect or disconnect with the data processing system, making the operation of the present invention convenient.
(3)本发明借助采用USB接口、LAN接口、IEEE1394接口、Thunderbolt接口、SD接口、CF接口、MMC接口、eSATA接口、Lightning总线接口,实现活动外存,并可带电插拔,即插即用,无须关机,存取快,容量大,体积小,携带十分方便,不易损坏,数据可永久保存,同时最多可连接多个一次性外存储装置到电脑上。本发明适用于任何支持支持USB接口、LAN接口、IEEE1394接口、Thunderbolt接口、SD接口、CF接口、MMC接口、eSATA接口、Lightning总线的数据处理系统。(3) The present invention uses USB interface, LAN interface, IEEE1394 interface, Thunderbolt interface, SD interface, CF interface, MMC interface, eSATA interface, Lightning bus interface to realize active external storage, and can be charged and plugged, plug and play , no need to shut down, fast access, large capacity, small size, very convenient to carry, not easy to damage, data can be permanently stored, and at most can connect multiple disposable external storage devices to the computer. The present invention is applicable to any data processing system that supports USB interface, LAN interface, IEEE1394 interface, Thunderbolt interface, SD interface, CF interface, MMC interface, eSATA interface and Lightning bus.
附图说明Description of drawings
此处所说明的附图用来提供对本发明实施例的进一步理解,构成本申请的一部分,并不构成对本发明实施例的限定。在附图中:The drawings described here are used to provide a further understanding of the embodiments of the present invention, constitute a part of the application, and do not limit the embodiments of the present invention. In the attached picture:
图1为本发明一个具体实施例的结构示意图。Fig. 1 is a structural schematic diagram of a specific embodiment of the present invention.
具体实施方式detailed description
为使本发明的目的、技术方案和优点更加清楚明白,下面结合实施例和附图,对本发明作进一步的详细说明,本发明的示意性实施方式及其说明仅用于解释本发明,并不作为对本发明的限定。In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the examples and accompanying drawings. As a limitation of the present invention.
实施例:Example:
如图1所示,一种一次性移动存储器,包括接口单元、数据处理单元、指示单元、写保护模块、电源及存储单元,其中,接口单元、处理单元及存储单元顺次连接,该顺次连接的单元为逻辑关系,可以存在于一个或多个物理硬件中。本实施例的接口单元用于接收需要存储和读取的数据及其指令并传送至数据处理单元;数据处理单元用于从接口单元接收数据和指令并根据指令要求将接收的数据写入存储单元,用于从接口单元获取数据指令并根据指令要求对存储单元进行读取,以及用于将从存储单元读取的数据发送至接口单元;存储单元,采用一次性存储器,用于存储数据处理单元写入的数据;指示单元与数据处理单元连接,用于指示工作状态;写保护模块与数据处理单元和/或存储单元连接,用于控制对一次性存储器的数据写入;电源为移动存储器进行供电,供电方式包括总线取电和外接独立供电两种方式。As shown in Figure 1, a kind of one-time mobile memory includes an interface unit, a data processing unit, an indicating unit, a write protection module, a power supply and a storage unit, wherein the interface unit, the processing unit and the storage unit are connected in sequence, and the sequence The unit of connection is a logical relationship and can exist in one or more physical hardware. The interface unit of this embodiment is used to receive the data and instructions that need to be stored and read and transmit them to the data processing unit; the data processing unit is used to receive data and instructions from the interface unit and write the received data into the storage unit according to the instruction requirements , used to obtain data instructions from the interface unit and read the storage unit according to the instruction requirements, and to send the data read from the storage unit to the interface unit; the storage unit uses a one-time memory for storing the data processing unit The written data; the indicating unit is connected with the data processing unit to indicate the working state; the write protection module is connected with the data processing unit and/or the storage unit for controlling the writing of data to the one-time memory; the power supply is for the mobile memory Power supply, power supply methods include bus power supply and external independent power supply.
本实施例的接口单元由总线插座及与总线插座连接的总线控制器组成,总线控制器用于将经接口单元传输的数据按总线协议处理并进行传输。本实施例的总线插座上设有USB接口、LAN接口、IEEE1394接口、Thunderbolt接口、SD接口、CF接口、MMC接口、eSATA接口、Lightning总线接口中的任意一种或多种接口。本实施例应用时,按照USB、LAN、IEEE1394、Thunderbolt、SD、CF、MMC、eSATA、Lightning等接口标准在数据处理系统与本实施例的移动存储器之间传送要交换的信息。本实施例的存储单元采用OTP存储器,OTP存储器是一种大容量电子式存储芯片或模块,体积小、速度快、数据写入后可以永久保存,数据保存性能好,写入后在不加电源情况下,可保存长期保存数据。存储单元的芯片中可采用反熔丝技术,存储单元内部数据按二进制地址组织。如此,本实施例采用一次性存储介质(OTP),借助USB、LAN、IEEE1394、Thunderbolt、SD、CF、MMC、eSATA、Lightning等总线接口和即插即用技术,为用户提供安全、轻便、易携带、易使用、高可靠的移动存储装置,写入数据不会丢失、损坏和修改、删除,并且支持不同操作系统。本实施例的数据处理单元采用单片机、嵌入式芯片等微控制器实现,指示单元采用发光二极管或显示器(如LCD、OLED等)实现,用其不同发光状态或显示内容分别表示不同工作状态。The interface unit in this embodiment is composed of a bus socket and a bus controller connected to the bus socket. The bus controller is used to process and transmit the data transmitted through the interface unit according to the bus protocol. The bus socket in this embodiment is provided with any one or more interfaces of USB interface, LAN interface, IEEE1394 interface, Thunderbolt interface, SD interface, CF interface, MMC interface, eSATA interface, and Lightning bus interface. When this embodiment is applied, the information to be exchanged is transmitted between the data processing system and the mobile memory of this embodiment according to interface standards such as USB, LAN, IEEE1394, Thunderbolt, SD, CF, MMC, eSATA, and Lightning. The storage unit of this embodiment adopts OTP memory, and OTP memory is a kind of large-capacity electronic memory chip or module, and volume is small, and speed is fast, and data can be stored permanently after writing, and data preservation performance is good, writes back and does not add power In some cases, long-term storage data can be saved. Anti-fuse technology can be used in the chip of the storage unit, and the internal data of the storage unit is organized according to the binary address. In this way, this embodiment adopts one-time storage media (OTP), and provides users with safe, portable, easy-to-play Portable, easy-to-use, and highly reliable mobile storage device, the written data will not be lost, damaged, modified, or deleted, and it supports different operating systems. The data processing unit of this embodiment is realized by microcontrollers such as single-chip microcomputers and embedded chips, and the indicating unit is realized by light-emitting diodes or displays (such as LCD, OLED, etc.), and different light-emitting states or display contents are used to represent different working states.
一种一次性移动存储器存储和读取数据的方法,包括存储数据步骤和读取数据步骤,其中,存储数据步骤包括以下步骤:S1.1、将移动存储器的接口单元与数据处理系统的主机连接,完成移动存储器初始化;S1.2、待数据处理系统接收到用户发送的写指令和写入数据后,将写指令转换成数据处理单元理解并执行的写操作指令,并将写操作指令和写入数据传送给接口单元,接口单元再将写操作指令和写入数据传送给数据处理单元;S1.3、数据处理单元按照接收到的写操作指令,待数据处理系统需要写入的所有数据完成后,将写入结果由接口单元传送给数据处理系统。A method for storing and reading data in a one-time mobile memory, including the steps of storing data and reading data, wherein the step of storing data includes the following steps: S1.1. Connecting the interface unit of the mobile memory to the host computer of the data processing system , to complete the initialization of the mobile memory; S1.2. After the data processing system receives the write command and write data sent by the user, it converts the write command into a write command that the data processing unit understands and executes, and converts the write command and the write The input data is transmitted to the interface unit, and the interface unit then transmits the write operation instruction and write data to the data processing unit; S1.3. The data processing unit waits for all the data to be written by the data processing system to complete according to the received write operation instruction Afterwards, the writing result is sent to the data processing system by the interface unit.
读取数据步骤包括以下步骤:S2.1、将移动存储器的接口单元与数据处理系统的主机连接,完成移动存储器初始化;S2.2、待数据处理系统接收到用户发送的读指令后,将读指令转换成数据处理单元理解并执行的读操作指令并传送给接口单元,接口单元再将读操作指令传送给数据处理单元;S2.3、数据处理单元根据读操作指令对存储单元进行读取,读取的数据经接口单元输出至数据处理系统中。The step of reading data includes the following steps: S2.1. Connect the interface unit of the mobile memory to the host computer of the data processing system to complete the initialization of the mobile memory; S2.2. After the data processing system receives the read instruction sent by the user, it will read The instruction is converted into a read operation instruction understood and executed by the data processing unit and transmitted to the interface unit, and the interface unit then transmits the read operation instruction to the data processing unit; S2.3. The data processing unit reads the storage unit according to the read operation instruction, The read data is output to the data processing system through the interface unit.
本实施例初始化的程序码全都储存在数据处理单元中,本实施例的移动存储器上电后,数据处理系统会查询总线控制器,此时总线控制器会产生中断给数据处理单元,然后数据处理单元通过操作总线控制器与数据处理系统取得联系,数据处理系统根据数据处理单元与总线控制器所反馈的各种特性或标志而通知数据处理单元与总线控制器进行有关的初始设置,为下一步准备正常数据的交换做好准备。The program codes initialized in this embodiment are all stored in the data processing unit. After the mobile memory of this embodiment is powered on, the data processing system will query the bus controller. At this time, the bus controller will generate an interrupt to the data processing unit, and then the data processing The unit gets in touch with the data processing system by operating the bus controller, and the data processing system notifies the data processing unit and the bus controller to make relevant initial settings according to various characteristics or signs fed back by the data processing unit and the bus controller, for the next step Prepare for normal data exchange.
本实施例还包括写保护步骤,其中,写保护步骤包括两种方式,第一种方式的具体操作步骤为:数据处理系统向数据处理单元发送写保护指令,数据处理单元收到写保护指令后关断对存储单元的数据写入功能,和/或将存储单元写入允许功能关闭。第二种方式的具体操作步骤为:采用数据处理单元把写保护模块的状态通知给数据处理系统,由数据处理系统对其判断,从而决定是否进行存储数据步骤。如此,本实施例的移动存储器设置“写保护”功能,它可以是“硬”保护方式,也可以是“软”保护方式,还可以是二者结合使用的方式。所谓“硬”保护方式,是利用写保护模块的一个状态令移动存储器无法写入数据,本实施例的写保护模块工作时,使移动存储器的写保护管脚悬空或接地,再配合数据处理单元的判断,使移动存储器关闭写入功能,或移动存储器内部“写保护位”置为保护状态使得移动存储器无法写入数据。而所述“软”保护方式,则是数据处理单元把写保护模块的状态通知给数据处理系统。本实施例由数据处理单元与数据处理系统的配合为移动存储器提供软保护,即当写保护模块处理保护状态时,数据处理单元会把写保护状态通知数据处理系统,数据处理系统不进行存储数据步骤,从而不可以改变移动存储器中的内容,使用户存储的信息受到保护。This embodiment also includes a write protection step, wherein the write protection step includes two methods, the specific operation steps of the first method are: the data processing system sends a write protection instruction to the data processing unit, and the data processing unit receives the write protection instruction. Turn off the function of writing data to the storage unit, and/or turn off the writing permission function of the storage unit. The specific operation steps of the second method are: the data processing unit is used to notify the data processing system of the state of the write protection module, and the data processing system judges it to decide whether to store the data. In this way, the mobile memory of this embodiment is provided with a "write protection" function, which can be a "hard" protection mode, a "soft" protection mode, or a combination of the two. The so-called "hard" protection method is to use a state of the write protection module to make the mobile memory unable to write data. When the write protection module of this embodiment is working, the write protection pin of the mobile memory is suspended or grounded, and then cooperate with the data processing unit According to the judgment, the writing function of the mobile memory is disabled, or the "write protection bit" inside the mobile memory is set to a protected state so that the mobile memory cannot write data. In the "soft" protection mode, the data processing unit notifies the data processing system of the status of the write protection module. In this embodiment, the cooperation of the data processing unit and the data processing system provides soft protection for the mobile memory, that is, when the write protection module processes the protection state, the data processing unit will notify the data processing system of the write protection state, and the data processing system will not store data. Steps, so that the content in the mobile memory cannot be changed, so that the information stored by the user is protected.
本实施例还包括销毁或擦除数据步骤,其中,销毁或擦除步骤的具体操作步骤为:数据处理系统向数据处理单元发送销毁或擦除数据指令,数据处理单元收到销毁或擦除数据指令后将存储单元所有或存有数据部分的存储位置全部置为“1”或“0”,使得存储的数据无法被读出或恢复。This embodiment also includes the step of destroying or erasing data, wherein the specific operation steps of the destroying or erasing step are: the data processing system sends an instruction to destroy or erase data to the data processing unit, and the data processing unit receives the command to destroy or erase data After the instruction, all the storage locations of the storage unit or the data part are set to "1" or "0", so that the stored data cannot be read or recovered.
本实施例在具体实施时,若需存储的数据量大,可将数据分批次存储,即先将第一批需要写入的数据发送至接口单元并经数据处理单元写入存储单元,再将第二批需要写入的数据发送至接口单元并经数据处理单元写入存储单元,如此重复,直至最后一批需要写入的数据写入存储单元。本实施例在具体实施时,若需读取的数据量大,可将数据分批次读取,即先读取第一批数据,再读取第二批数据,直至读取最后一批数据。In the actual implementation of this embodiment, if the amount of data to be stored is large, the data can be stored in batches, that is, the first batch of data to be written is sent to the interface unit and written into the storage unit through the data processing unit, and then The second batch of data to be written is sent to the interface unit and written into the storage unit through the data processing unit, and so on, until the last batch of data to be written is written to the storage unit. In the actual implementation of this embodiment, if the amount of data to be read is large, the data can be read in batches, that is, the first batch of data is read first, and then the second batch of data is read until the last batch of data is read. .
本实施例的移动存储器应用时,在所述数据处理系统中装入本实施例所述的移动存储器的驱动模块,在数据处理系统的管理下,由驱动模块接受用户的操作请求,并将该操作请求处理为操作指令,传送至数据处理单元,由数据处理单元处理后,将结果与处理状态返回驱动模块,完成数据处理系统处理外存储装置的过程,即,完成两者之间的数据交换过程。When the mobile memory of this embodiment is applied, the driver module of the mobile memory described in this embodiment is loaded into the data processing system, and under the management of the data processing system, the driver module accepts the user's operation request and sends the The operation request is processed into an operation command, which is sent to the data processing unit, and after being processed by the data processing unit, the result and processing status are returned to the drive module, and the process of processing the external storage device by the data processing system is completed, that is, the data exchange between the two is completed process.
当数据处理系统接到读操作时,会把该操作发送给驱动模块,驱动模块会把它转换成移动存储器的操作方式。之后,驱动模块进一步对转换后的操作进行总线数据打包,数据处理系统把读请求通过总线发送给数据处理单元,由数据处理单元执行该读操作,并把读取的数据及状态信息返回给驱动模块,然后由驱动模块把该读取的数据及状态信息发送给数据处理系统。至此,读操作完成。When the data processing system receives a read operation, it will send the operation to the drive module, and the drive module will convert it into the operation mode of the mobile memory. Afterwards, the driver module further packages the converted operation with bus data, the data processing system sends the read request to the data processing unit through the bus, the data processing unit executes the read operation, and returns the read data and status information to the driver module, and then the driver module sends the read data and status information to the data processing system. So far, the read operation is completed.
当数据处理系统接到写操作时,会把该操作发送给驱动模块,驱动模块会把它转换成移动存储器的操作方式。当写操作到达移动存储器时,如果写位置已经包含有效数据,则新的数据无法写入,只有在未写入数据的写入数据区域,才能写入新的数据。当写入操作完成后,驱动模块把写操作的状态信息返回给数据处理系统。至此,写操作完成。When the data processing system receives a write operation, it will send the operation to the drive module, and the drive module will convert it into the operation mode of the mobile memory. When the write operation reaches the mobile storage, if the write location already contains valid data, new data cannot be written, and new data can only be written in the write data area where no data has been written. After the writing operation is completed, the drive module returns the status information of the writing operation to the data processing system. At this point, the write operation is completed.
数据处理系统的主机每当插入一个移动存储器时,数据处理系统都会通过总线接口自动检测到该存储装置的插入。此时数据处理系统就会立即激活驱动模块,驱动模块被激活后,即执行初始化操作。在上述操作过程中,数据处理单元会接收并处理来自驱动模块和数据处理系统的操作请求,当驱动模块完成插入处理后,即进入等待操作请求的等待状态。Whenever the host computer of the data processing system inserts a removable storage device, the data processing system will automatically detect the insertion of the storage device through the bus interface. At this time, the data processing system will immediately activate the drive module, and after the drive module is activated, it will perform an initialization operation. During the above operation process, the data processing unit will receive and process the operation requests from the drive module and the data processing system. After the drive module completes the insertion process, it enters the waiting state for the operation request.
当用户把移动存储器从数据处理系统的总线接口拔出时,数据处理单元立即终止执行,而数据处理系统则能自动检测到该装置已经从数据处理系统上拔出,此时,数据处理系统会立即把这一事件通知驱动模块,驱动模块在接到此通知后,立即执行有关处理,并指示数据处理系统消除与该存储装置对应的可移动存储器。When the user pulls out the mobile memory from the bus interface of the data processing system, the data processing unit immediately terminates execution, and the data processing system can automatically detect that the device has been pulled out from the data processing system. At this time, the data processing system will Immediately notify the drive module of this event, and after receiving the notification, the drive module immediately executes relevant processing and instructs the data processing system to delete the removable memory corresponding to the storage device.
以上所述的具体实施方式,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施方式而已,并不用于限定本发明的保护范围,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The specific embodiments described above have further described the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above descriptions are only specific embodiments of the present invention and are not intended to limit the scope of the present invention. Protection scope, within the spirit and principles of the present invention, any modification, equivalent replacement, improvement, etc., shall be included in the protection scope of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710260959.2A CN107066901A (en) | 2017-04-20 | 2017-04-20 | A kind of disposable mobile memory and its storage and the method for reading data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710260959.2A CN107066901A (en) | 2017-04-20 | 2017-04-20 | A kind of disposable mobile memory and its storage and the method for reading data |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107066901A true CN107066901A (en) | 2017-08-18 |
Family
ID=59600943
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710260959.2A Pending CN107066901A (en) | 2017-04-20 | 2017-04-20 | A kind of disposable mobile memory and its storage and the method for reading data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107066901A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110490010A (en) * | 2019-08-14 | 2019-11-22 | 北京泰立鑫科技有限公司 | A kind of data auto-destruct method based on multiple-factor environment sensing |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1088218C (en) * | 1999-11-14 | 2002-07-24 | 邓国顺 | Electronic flash storage method and device for data processing system |
CN1459727A (en) * | 2002-05-24 | 2003-12-03 | 力旺电子股份有限公司 | Digital storage medium with one-time programmable read-only memory |
CN1985307A (en) * | 2004-07-12 | 2007-06-20 | 三星电子株式会社 | Recording/reproducing apparatus, recording/reproducing method and information storage medium |
CN102597975A (en) * | 2009-10-29 | 2012-07-18 | 飞思卡尔半导体公司 | One-time programmable memory device and methods thereof |
CN103646668A (en) * | 2013-12-26 | 2014-03-19 | 中国科学院上海微系统与信息技术研究所 | Disposable programmable memory as well as programming method and reading method of memory |
-
2017
- 2017-04-20 CN CN201710260959.2A patent/CN107066901A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1088218C (en) * | 1999-11-14 | 2002-07-24 | 邓国顺 | Electronic flash storage method and device for data processing system |
CN1459727A (en) * | 2002-05-24 | 2003-12-03 | 力旺电子股份有限公司 | Digital storage medium with one-time programmable read-only memory |
CN1985307A (en) * | 2004-07-12 | 2007-06-20 | 三星电子株式会社 | Recording/reproducing apparatus, recording/reproducing method and information storage medium |
CN102597975A (en) * | 2009-10-29 | 2012-07-18 | 飞思卡尔半导体公司 | One-time programmable memory device and methods thereof |
CN103646668A (en) * | 2013-12-26 | 2014-03-19 | 中国科学院上海微系统与信息技术研究所 | Disposable programmable memory as well as programming method and reading method of memory |
Non-Patent Citations (1)
Title |
---|
马祥杰: "《计算机维修技术与实例》", 30 June 2011 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110490010A (en) * | 2019-08-14 | 2019-11-22 | 北京泰立鑫科技有限公司 | A kind of data auto-destruct method based on multiple-factor environment sensing |
CN110490010B (en) * | 2019-08-14 | 2021-07-09 | 北京泰立鑫科技有限公司 | Automatic data destruction method based on multi-factor environmental perception |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8990462B2 (en) | Storage device, computing system including the same and data transferring method thereof | |
JP5878606B2 (en) | Enumerate virtual USB composite devices | |
US7412558B2 (en) | Semiconductor storage device | |
US8103845B2 (en) | Data storage device using two types of storage medium | |
CN109933475A (en) | A system, method and device for hot-swap processing of hard disk | |
TW201118569A (en) | Data storing method for a flash memory, and flash memory controller and flash memory storage system using the same | |
US20120210038A1 (en) | External bridge system | |
TW201308080A (en) | Memory storage device, memory controller thereof, and method for programming data thereof | |
CN105302763A (en) | USB 3.0 protocol based read-only control system and method | |
TW202411814A (en) | Systems and methods for using a storage device as persistent memory | |
CN111459863B (en) | NVME-MI-based chassis management system and method | |
KR102140297B1 (en) | Nonvolatile memory devicee and data storage device including the same | |
CN103019619B (en) | A kind of disk plug control method and device | |
WO2015154541A1 (en) | Firmware storage apparatus for usb solid-state disk | |
CN107066901A (en) | A kind of disposable mobile memory and its storage and the method for reading data | |
CN101620568A (en) | Storage device and data storage method | |
CN105117179A (en) | Method for data interaction of host and storage device and storage controller | |
CN201063240Y (en) | Mobile hard disk with read-write protection switch | |
CN103049223B (en) | A kind of release method of hard disc hidden area, device and system | |
CN209401023U (en) | A kind of solid state hard disk for destroying function with rapid data | |
CN210776642U (en) | A multiple TF card automatic platter device | |
CN201348879Y (en) | USB bus-powered mobile hard disk | |
KR20170142483A (en) | Data storage device and operating method thereof | |
TW202139023A (en) | Computer program product and method and apparatus for controlling access to flash storage | |
CN117076365B (en) | Method and system for controlling data transmissible peripheral interface of computer |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170818 |
|
RJ01 | Rejection of invention patent application after publication |