Search Images Maps Play YouTube News Gmail Drive More »
Sign in
Screen reader users: click this link for accessible mode. Accessible mode has the same essential features but works better with your reader.

Patents

  1. Advanced Patent Search
Publication numberUS20090164678 A1
Publication typeApplication
Application numberUS 12/246,853
Publication dateJun 25, 2009
Filing dateOct 7, 2008
Priority dateDec 19, 2007
Also published asUS20150120964
Publication number12246853, 246853, US 2009/0164678 A1, US 2009/164678 A1, US 20090164678 A1, US 20090164678A1, US 2009164678 A1, US 2009164678A1, US-A1-20090164678, US-A1-2009164678, US2009/0164678A1, US2009/164678A1, US20090164678 A1, US20090164678A1, US2009164678 A1, US2009164678A1
InventorsChao-Yu Hu
Original AssigneeChao-Yu Hu
Export CitationBiBTeX, EndNote, RefMan
External Links: USPTO, USPTO Assignment, Espacenet
Peripheral device complying with sdio standard and method for managing sdio command
US 20090164678 A1
Abstract
The invention provides a method of managing SDIO commands. Firstly, before a first packet complying with a first SDIO data format is transmitted, an operation request is converted into a converted command. The operation request is originally set to be converted into a command complying with a SDIO command format. Then, the fist packet and the converted command are combined to generate a first combined packet. Afterward, the first combined packet is transmitted. After the first combined packet is received, the first combined packet is parsed to obtain the converted command. Finally, a processing procedure is performed according to the converted command.
Images(6)
Previous page
Next page
Claims(19)
1. A method for managing Secure Digital Input/Output (SDIO) commands, comprising steps of:
converting an operation request into a converted command;
combining a first packet with the converted command, so as to generate a first combined packet;
transmitting the first combined packet;
receiving the first combined packet;
parsing the first combined packet, so as to obtain the converted command; and
performing a processing procedure according to the converted command.
2. The method of claim 1, wherein the operation request is originally set to be converted into a command complying with an SDIO command format, the command is originally set to be transmitted, and the step of converting the operation request into the converted command is performed before the first packet is transmitted.
3. The method of claim 1, wherein the first packet complies with an SDIO data format.
4. The method of claim 1, wherein the first combined packet comprises a first header for indicating whether the first combined packet comprises the converted command.
5. The method of claim 1, wherein the converted command is a read command, and the processing procedure is a read procedure.
6. The method of claim 5, after the step of performing the processing procedure according to the converted command, further comprising steps of:
generating a return receipt;
combining a second packet with the return receipt, so as to generate a second combined packet; and
transmitting the second combined packet.
7. The method of claim 6, wherein the second packet complies with an SDIO data format.
8. The method of claim 6, wherein the second combined packet comprises a second header for indicating whether the second combined packet comprises the return receipt.
9. The method of claim 1, wherein the converted command is a write command, and the processing procedure is a write procedure.
10. A peripheral device complying with an SDIO standard and being used for receiving a packet from a host device, wherein the host device converts an operation request into a converted command, combines a first packet with the converted command to generate a first combined packet, and transmits the first combined packet to the peripheral device, the peripheral device comprising:
a receiving module for receiving the first combined packet;
a parsing module, coupled to the receiving module, for parsing the first combined packet, so as to obtain the converted command; and
a performing module, coupled to the parsing module, for performing a processing procedure according to the converted command.
11. The peripheral device of claim 10, wherein the operation request is originally set to be converted into a command complying with an SDIO command format by the host device, the command is originally set to be transmitted to the peripheral device by the host device, and the host device converts the operation request into the converted command before the first packet is transmitted.
12. The peripheral device of claim 10, further comprising a first buffer, coupled between the parsing module and the performing module, for buffering the converted command.
13. The peripheral device of claim 10, wherein the first combined packet comprises a first header for indicating whether the first combined packet comprises the converted command.
14. The peripheral device of claim 10, wherein the converted command is a read command, the processing procedure is a read procedure, and the performing module performs the read procedure to generate a return receipt, the peripheral device further comprises:
a combining module for combining a second packet with the return receipt, so as to generate a second combined packet; and
a transmitting module, coupled to the combining module, for transmitting the second combined packet to the host device.
15. The peripheral device of claim 14, further comprising a second buffer, coupled between the performing module and the combining module, for buffering the return receipt.
16. The peripheral device of claim 14, wherein the second combined packet comprises a second header for indicating whether the second combined packet comprises the return receipt.
17. The peripheral device of claim 10, wherein the converted command is a write command, and the processing procedure is a write procedure.
18. The peripheral device of claim 10, wherein an SD bus connects the peripheral device and the host device.
19. The peripheral device of claim 18, wherein the SD bus comprises a command transmission line and a data transmission line, the host device transmits the first combined packet to the peripheral device via the data transmission line.
Description
    BACKGROUND OF THE INVENTION
  • [0001]
    1. Field of the Invention
  • [0002]
    The invention relates to a peripheral device complying with Secure Digital Input/Output (SDIO) standard and a method for managing SDIO command, more particularly, to a peripheral device and method used to convert an operation request into a converted command and to transmit the converted command combined with a packet.
  • [0003]
    2. Description of the Prior Art
  • [0004]
    In a general SDIO frame, a peripheral device complying with SDIO standard is connected to a host device complying with SDIO standard. According to SDIO standard, some commands complying with SDIO command format (such as CMD52 format) are used to perform the processing procedure for reading or writing single byte. After receiving the command, the peripheral device transmits a return receipt to a host device for returning what performs the command.
  • [0005]
    However, some host devices complying with SDIO standard are based on a multiplexing mechanism. When there are some commands needed to be processed, each command is processed completely (which comprises transmitting the command and receiving the return receipt), and there is a long interval before the next command to be processed, so the processing efficiency of the command is decreased.
  • [0006]
    Please refer to FIG. 1. FIG. 1 is a schematic diagram illustrating a time interval of general SDIO system frame for processing a plurality of commands. For example, when two commands CMD1 and CMD2 complying with CMD52 format will be processed, first of all, a command CMD1 is transmitted to the peripheral device via the host device. The host device then receives the return receipt RP1 from the peripheral device which is corresponding to the command CMD1. The time of the host device transmitting the command CMD_1 to receive the return receipt RP1 is about 100 periods (T). However, due to the inherent limitation of the multiplexing mechanism, the host device transmits the command CMD2 to the peripheral device after about 10000 T. In other words, if there are more commands complying with CMD52 format needed to be processed, the interval time of processing each command is getting longer and longer, so it obviously decreases the efficiency of the SDIO system.
  • [0007]
    Therefore, the main scope of the invention is to provide a peripheral device complying with SDIO standard and a method, so as to solve the aforesaid problems.
  • SUMMARY OF THE INVENTION
  • [0008]
    A object of the present invention is to provide a peripheral device complying with SDIO standard and a method for managing the SDIO command. The present invention is used for transmitting a combined packet with a command which is originally set to be transmitted. Thereby, the invention is capable of processing with a shorter interval between commands, so as to enhance the efficiency of processing SDIO command.
  • [0009]
    According an embodiment of the invention, the method is used for managing SDIO command. Before a first packet complying with a first SDIO data format is transmitted, an operation request is converted into a converted command, wherein the operation request is originally set to be converted into the command complying with an SDIO command format, and the command is originally set to be transmitted. Further, the first packet is combined with the converted command, so as to generate a first combined packet. After that, the first combined packet is transmitted. Then, the first combined packet is received. After this, the first combined packet is parsed to obtain the converted command. Finally, a processing procedure is performed according to the converted command.
  • [0010]
    According to another embodiment of the invention, a peripheral device complies with SDIO standard and is connected to a host device complying with SDIO standard. Before the host device transmits a first packet complying with a first SDIO data format to the peripheral device, the host device converts an operation request into a converted command and combines the first packet with the converted command, so as to generate a first combined packet and then the host device transmits the first combined packet to the peripheral device. The host device is originally set to convert the operation request into the command which is complying with an SDIO command format, and then transmits the command to the peripheral device. The peripheral device comprises a receiving module, a parsing module, and a performing module. The receiving module is used for receiving the first combined packet. And the parsing module is coupled to the receiving module for parsing the first combined packet, so as to obtain the converted command. The performing module is coupled to the parsing module for performing a processing procedure based on the converted command.
  • [0011]
    According to the present invention, the peripheral device and the method for managing commands are used for transmitting the combined packet with the command which is originally set to be transmitted. Thereby, the invention is capable of processing with shorter intervals between the commands, so as to enhance the efficiency of processing SDIO command.
  • [0012]
    The advantage and spirit of the invention may be understood by the following recitations with the appended drawings.
  • BRIEF DESCRIPTION OF THE APPENDED DRAWINGS
  • [0013]
    FIG. 1 is a schematic diagram illustrating the time interval of a general SDIO system frame for processing the commands.
  • [0014]
    FIG. 2 is a functional block diagram illustrating a peripheral device according to an embodiment of the invention.
  • [0015]
    FIG. 3A is a schematic diagram illustrating the format of a first combined packet.
  • [0016]
    FIG. 3B is a schematic diagram illustrating the format of the first combined packet containing the first header in FIG. 3A.
  • [0017]
    FIG. 4A is a schematic diagram illustrating the format of a second combined packet.
  • [0018]
    FIG. 4B is a schematic diagram illustrating the format of the second combined packet containing the second header in FIG. 4A.
  • [0019]
    FIG. 5 is a flow chart showing a method for managing SDIO command according to another embodiment of the invention.
  • [0020]
    FIG. 6 is a flow chart showing the method for combing and transmitting the return receipt.
  • DETAILED DESCRIPTION OF THE INVENTION
  • [0021]
    The present invention provides a peripheral device complying with SDIO standard and a method for managing the SDIO command. And the present invention is used for transmitting a combined packet with a command which is originally set to be transmitted. Thereby, the present invention is capable of processing less time interval between commands, so as to enhance the efficiency of processing SDIO command.
  • [0022]
    Please refer to FIG. 2. FIG. 2 is a functional block chart illustrating a peripheral device 1 complying with SDIO standard according to an embodiment of the invention. In this embodiment, the peripheral device 1 complying with SDIO standard is used for receiving a packet from a host device 3. According to the present invention, an SD bus 5 connects the peripheral device 1 and the host device 3. The SD bus 5 comprises a command transmission line and a data transmission line.
  • [0023]
    In this embodiment, the host device 3 originally plans to convert the operation request into the command complying with an SDIO command format, and then transmits the command to the peripheral device 1. According to the present invention, the command is originally set to be transmitted to the peripheral device 1 by the host device 3 via the command transmission line of SD bus 5. According to the present invention, the operation request and the command complying with the SDIO command format is not limited to one, but can respectively be a plurality.
  • [0024]
    If the host device 3 originally plans to transmit a first packet complying with an SDIO data format to the peripheral device 1, before transmitting the first packet to the peripheral device 1, the host device 3 converts the operation request into a converted command. In other words, the operation that the host device 3 originally plans to convert the operation request into the command complying with the SDIO data format is replaced by the operation of converting the operation request into the converted command. Practically, before transmitting the first packet to the peripheral device 1, the host device 3 transmits a packet complying with another SDIO command format to the peripheral device 1, so as to notify the peripheral device 1 that the host device 3 will transmit the first packet.
  • [0025]
    Further, the host device 3 can combine the first packet with the converted command, so as to generate a first combined packet. It is worthy to notice that there are a plurality of the operation requests with the commands, so the converted commands also can be a plurality. In other words, the host devices 3 can combine the first packet with a plurality of converted commands, so as to generate the first combined packet. In short, the first combined packet can comprise a plurality of converted commands, so as to enhance the transmission efficiency.
  • [0026]
    Please refer to FIG. 3A. FIG. 3A is a schematic diagram illustrating the format of the first combined packet CP1. According to the present invention, the host device 3 is connected in series between the first packet P1 and the converted commands C1 through Cn, so as to generate the first combined packet CP1, as shown in FIG. 3.
  • [0027]
    Please refer to FIG. 3B. FIG. 3B is a schematic diagram illustrating the format of the first combined packet CP1 containing a first header HD1. According to the present invention, the first combined packet CP1 can comprise the first header HD1 for indicating whether the first combined packet CP1 comprises the converted commands C1 through Cn. For example, the first header HD1 can comprise a first indicating bit Ind1 for indicating whether the first combined packet CP1 comprises the converted commands C1 through Cn, as shown in FIG. 3B.
  • [0028]
    Finally, the host device 3 transmits the first combined packet to the peripheral device 1. On the other hand, the host device 3 transmits the first combined packet replaced with the first packet to the peripheral device 1, wherein the first combined packet comprises the converted command. According to the present invention, the host device 3 transmits the first combined packet to the peripheral device 1 via the data transmission line of SD bus 5.
  • [0029]
    Thereby, when there are a plurality of commands originally set to be transmitted to the peripheral device 1 via the host device 3, a plurality of converted commands can replace the commands, and then the host device 3 can transmit the converted commands with the first combined packet to the peripheral device 1. As described as in prior arts, the time interval of the host device 3 when processing a plurality of commands can decrease the processing efficiency, so the method is to replace the command with the converted command and transmit the converted command combined with the first combined packet, so as to decrease the time interval of processing plurality of commands and further enhancing the processing efficiency. As shown in FIG. 2, the peripheral device 1 comprises a receiving module 10, a parsing module 12, and a performing module 14. The parsing module 12 is coupled to the receiving module 10, and the performing module 14 is coupled to the parsing module 12.
  • [0030]
    In this embodiment, the receiving module 10 is used for receiving the first combined packet. The parsing module 12 is used for parsing the first combined packet, so as to obtain the converted command. And the performing module 14 is used for performing a processing procedure based on the converted command.
  • [0031]
    According to the present invention, the peripheral device 1 can further comprise a first buffer 16 coupled between the parsing module 12 and the performing module 14 for buffering the converted command. Practically, the first buffer 16 can be a first in first out (FIFO) buffer, but not limited to it.
  • [0032]
    According to the present invention, when the converted command is a write command, the processing procedure is a write procedure. After receiving the converted command, the performing module 14 performs the write procedure based on the converted command.
  • [0033]
    According to the present invention, when the converted command is a read command, the processing procedure is a read procedure. After the performing module 14 performs the read procedure to generate a return receipt, the peripheral device further comprises a combining module 18 and a transmitting module 20, and the transmitting module 20 is coupled to the combining module 18, as shown in FIG. 2. According to the present invention, the peripheral device 1 can further comprise a second buffer 22, which is coupled between the performing module 14 and the combining module 18, for buffering the return receipt. Practically, the second buffer 22 can be the FIFO buffer, but not to limited to it.
  • [0034]
    If the peripheral device 1 is originally set to transmit a second packet complying with a second data format to the host device 3, before transmitting the second packet, the combined module 18 can combine the second packet with the return receipt, so as to generate a second combined packet. Then the transmitting module 20 can transmit the second combined packet to the host device 3. It is worth noticing that the converted commands are plural, so the return receipts are also plural.
  • [0035]
    Please refer to FIG. 4A. FIG. 4A is a schematic diagram illustrating a format of the second combined packet CP2. According to the present invention, the host device 3 is connected in series to combine the second packet P2 with the return receipt R1 through Rn to generate the second combined packet CP2, as shown in FIG. 4.
  • [0036]
    Please refer to FIG. 4B. FIG. 4B is a schematic diagram illustrating the format of the second combined packet CP2 containing a second header HD2. According to the present invention, the second combined packet CP2 can comprise the second header HD2 for indicating whether the second combined packet CP2 comprises the return receipts R1 through Rn. For example, the second header HD2 can comprise a second indicating bit Ind2 to indicate whether the second combined packet CP2 comprises the return receipts R1 through Rn, as shown in FIG. 4B.
  • [0037]
    If the second packet is not transmitted to the host device 3 in advance, the host device 3 will immediately receive the return receipt. Then the host device 3 can selectively transmit a special read command for reading the return receipt from the second buffer 22.
  • [0038]
    According to the method of converting and combining, the summaries of commands complying with SDIO command format can be decreased, so as to decrease the time interval of processing the commands and further to enhance the system efficiency.
  • [0039]
    Please refer to FIG. 5, which is a flow chart illustrating a method for managing SDIO commands according to another embodiment of the invention. The method for managing SDIO command is shown in FIG. 5. First of all, step S10 is performed to convert an operation request into a converted command before the first packet complying with the first SDIO data format is transmitted, wherein the operation request is originally set to be converted into the command complying with an SDIO command format, and the command is originally set to be transmitted.
  • [0040]
    Further, step S12 is performed to combine the first packet with the converted command to generate the first combined packet. According to the present invention, the first combined packet comprises the first header for indicating whether the first combined packet comprises the converted command.
  • [0041]
    However, step S14 is performed to transmit the first combined packet. Further, step S16 is performed to receive the first combined packet. And further still, step S18 is performed to parse the first combined packet, so as to obtain the converted command. Finally, step S20 is performed to perform a processing procedure according to the converted command. According to the present invention, when the converted command is the write command, the processing procedure is the write procedure.
  • [0042]
    Please refer to FIG. 6, which is a flow chart illustrating the method for combining and transmitting the return receipt. According to the present invention, when the converted command is the read command, the processing procedure is the read procedure, which is performed to generate the return receipt. The method can further comprise the steps as follows. As shown in FIG. 6, first of all, step S22 is performed to combine the second packet with the return receipt to generate a second combined packet before the second packet complying with a second SDIO data format is transmitted. Finally, step S24 is performed to transmit the second combined packet. According to the present invention, the second combined packet comprises a second header for indicating whether the second combined packet comprises the return receipt.
  • [0043]
    Compared to the prior arts, according to the present invention, a peripheral device complying with SDIO standard and a method for managing SDIO command can transmit the packet combined with the command which is originally set to be transmitted. Thereby, the invention can shorten the time interval between the commands, so as to enhance the efficiency of processing SDIO command. In addition, when the command is the read command, the return receipt combined with the packet also can be transmitted, so as to enhance the processing efficiency.
  • [0044]
    With the example and explanations above, the features and spirits of the invention will be hopefully well described. Those skilled in the art will readily observe that numerous modifications and alterations of the device may be made while retaining the teaching of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.
Patent Citations
Cited PatentFiling datePublication dateApplicantTitle
US20050197017 *May 25, 2004Sep 8, 2005Super Talent Electronics Inc.Extended secure-digital (SD) devices and hosts
US20060015673 *Sep 6, 2005Jan 19, 2006Neil MorrowEnhanced protocol conversion system
US20070079044 *Oct 3, 2006Apr 5, 2007Nvidia CorporationPacket Combiner for a Packetized Bus with Dynamic Holdoff time
US20080140787 *Jan 10, 2006Jun 12, 2008Seiko Epson CorporationMonitor Control of Devices Connected to Network
US20080140878 *Dec 10, 2007Jun 12, 2008Ofer Bar-ShalomSystem and method for peripheral device communications
Referenced by
Citing PatentFiling datePublication dateApplicantTitle
US7840722 *Nov 4, 2008Nov 23, 2010Ralink Technology Corp.Method for receiving data over an SDIO interface and device using the same
US8745304 *May 26, 2010Jun 3, 2014Standard Microsystems CorporationUSB to SD bridge
US20090172202 *Nov 4, 2008Jul 2, 2009Check-Yan GohMethod for Receiving Data over an SDIO Interface and Device Using the Same
US20090300223 *May 27, 2009Dec 3, 2009Etrend Electronics, Inc.Method for communication between an electronic device and a target input/output device in a secure digital input/output card through a secure digital interface, and system for implementing the same
US20110191499 *May 26, 2010Aug 4, 2011Jonathan AnderssonUSB to SD Bridge
WO2015084728A1 *Dec 1, 2014Jun 11, 2015Micron Technology, Inc.Methods and systems for autonomous memory
Classifications
U.S. Classification710/106
International ClassificationG06F13/42
Cooperative ClassificationG06F13/42, G06F2003/0691, G06F3/061, G06F3/0659, G06F3/0673
European ClassificationG06F13/42
Legal Events
DateCodeEventDescription
Oct 7, 2008ASAssignment
Owner name: RALINK TECHNOLOGY CORPORATION,TAIWAN
Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:HU, CHAO-YU;REEL/FRAME:021644/0644
Effective date: 20080905
Jul 11, 2014ASAssignment
Owner name: MEDIATEK INC., TAIWAN
Free format text: MERGER (RESUBMISSION OF THE MISSING MERGER DOCUMENTS FOR RESPONSE TO DOC ID:502887510) EFFECTIVE DATE:04/01/2014. WE ATTACHED THE MERGER DOCUMENTS ON JULY 11,2014. PLEASE REVIEW THE FILES AND REVISE THE DATE OF RECORDATION AS JULY 11, 2014;ASSIGNOR:RALINK TECHNOLOGY CORP.;REEL/FRAME:033471/0181
Effective date: 20140401