This non-provisional application claims priority claim under 35 U.S.C. § 119(a) on Taiwan Patent Application No. 108140888 filed Nov. 11, 2019, the entire contents of which are incorporated herein by reference.

FIELD OF THE INVENTION

The present invention relates to a data storage device, a data storage device capable of self-accessing data file.

BACKGROUND

With the need for data storage, a data storage data, for example, Solid State Drive (SSD), often used by a host to store important data. Referring toFIG. 1, there is shown a circuit architecture diagram of a conventional data storage device. As shown inFIG. 1, the data storage device10comprises a controller11, a plurality of flash memories13, and a data transmission interface15. The controller11is connected to the flash memories13, and the data transmission interface15.

The data storage device10is connected to a host20via the data transmission interface15. The data transmission interface15is a data transmission interface of standard specification, for example, SATA or PCIe, commonly used in an operating system. When an operating system21of the host20wants to access data for the data storage device10, it will send an access command, for example, read/write command, to the data storage device10via a driver program of data transmission interface, for example, SATA or PCIe driver program. The controller11of the data storage device10can access data for the flash memories13after receiving the access command.

The operating system21of the host20is usually configured with a file system22that is a subsystem of the operating system. The file system22stores data to the data storage device10in a file form, or read data from the data storage device10in the file form. When the operating system21of the host20accesses data for the data storage device10, the accessed data is a raw data. The operating system21perform a file analysis for the raw data accessed via the file system22, for example, the file system22analyzes a file name, a file type, or a file attribute of the raw data, thereby the raw data analyzed can be managed or operated by the operating system21.

Besides, the controller11of the conventional data storage device10is usually not provided with any operating system, and therefore it can only access the raw data, and can't further perform the file analysis for the raw data accessed. Further, a data transmission interface between the controller11and the flash memories13is a specific standard specification interface (such as SPI, I2C, or UART) that is not commonly used in the operating system. If the controller11of the data storage device10is provided with an operating system, engineer needed to additionally write and configure a driver program of the specific standard specification interface in the file system of the operating system in order to allow that the file system of the operating system analyzes the file information of data transmitted between the controller11and the flash memories13, such a way that is not only complicated but also the access efficiency is very low.

SUMMARY

It is one objective of the present invention to provide a data storage device capable of self-accessing data file. The data storage device comprises a data storage unit and a microprocessor having an operating system. The data storage unit comprises a controller and a plurality of flash memories. The data storage device is capable of accessing data in the flash memories, and performs a file parsing procedure to the data accessed from the flash memories, such that the data storage device can arrive the objective of self-accessing the data file.

It is another objective of the present invention to provide a data storage device capable of self-accessing data file, in which the data storage device is connected to a host. An operating system of the host can access data stored in the flash memories of the data storage device. When the operating system is abnormal, a manager of a cloud management platform perform a repairing operation to the operating system of the host by an operating system configured in the microprocessor of the data storage device, so that the operating system of the host repaired can be restarted and resume normal operation, again.

It is another objective of the present invention to provide a data storage device capable of self-accessing data file, wherein the microprocessor of the data storage device is connected to the data storage unit via a high-speed data transmission interface to access data stored in the data storage unit at high-speed.

To achieve the above objective, a data storage device, comprising: a data storage unit comprising a controller and a plurality of flash memories connected to the controller; and a microprocessor, provided with a first operating system, and connected to the data storage unit via a high-speed data transmission interface; wherein a data is transmitted between the data storage unit and the microprocessor via the high-speed data transmission interface, the first operating system comprises a first file system, the first file system is configured with a driver program of the high-speed data transmission interface; wherein the first operating system of the microprocessor performs a data access operation for the data storage unit via the driver program to obtain a raw data, the first file system of the first operating system performs a file parsing process for the raw data to parse out a file information of the raw data.

In one embodiment of the present invention, further comprising a switcher configured in channels of the high-speed data transmission interface, the microprocessor or the controller controls a switching of the switcher to conduct the channels of the high-speed data transmission interface between the data storage unit and the microprocessor, or conduct the channels of the high-speed data transmission interface between the data storage unit and a host; wherein the host is provided with a second operating system, the second operating system comprises a second file system, the second file system is configured with the driver program of the high-speed data transmission interface; when the channels of the high-speed data transmission interface between the data storage unit and the host has conducted, the second operating system of the host performs the data access operation for the data storage unit via the driver program to obtain the raw data, the second file system of the second operating system performs the file parsing process for the raw data to parse out the file information of the raw data.

In one embodiment of the present invention, when the microprocessor or the controller sends a first level signal to the switcher, the channels of the high-speed transmission interface between the data storage unit and the host will be conducted; when the microprocessor or the controller sends a second level signal to the switcher, the channels of the high-speed transmission interface between the data storage unit and the microprocessor will be conducted.

In one embodiment of the present invention, wherein the first operating system is an embedded operating system.

In one embodiment of the present invention, wherein the first file system is a file system in a form of FAT, NTFS, or exFAT.

In one embodiment of the present invention, wherein the high-speed data transmission interface is a data transmission interface conforming to SATA or PCIe standard specification.

In one embodiment of the present invention, wherein the switcher is a channel switcher of a SATA data transmission interface or a PCIe data transmission interface.

In one embodiment of the present invention, wherein the data storage device comprises a network communication component, the microprocessor of the data storage device is connected to a management platform via the network communication element; when the management platform sends a data access request to the data storage device, the first operating system of the microprocessor sends a corresponding data access command to the controller according to the data access request via the driver program, obtains the raw data related to the data access request in a process of performing of the data access command, and performs the file parsing process for the raw data related to the data access request via the first file system to parse out the file information of the raw data.

In one embodiment of the present invention, wherein the network communication component is a WiFi communication component, an Ethernet communication component, or a 4G or 5G communication component.

In one embodiment of the present invention, wherein the data storage device comprises a network communication component, the microprocessor of the data storage device is connected to a management platform via the network communication element, the data storage device is connected to a host via the high-speed data transmission interface, the host is provided with a second operating system in the flash memories of the data storage unit of the data storage device, the second operating system comprises a second file system, the second file system is configured with the driver program of the high-speed data transmission interface; when the second operating system of the host has been damaged, the management platform sends a data access request for repairing the second operating system to the data storage device, the data access request includes the raw data for restoring the second operating system; then, when the data storage device receives the data access request, the first operating system of the microprocessor of the data storage device performs the file parsing process to the raw data of the data access request via the first file system to obtain a system restoring file, and sends a data access command for repairing the second operating system to the controller, such that the controller repairs the second operating system of the host stored in the flash memories by the system restoring file.

