CN114328310A - SATA storage control method, device, equipment and computer readable storage medium - Google Patents
SATA storage control method, device, equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN114328310A CN114328310A CN202111502737.XA CN202111502737A CN114328310A CN 114328310 A CN114328310 A CN 114328310A CN 202111502737 A CN202111502737 A CN 202111502737A CN 114328310 A CN114328310 A CN 114328310A
- Authority
- CN
- China
- Prior art keywords
- sata
- sata storage
- storage device
- equipment
- transmission channel
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 49
- 230000005540 biological transmission Effects 0.000 claims abstract description 93
- 238000012795 verification Methods 0.000 claims description 61
- 238000012545 processing Methods 0.000 claims description 3
- 238000012546 transfer Methods 0.000 claims description 3
- 238000004891 communication Methods 0.000 description 10
- 230000008569 process Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 241000700605 Viruses Species 0.000 description 2
- 230000006835 compression Effects 0.000 description 2
- 238000007906 compression Methods 0.000 description 2
- 238000012937 correction Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000013475 authorization Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Landscapes
- Storage Device Security (AREA)
Abstract
The invention discloses a method, a device and equipment for controlling SATA storage and a computer readable storage medium, wherein the method for controlling SATA storage comprises the following steps: when detecting that the SATA storage device is accessed currently, acquiring the device type of the SATA storage device; and controlling the connection and disconnection of the SATA transmission channel between the SATA storage device and the SATA storage device according to the device type of the SATA storage device. According to the method and the device, when the SATA storage device is detected to be accessed currently, the SATA storage device is detected to obtain the device type of the SATA storage device, and the connection and the disconnection of the SATA transmission channel between the SATA storage device and the SATA storage device are controlled according to the device type of the SATA storage device, so that the user information and data on the host can be effectively prevented from being copied by the SATA storage device which is accessed without permission, the host can not read the data in the SATA storage device arbitrarily, and the technical problem that the data transmission safety between the SATA storage device and the SATA storage device is poor is solved.
Description
Technical Field
The present invention relates to the field of data communication technologies, and in particular, to a method, an apparatus, a device, and a computer readable storage medium for controlling SATA storage.
Background
SATA is an abbreviation for Serial ATA. It is a computer bus that is primarily used for data transfer between a motherboard and a large number of storage devices (e.g., hard disks and optical disk drives). The hard disk interface is a new type of hard disk interface completely different from the serial PATA, and is named after the data is transmitted in a serial mode. The SATA bus uses an embedded clock signal, has stronger error correction capability, and has the biggest difference compared with the prior art that the SATA bus can check transmission instructions (not only data) and automatically correct errors if the errors are found, thereby improving the reliability of data transmission to a great extent. The serial interface also has the advantages of simple structure and hot plug support.
In 11 months of 2000, SATA, established by the "Serial ATA Working Group" Group, has completely replaced the old hard disk of the old PATA (Parallel ATA or IDE), and is named after the use of Serial data transmission. On the aspect of data transmission, the SATA speed is faster than the past, and supports hot plugging, so that the computer can be plugged in or unplugged from hardware during operation. On the other hand, the SATA bus uses an embedded clock frequency signal, has a higher error correction capability than the conventional SATA bus, can check a transmission command (not only data), and automatically corrects the transmission command if an error is found, thereby improving the reliability of data transmission. However, SATA is most obvious from the past, and uses a thin flat cable, which is beneficial to air circulation inside the chassis and increases the stability of the whole platform to some extent.
At present, the SATA has three specifications of SATA 1.5Gbit/s, SATA 3Gbit/s and SATA 6 Gbit/s. In the future, there is a faster SATA Express specification.
The device for realizing data transmission SATA storage at present basically adopts the cooperation of an SATA controller and a FLASH memory bank, exchanges and transmits data in a system or application software mode, and transmitted content can be files or content defined by a user, when any user accesses the SATA storage device, the data can be read and copied from a computer, so that the protection of important information cannot be realized, and effective protection of external viruses is realized, and the technical problem of poor data transmission safety with the SATA storage device is caused.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a method, a device and equipment for controlling SATA storage and a computer readable storage medium, and aims to solve the technical problem of poor data transmission security with SATA storage equipment.
In order to achieve the above object, the present invention provides a SATA storage control method, including the steps of:
when detecting that the SATA storage device is accessed currently, acquiring the device type of the SATA storage device;
and according to the equipment type of the SATA storage equipment, controlling the high-speed switch of the SATA transmission channel between the SATA storage equipment and the SATA storage equipment to be opened and closed so as to control the connection and disconnection of the SATA transmission channel through the high-speed switch.
Optionally, the step of controlling, according to the device type of the SATA storage device, on and off of a high-speed switch of a SATA transmission channel between the SATA storage device and the SATA storage device, so as to control connection and disconnection of the SATA transmission channel through the high-speed switch includes:
if the device type of the SATA storage device is detected to be compliant, a high-speed switch of a SATA transmission channel between the SATA storage device and the SATA storage device is opened, the SATA transmission channel is communicated, and data transmission is carried out between the SATA transmission channel and the SATA storage device;
if the device type of the SATA storage device is detected to be non-compliant device, a high-speed switch of a SATA transmission channel between the SATA storage device and the device is closed, and the SATA transmission channel between the SATA storage device and the device is cut off.
Optionally, before the step of obtaining the device type of the SATA storage device when it is detected that the SATA storage device is currently accessed, the method further includes:
acquiring authority information of a user;
if the authority information passes the verification, the following steps are executed: and when detecting that the SATA storage device is accessed currently, acquiring the device type of the SATA storage device.
Optionally, the authority information includes a user account and a user password input by the user, and if the authority information passes the verification, the following steps are executed: when detecting that the SATA storage device is currently accessed, before the step of obtaining the device type of the SATA storage device, the method further includes:
and if the user password is matched with the user account, judging that the authority information passes the verification.
Optionally, the step of obtaining the device type of the SATA storage device includes:
receiving an authority verification request transmitted by the SATA storage device, and analyzing the authority verification request to obtain verification information of the SATA storage device;
and inquiring a pre-stored equipment verification record, and determining the equipment type of the SATA storage equipment according to the equipment verification record.
Optionally, the step of determining the device type of the SATA storage device according to the device authentication record includes:
if the equipment verification record matched with the verification information is inquired, determining that the equipment type of the SATA storage equipment is compliant equipment;
and if the equipment verification record matched with the verification information is not inquired, determining that the equipment type of the SATA storage equipment is non-compliant equipment.
Optionally, the SATA storage control method is applied to a host side, where the host side includes a SATA interface, and the SATA storage device is connected to the host side through the SATA interface.
In addition, to achieve the above object, the present invention further provides a SATA storage control apparatus, including:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring the equipment type of the SATA storage equipment when detecting that the SATA storage equipment is accessed currently;
and the control module is used for controlling the opening and closing of a high-speed switch of a SATA transmission channel between the SATA storage device and the control module according to the device type of the SATA storage device so as to control the connection and disconnection of the SATA transmission channel through the high-speed switch.
In addition, to achieve the above object, the present invention further provides a SATA storage control apparatus, including: the system comprises a memory, a processor and a SATA storage control program which is stored on the memory and can run on the processor, wherein when the SATA storage control program is executed by the processor, the steps of the SATA storage control method are realized.
In addition, to achieve the above object, the present invention further provides a computer readable storage medium, where a SATA storage control program is stored, and when the SATA storage control program is executed by a processor, the SATA storage control program implements the steps of the SATA storage control method as described above.
The method comprises the steps of acquiring the equipment type of the SATA storage equipment when the current SATA storage equipment is detected to be accessed; and controlling the connection and disconnection of the SATA transmission channel between the SATA storage device and the SATA storage device according to the device type of the SATA storage device. The SATA storage device is detected when the current SATA storage device is detected to be accessed, so that the device type of the SATA storage device is obtained, the connection and disconnection of a SATA transmission channel between the SATA storage device and the SATA storage device are controlled according to the device type of the SATA storage device, user information and data on a host end can be effectively prevented from being copied by the SATA storage device which is accessed without permission, the host end cannot read the data in the SATA storage device arbitrarily, and the technical problem that the data transmission safety of the SATA storage device is poor is solved.
Drawings
FIG. 1 is a diagram of a SATA storage control device in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating a SATA storage control method according to a first embodiment of the present invention;
FIG. 3 is a flow chart illustrating a SATA storage control method according to a second embodiment of the present invention;
FIG. 4 is a system diagram of an embodiment of a SATA storage control device.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a SATA storage control device in a hardware operating environment according to an embodiment of the present invention.
The SATA storage control device in the embodiment of the present invention may be a PC, or may be a mobile terminal device having a display function, such as a smart phone, a tablet PC, an electronic book reader, an MP3(Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3) player, an MP4(Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4) player, and a portable computer.
As shown in fig. 1, the SATA storage control device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the SATA storage control device may further include a camera, a RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, and the like. Such as light sensors, motion sensors, and other sensors.
Those skilled in the art will appreciate that the SATA storage control device architecture shown in fig. 1 does not constitute a limitation of SATA storage control devices and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a SATA storage control program.
In the SATA storage control device shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and processor 1001 may be used to invoke a SATA storage control program stored in memory 1005.
In this embodiment, the SATA storage control apparatus includes: the system comprises a memory 1005, a processor 1001 and a SATA storage control program which is stored on the memory 1005 and can run on the processor 1001, wherein when the processor 1001 calls the SATA storage control program stored in the memory 1005, the following operations are executed:
when detecting that the SATA storage device is accessed currently, acquiring the device type of the SATA storage device;
and according to the equipment type of the SATA storage equipment, controlling the high-speed switch of the SATA transmission channel between the SATA storage equipment and the SATA storage equipment to be opened and closed so as to control the connection and disconnection of the SATA transmission channel through the high-speed switch.
Further, the processor 1001 may call the SATA storage control program stored in the memory 1005, and also perform the following operations:
if the device type of the SATA storage device is detected to be compliant, a high-speed switch of a SATA transmission channel between the SATA storage device and the SATA storage device is opened, the SATA transmission channel is communicated, and data transmission is carried out between the SATA transmission channel and the SATA storage device;
if the device type of the SATA storage device is detected to be non-compliant device, a high-speed switch of a SATA transmission channel between the SATA storage device and the device is closed, and the SATA transmission channel between the SATA storage device and the device is cut off.
Further, the processor 1001 may call the SATA storage control program stored in the memory 1005, and also perform the following operations:
acquiring authority information of a user;
if the authority information passes the verification, the following steps are executed: and when detecting that the SATA storage device is accessed currently, acquiring the device type of the SATA storage device.
Further, the processor 1001 may call the SATA storage control program stored in the memory 1005, and also perform the following operations:
and if the user password is matched with the user account, judging that the authority information passes the verification.
Further, the processor 1001 may call the SATA storage control program stored in the memory 1005, and also perform the following operations:
receiving an authority verification request transmitted by the SATA storage device, and analyzing the authority verification request to obtain verification information of the SATA storage device;
and inquiring a pre-stored equipment verification record, and determining the equipment type of the SATA storage equipment according to the equipment verification record.
Further, the processor 1001 may call the SATA storage control program stored in the memory 1005, and also perform the following operations:
if the equipment verification record matched with the verification information is inquired, determining that the equipment type of the SATA storage equipment is compliant equipment;
and if the equipment verification record matched with the verification information is not inquired, determining that the equipment type of the SATA storage equipment is non-compliant equipment.
Referring to fig. 2, fig. 2 is a schematic flow chart of a SATA storage control method according to a first embodiment of the present invention.
In this embodiment, the SATA storage control method includes the steps of:
step S10, when detecting the current access SATA storage device, obtaining the device type of the SATA storage device;
the SATA storage control method provided by the invention is applied to a host end, the host end comprises an SATA interface, SATA storage equipment is connected with the host end through the SATA interface, and the host end can perform data interaction with the SATA storage equipment through the SATA interface, or the SATA storage equipment is accessed into the SATA interface, so that the SATA storage equipment and the host end perform data communication. SATA is an abbreviation for Serial ATA, and is a computer bus that functions primarily as a data transport between a motherboard and a mass storage device (e.g., a hard disk drive and an optical disk drive). The SATA storage device is a storage device based on SATA data communication.
In this embodiment, in the prior art, the current SATA storage bodies all adopt a plug-and-play manner, and cannot realize control over the SATA storage devices accessed from the host, such as access of unrelated SATA devices, access of SATA devices that may have viruses, and the like. That is to say, the host end accesses the SATA storage device, and the host end can perform data communication with the SATA storage device, specifically, the host end can arbitrarily read data stored in the SATA storage device, and the SATA storage device can also arbitrarily acquire data stored in the host end, so that in the prior art, as long as the SATA storage device accesses the host end, arbitrary data interaction between the SATA storage device and the host end can be performed, and therefore, the security of data interaction between the SATA storage device and the host end is very poor, and a control method is urgently needed to protect the data security of the host end, so as to prevent data leakage on the host end. According to the SATA storage control method provided by the invention, when the SATA storage device is detected to be accessed currently, the SATA storage device is detected to acquire the device type of the SATA storage device, and the connection and disconnection of the SATA transmission channel between the SATA storage device and the SATA storage device are controlled according to the device type of the SATA storage device, so that the user information and data on the host can be effectively prevented from being copied by the SATA storage device which is accessed without permission, and the technical problem of poor data transmission safety between the SATA storage device and the user information and data can be solved.
Specifically, when detecting that the SATA storage device is accessed, the SATA interface at the host detects the SATA storage device to determine whether the SATA storage device is a legal device; and completing the detection of the SATA storage device to obtain the device type of the SATA storage device. The device types of the SATA storage device comprise a compliant device and a non-compliant device.
Step S20, according to the device type of the SATA storage device, controlling a high-speed switch of a SATA transmission channel between the SATA storage device and the SATA storage device to be turned on and off, so as to control connection and disconnection of the SATA transmission channel through the high-speed switch.
In the embodiment, according to the device type of the SATA storage device, the connection and disconnection of the SATA transmission channel with the SATA storage device are controlled. Specifically, the device types of the SATA storage device include compliant devices and non-compliant devices, and if the device type of the SATA storage device is a compliant device, the SATA storage device is connected to a SATA transmission channel between the SATA storage device and the SATA transmission channel; if the device type of the SATA storage device is non-compliant device, the SATA transmission channel with the SATA storage device is cut off, the host cannot read data in the SATA storage device, and the SATA storage device cannot read user information and data at the host.
Specifically, a high-speed switch is arranged at the SATA interface at the host end, and the high-speed switch is arranged on a SATA data transmission channel (SATA transmission channel). And communicating the SATA transmission channel with the SATA storage device by opening a high-speed switch of the SATA transmission channel with the SATA storage device. And cutting off the SATA transmission channel between the SATA storage device and the SATA storage device by closing a high-speed switch of the SATA transmission channel between the SATA storage device and the SATA storage device.
According to the SATA storage control method provided by the embodiment, when the SATA storage device is detected to be accessed currently, the device type of the SATA storage device is acquired; and controlling the connection and disconnection of the SATA transmission channel between the SATA storage device and the SATA storage device according to the device type of the SATA storage device. The SATA storage device is detected when the current SATA storage device is detected to be accessed, so that the device type of the SATA storage device is obtained, the connection and disconnection of a SATA transmission channel between the SATA storage device and the SATA storage device are controlled according to the device type of the SATA storage device, user information and data on a host end can be effectively prevented from being copied by the SATA storage device which is accessed without permission, the host end cannot read the data in the SATA storage device arbitrarily, and the technical problem that the data transmission safety of the SATA storage device is poor is solved.
Based on the first embodiment, a second embodiment of the SATA storage control method of the present invention is proposed, and referring to fig. 3, in this embodiment, step S20 includes:
step S21, if the SATA storage device is detected to be a compliant device, a high-speed switch of a SATA transmission channel between the SATA storage device and the SATA storage device is opened, the SATA transmission channel is communicated, and data transmission is carried out between the SATA storage device and the SATA storage device based on the SATA transmission channel;
step S22, if it is detected that the device type of the SATA storage device is a non-compliant device, closing a high-speed switch of a SATA transmission channel with the SATA storage device, and disconnecting the SATA transmission channel with the SATA storage device.
In the embodiment, according to the device type of the SATA storage device, the connection and disconnection of the SATA transmission channel with the SATA storage device are controlled. Specifically, the device types of the SATA storage device include compliant device and non-compliant device, and if the device type of the SATA storage device is compliant device, the high-speed switch of the SATA transmission channel with the SATA storage device is turned on, so that the SATA transmission channel with the SATA storage device is communicated, so that the host end can subsequently perform data transmission with the SATA storage device based on the SATA transmission channel, specifically, the host end can read data stored in the SATA storage device at will, and the SATA storage device can also obtain data stored in the host end at will. If the device type of the ATA storage device is non-compliant device, the high-speed switch of the SATA transmission channel between the ATA storage device and the SATA storage device is turned off, the SATA transmission channel between the host side and the SATA storage device is cut off, the host side cannot read data in the SATA storage device, and the SATA storage device cannot read user information and data at the host side.
Further, before the step of obtaining the device type of the SATA storage device when it is detected that the SATA storage device is currently accessed, the method further includes:
step S30, acquiring authority information of the user;
step S40, if the authorization information is verified, executing the steps of: and when detecting that the SATA storage device is accessed currently, acquiring the device type of the SATA storage device.
In this embodiment, an application program is set to control the high-speed switch, and a user inputs permission information through the application program to obtain a control permission. Specifically, the authority information input by the user is received and verified, and if the authority information input by the user passes verification, the following steps are executed: and when detecting that the SATA storage device is accessed currently, acquiring the device type of the SATA storage device.
Further, the authority information includes a user account and a user password input by the user, and if the user password is matched with the user account, the authority information is judged to be verified.
In this embodiment, the host may configure the authority for managing the data in the SATA storage device for different users, and the user may only manage the data in the SATA storage device with corresponding authority, so that the host may assign the authority to the user differently, and manage and control the authority of different users is implemented, and not all users can read the data in the SATA storage device, thereby improving the security of reading the data in the SATA storage device.
Specifically, when a data request of a user is received, authority information of the user is obtained, and the authority information of the user is verified to determine whether the user has the authority for managing the data in the SATA storage device; and if the user is determined to have the authority to manage the data in the SATA storage device based on the authority information of the user, namely the authority information of the user is verified to pass, allowing the user to manage the data in the SATA storage device, wherein the data in the SATA storage device is read, operated, copied, pasted or deleted.
Further, the step of obtaining the device type of the SATA storage device includes:
step S11, receiving an authority verification request transmitted by the SATA storage device, and analyzing the authority verification request to obtain verification information of the SATA storage device;
step S12, querying a pre-stored device verification record, and determining the device type of the SATA storage device according to the device verification record.
In this embodiment, when detecting that the SATA storage device is accessed, the SATA interface at the host detects the SATA storage device, and the detection process specifically includes: the SATA storage device transmits an authority verification request to a host end; the host receives the authority verification request transmitted by the SATA storage device, and analyzes the authority verification request to obtain the verification information of the SATA storage device; the host detects the validity of the SATA storage device according to the verification information of the SATA storage device, specifically, inquires a pre-stored device verification record, and determines the device type of the SATA storage device according to the inquiry result. If the equipment verification record matched with the verification information is inquired, determining that the equipment type of the SATA storage equipment is compliant equipment; and if the equipment verification record matched with the verification information is not inquired, determining that the equipment type of the SATA storage equipment is non-compliant equipment.
In the SATA storage control method provided in this embodiment, if it is detected that the device type of the SATA storage device is compliant, a high-speed switch of a SATA transmission channel between the SATA storage device and the SATA storage device is turned on, and the SATA transmission channel is communicated, so that data transmission is performed between the SATA transmission channel and the SATA storage device; if the device type of the SATA storage device is detected to be non-compliant device, a high-speed switch of a SATA transmission channel between the SATA storage device and the device is closed, and the SATA transmission channel between the SATA storage device and the device is cut off. In this embodiment, only when detecting that the device type of the SATA storage device is compliant device, the host communicates with the SATA transmission channel between the SATA storage devices, and the host can perform data transmission with the SATA storage device through the SATA transmission channel, so that it is effectively prevented that the user information and data on the host are copied by the SATA storage device that is accessed without permission, and the host cannot read the data in the SATA storage device at will, thereby solving the technical problem of poor security of data transmission with the SATA storage device.
In addition, an embodiment of the present invention further provides a SATA storage control apparatus, and referring to fig. 4, the SATA storage control apparatus includes:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring the equipment type of the SATA storage equipment when detecting that the SATA storage equipment is accessed currently;
and the control module is used for controlling the connection and disconnection of the SATA transmission channel between the SATA storage device and the control module according to the device type of the SATA storage device.
Further, the control module is further configured to:
if the device type of the SATA storage device is detected to be compliant, a high-speed switch of a SATA transmission channel between the SATA storage device and the SATA storage device is opened, the SATA transmission channel is communicated, and data transmission is carried out between the SATA transmission channel and the SATA storage device;
if the device type of the SATA storage device is detected to be non-compliant device, a high-speed switch of a SATA transmission channel between the SATA storage device and the device is closed, and the SATA transmission channel between the SATA storage device and the device is cut off.
Further, the SATA storage control apparatus further includes:
the authority information acquisition module is used for acquiring the authority information of the user;
an execution module, configured to execute the following steps if the permission information passes verification: and when detecting that the SATA storage device is accessed currently, acquiring the device type of the SATA storage device.
Further, the permission information includes a user account and a user password input by the user, and the SATA storage control apparatus further includes:
and the judging module is used for judging that the authority information passes the verification if the user password is matched with the user account.
Further, the obtaining module is further configured to:
receiving an authority verification request transmitted by the SATA storage device, and analyzing the authority verification request to obtain verification information of the SATA storage device;
and inquiring a pre-stored equipment verification record, and determining the equipment type of the SATA storage equipment according to the equipment verification record.
Further, the obtaining module is further configured to:
if the equipment verification record matched with the verification information is inquired, determining that the equipment type of the SATA storage equipment is compliant equipment;
and if the equipment verification record matched with the verification information is not inquired, determining that the equipment type of the SATA storage equipment is non-compliant equipment.
Further, the SATA storage control method is applied to a host side, where the host side includes a SATA interface, and the SATA storage device is connected to the host side through the SATA interface.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where a SATA storage control program is stored in the computer-readable storage medium, and when being executed by a processor, the SATA storage control program implements the steps of the SATA storage control method according to any one of the above.
The specific embodiment of the computer-readable storage medium of the present invention is substantially the same as the embodiments of the SATA storage control method described above, and details are not repeated herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (10)
1. A SATA storage control method is characterized by comprising the following steps:
when detecting that the SATA storage device is accessed currently, acquiring the device type of the SATA storage device;
and according to the equipment type of the SATA storage equipment, controlling the high-speed switch of the SATA transmission channel between the SATA storage equipment and the SATA storage equipment to be opened and closed so as to control the connection and disconnection of the SATA transmission channel through the high-speed switch.
2. The SATA storage control method as recited in claim 1, wherein the step of controlling, according to a device type of the SATA storage device, on and off of a high speed switch of a SATA transfer channel with the SATA storage device to control connection and disconnection of the SATA transfer channel through the high speed switch includes:
if the device type of the SATA storage device is detected to be compliant, a high-speed switch of a SATA transmission channel between the SATA storage device and the SATA storage device is opened, the SATA transmission channel is communicated, and data transmission is carried out between the SATA transmission channel and the SATA storage device;
if the device type of the SATA storage device is detected to be non-compliant device, a high-speed switch of a SATA transmission channel between the SATA storage device and the device is closed, and the SATA transmission channel between the SATA storage device and the device is cut off.
3. The SATA storage control method as recited in claim 1, wherein said step of obtaining a device type of the SATA storage device when it is detected that the SATA storage device is currently accessed further includes:
acquiring authority information of a user;
if the authority information passes the verification, the following steps are executed: and when detecting that the SATA storage device is accessed currently, acquiring the device type of the SATA storage device.
4. The SATA storage control method according to claim 3, wherein the authority information includes a user account and a user password input by the user, and if the authority information is verified, the step of: when detecting that the SATA storage device is currently accessed, before the step of obtaining the device type of the SATA storage device, the method further includes:
and if the user password is matched with the user account, judging that the authority information passes the verification.
5. The SATA storage control method as recited in claim 1, wherein said step of obtaining a device type of the SATA storage device includes:
receiving an authority verification request transmitted by the SATA storage device, and analyzing the authority verification request to obtain verification information of the SATA storage device;
and inquiring a pre-stored equipment verification record, and determining the equipment type of the SATA storage equipment according to the equipment verification record.
6. The SATA storage control method of claim 5, wherein the step of determining a device type of the SATA storage device in accordance with the device authentication record includes:
if the equipment verification record matched with the verification information is inquired, determining that the equipment type of the SATA storage equipment is compliant equipment;
and if the equipment verification record matched with the verification information is not inquired, determining that the equipment type of the SATA storage equipment is non-compliant equipment.
7. The SATA storage control method according to any one of claims 1 to 6, wherein the SATA storage control method is applied to a host side, the host side includes a SATA interface, and the SATA storage device is connected to the host side through the SATA interface.
8. A SATA storage control apparatus, comprising:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring the equipment type of the SATA storage equipment when detecting that the SATA storage equipment is accessed currently;
and the control module is used for controlling the opening and closing of a high-speed switch of a SATA transmission channel between the SATA storage device and the control module according to the device type of the SATA storage device so as to control the connection and disconnection of the SATA transmission channel through the high-speed switch.
9. A SATA storage control device, characterized in that the SATA storage control device includes: memory, a processor and a SATA storage control program stored on the memory and executable on the processor, the SATA storage control program, when executed by the processor, implementing the steps of the SATA storage control method as recited in any one of claims 1 to 7.
10. A computer-readable storage medium, having stored thereon a SATA storage control program, the SATA storage control program, when executed by a processor, implementing the steps of the SATA storage control method as recited in any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111502737.XA CN114328310B (en) | 2021-12-09 | 2021-12-09 | SATA storage control method, device, equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111502737.XA CN114328310B (en) | 2021-12-09 | 2021-12-09 | SATA storage control method, device, equipment and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114328310A true CN114328310A (en) | 2022-04-12 |
CN114328310B CN114328310B (en) | 2024-06-25 |
Family
ID=81050273
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111502737.XA Active CN114328310B (en) | 2021-12-09 | 2021-12-09 | SATA storage control method, device, equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114328310B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1797372A (en) * | 2004-12-23 | 2006-07-05 | 钟巨航 | Storage method and device for data processing system |
CN1996328A (en) * | 2006-12-29 | 2007-07-11 | 北京飞天诚信科技有限公司 | Portable information safety device |
US7257714B1 (en) * | 1999-10-19 | 2007-08-14 | Super Talent Electronics, Inc. | Electronic data storage medium with fingerprint verification capability |
US20170102895A1 (en) * | 2015-10-13 | 2017-04-13 | Samsung Electronics Co., Ltd. | Storage device, host communicating with the storage device, and electronic device including the storage device |
CN110825678A (en) * | 2019-09-18 | 2020-02-21 | 浙江大华技术股份有限公司 | Intelligent backboard and intelligent storage equipment |
CN110826102A (en) * | 2019-11-07 | 2020-02-21 | 深圳市四季宏胜科技有限公司 | Anti-copy file management method, device, equipment and readable storage medium |
CN112491813A (en) * | 2020-11-10 | 2021-03-12 | 深圳市中博科创信息技术有限公司 | Instruction transmission control method, instruction transmission control device and computer-readable storage medium |
-
2021
- 2021-12-09 CN CN202111502737.XA patent/CN114328310B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7257714B1 (en) * | 1999-10-19 | 2007-08-14 | Super Talent Electronics, Inc. | Electronic data storage medium with fingerprint verification capability |
CN1797372A (en) * | 2004-12-23 | 2006-07-05 | 钟巨航 | Storage method and device for data processing system |
CN1996328A (en) * | 2006-12-29 | 2007-07-11 | 北京飞天诚信科技有限公司 | Portable information safety device |
US20170102895A1 (en) * | 2015-10-13 | 2017-04-13 | Samsung Electronics Co., Ltd. | Storage device, host communicating with the storage device, and electronic device including the storage device |
CN110825678A (en) * | 2019-09-18 | 2020-02-21 | 浙江大华技术股份有限公司 | Intelligent backboard and intelligent storage equipment |
CN110826102A (en) * | 2019-11-07 | 2020-02-21 | 深圳市四季宏胜科技有限公司 | Anti-copy file management method, device, equipment and readable storage medium |
CN112491813A (en) * | 2020-11-10 | 2021-03-12 | 深圳市中博科创信息技术有限公司 | Instruction transmission control method, instruction transmission control device and computer-readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114328310B (en) | 2024-06-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110869907B (en) | Method and terminal for browsing application page | |
US8322610B2 (en) | Secure access module for integrated circuit card applications | |
US7797504B2 (en) | Device for processing information based on stored identifiers and a working method therof. | |
US20090298468A1 (en) | System and method for deleting data in a communication device | |
US8584222B2 (en) | Secure pin reset process | |
JP2012123591A5 (en) | ||
JP2014112369A (en) | Electronic assembly comprising disabling module | |
CN102763113A (en) | Method and apparatus to reset platform configuration register in mobile trusted module | |
CN111241546B (en) | Malicious software behavior detection method and device | |
EP2633461B1 (en) | A method for accessing an application and a corresponding device | |
CN102368852A (en) | Information processing apparatus, information processing method and program | |
CN104796532A (en) | Method and device for destroying mobile terminal | |
KR20170080576A (en) | Authentication system and method | |
WO2021055722A1 (en) | System and method for application tamper discovery | |
AU2020202166A1 (en) | Multi-use near field communication front end on a point of sale system | |
CN105787302A (en) | Application processing method and device and electronic equipment | |
CN114328310A (en) | SATA storage control method, device, equipment and computer readable storage medium | |
CN112165706B (en) | Equipment connection management method and device and Bluetooth equipment | |
CN110851881B (en) | Security detection method and device for terminal equipment, electronic equipment and storage medium | |
CN111352357B (en) | Robot control method and device and terminal equipment | |
CN110119646B (en) | Device parameter setting method and system based on radio frequency card | |
CN103532703B (en) | Data processing method and terminal | |
US9467203B2 (en) | Near field communication extending method and extension apparatus | |
EP3523745B1 (en) | Electronic device, method for controlling thereof and computer-readable recording medium | |
WO2023093140A1 (en) | Nfc card data read-write method and apparatus, electronic device and storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |