Controlling method, connector, and memory storage device
First Claim
1. A controlling method for a memory storage device, the controlling method comprising:
- establishing a connection between a host system and the memory storage device;
receiving a first command from the host system and storing the first command into a command queue, wherein the command queue comprises at least one second command after the first command is stored into the command queue;
determining whether a command number of the at least one second command is greater than a threshold, wherein the threshold is greater than 1;
wherein when the command number is greater than the threshold, receiving one of the at least one second command from the command queue, obtaining a using right of the connection and executing one of the at least one second command by the memory storage device, wherein the step of executing one of the at least one second command comprises transmitting a tag of the one of the at least one second command from the memory storage to the host system, wherein the host system transmits a memory address corresponding to the one of the at least one second command to the storage device based on the tag of the one of the at least one second command; and
wherein when the command number is not greater than the threshold, waiting to receive a command from the host system and the using right of the connection belongs to the host system,wherein when the using right of the connection belongs to the memory storage device, the memory storage device executes one of the at least one second command and the host system does not transmit one of the at least one second command to the memory storage device;
wherein when the using right of the connection belongs to the host system, the memory storage device does not execute the received at least one second command and the host system transmit one of the at least one second command to the memory storage device.
1 Assignment
0 Petitions
Accused Products
Abstract
A controlling method, a connector, and a memory storage device are provided. The controlling method includes following steps. A connection between the memory storage device and a host system is established. A first command is received from the host system and stored into a command queue. The command queue includes at least one second command after the first command is stored into the command queue. Whether a command number of the second commands is greater than a threshold is determined. The threshold is greater than 1. If the command number is greater than the threshold, a using right of the connection is obtained and a second command is executed by the memory storage device. If the command number is not greater than the threshold, a command from the host system is waited for. The using right of the connection belongs to the host system. Thereby, the system efficiency is improved.
-
Citations
18 Claims
-
1. A controlling method for a memory storage device, the controlling method comprising:
-
establishing a connection between a host system and the memory storage device; receiving a first command from the host system and storing the first command into a command queue, wherein the command queue comprises at least one second command after the first command is stored into the command queue; determining whether a command number of the at least one second command is greater than a threshold, wherein the threshold is greater than 1; wherein when the command number is greater than the threshold, receiving one of the at least one second command from the command queue, obtaining a using right of the connection and executing one of the at least one second command by the memory storage device, wherein the step of executing one of the at least one second command comprises transmitting a tag of the one of the at least one second command from the memory storage to the host system, wherein the host system transmits a memory address corresponding to the one of the at least one second command to the storage device based on the tag of the one of the at least one second command; and wherein when the command number is not greater than the threshold, waiting to receive a command from the host system and the using right of the connection belongs to the host system, wherein when the using right of the connection belongs to the memory storage device, the memory storage device executes one of the at least one second command and the host system does not transmit one of the at least one second command to the memory storage device;
wherein when the using right of the connection belongs to the host system, the memory storage device does not execute the received at least one second command and the host system transmit one of the at least one second command to the memory storage device. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A connector, comprising:
-
a memory, configured to store a command queue; a transmission circuit, coupled to the memory, configured to establish a connection between a host system and the connector, receive a first command from the host system, and store the first command into the command queue, wherein the command queue comprises at least one second command after the first command is stored into the command queue; and a control circuit, coupled to the memory and the transmission circuit, configured to determine whether a command number of the at least one second command is greater than a threshold, wherein the threshold is greater than 1, wherein when the command number is greater than the threshold, the transmission circuit is configured to receive one of the at least one second command from the command queue and to obtain a using right of the connection, and the control circuit is configured to execute one of the at least one second command, wherein the operation that the control circuit executes one of the at least one second command comprises;
the control circuit controls the transmission circuit to transmit a tag of the one of the at least one second command from the memory storage to the host system, wherein the host system transmits a memory address corresponding to the one of the at least one second command to the transmission circuit based on the tag of the one of the at least one second command,wherein when the command number is not greater than the threshold, the transmission circuit is configured to wait to receive a command from the host system, and the using right of the connection belongs to the host system, wherein when the using right of the connection belongs to the transmission circuit, the control circuit executes one of the at least one second command and the host system does not transmit one of the at least one second command to the transmission circuit;
wherein when the using right of the connection belongs to the host system, the control circuit does not execute the received at least one second command and the host system transmit one of the at least one second command to the transmission circuit. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A memory storage device, comprising:
-
a connector, configured to couple to a host system; a rewritable non-volatile memory module, comprising a plurality of physical erasing units; and a memory controller, coupled to the connector and the rewritable non-volatile memory module, wherein the connector comprises; a memory, configured to store a command queue; a transmission circuit, coupled to the memory, configured to establish a connection between the host system and the memory storage device, receive a first command from the host system, and store the first command into the command queue, wherein the command queue comprises at least one second command after the first command is stored into the command queue; and a control circuit, coupled to the memory and the transmission circuit, configured to determine whether a command number of the at least one second command is greater than a threshold, wherein the threshold is greater than 1, wherein when the command number is greater than the threshold, the transmission circuit is configured to receive one of the at least one second command from the command queue and to obtain a using right of the connection, and the control circuit executes one of the at least one second command, wherein the operation that the control circuit executes one of the at least one second command comprises;
the control circuit controls the transmission circuit to transmit a tag of the one of the at least one second command from the memory storage device to the host system, wherein the host system transmits a memory address corresponding to the one of the at least one second command to the memory storage device based on the tag of the one of the at least one second command,wherein when the command number is not greater than the threshold, the transmission circuit is configured to wait to receive a command from the host system and the using right of the connection belongs to the host system, wherein when the using right of the connection belongs to the transmission circuit, the control circuit executes one of the at least one second command and the host system does not transmit one of the at least one second command to the transmission circuit;
wherein when the using right of the connection belongs to the host system, the control circuit does not execute the received at least one second command and the host system transmit one of the at least one second command to the transmission circuit. - View Dependent Claims (14, 15, 16, 17, 18)
-
Specification