1. Field of the Invention
The present invention relates to a USB peripheral device and an operation method of the same, particularly relates to a USB peripheral device with dynamic modification class and an operation method of the same.
2. Background of the Invention
In recent years, USB makes convenient and easy connections to communicate PC and the peripherals because of its low fare and stable adaptation. Similar to dominating protocols UART and RS-232 in the 20th century, USB is an essential standard interface in the 21st century.
A storage media for saving data develops from the magnetic disc, the optical disc to various memory cards those are for public already. These memory cards save and load data from the main system via the memory-card-record-and-read device, such as a USB memory card reader. As the communication development goes by, more and more memory card interface are provided for mobile communication technology to connect with memory card devices, such as SDIO device, MSIO device or CF+ device. These mobile communication devices can read and record the memory card and even connect with the memory card interface device via the same interface.
For the USB card readers applying for the host, connecting with the memory card interface device is necessary and desirable. The USB card reader is hosted with USB interface, unlike COM port arranged of the memory-card-record-and-read device on the mobile communication device. According to the USB specification, here are some procedures. When the USB peripheral device connects to the host, the host system goes to the “Enumeration” step to verify the where the bus connects. The USB peripheral device feeds back the “device class” per se to distinguish the class to give corresponding transmission mode. But the USB card reader and the memory card interface device represent different classes in USB specification. For example, the USB card reader connecting with the host and feeds back the device class per se, which belongs to “USB Mass Storage” class, results in the restraint on read and record for memory card. If the USB interface device is changed or is instead of other device, the host will not be informed and the device class will not be modified.
Hence, an improvement over the prior art is required to overcome the disadvantages thereof.
The primary object of the invention is therefore to specify a USB peripheral device and an operation method of the same. When a USB peripheral device connects with a basic system of processor, information about whether a card device is connected is judged first. Then, data transmission is decided, and steps of device enumeration and device class are fed back in accordance with the card device. Dynamically changing the device class corresponding to various card devices is achieved thereby.
According to the invention, the object is achieved to provide a USB peripheral device with dynamic modification class, which is connected to a basic system of processor through a USB transmission interface. The USB peripheral device includes a card connection unit receiving a card device for data transmission, and a USB microprocessor electrically connected between the USB transmission interface and the card connection unit. The card connection unit transmits a detection signal while the card device inserts. The USB microprocessor includes a signal control unit transforming serial data from the basic system of processor, a card interface module receiving the detection signal and transmitting recorded data in the card device, a central unit electrically connected between the card interface module and the signal control unit, and outputting a class code in accordance with the device class of the card device to the basic system of processor; and a pending control unit determining the USB microprocessor to go to a pending status according to a reception of the detection signal. The signal control unit goes to a shut status while the USB microprocessor goes to the pending status, and no data transmission between the USB peripheral device and basic system of processor is done.
According to the invention, the object is achieved to provide an operation method of a USB peripheral device with dynamic modification class, which is adapted for a basic system. The operation method includes steps of: judging whether the USB peripheral device connects with a card device; going to an initializing procedure via a USB microprocessor, if the USB peripheral device connects with the card device; outputting a corresponding class code to a basic system of processor according to a device class of the card device; processing recorded data between the card device and basic system of processor; and by repeating these steps for accomplishing the operation method.
To provide a further understanding of the invention, the following detailed description illustrates embodiments and examples of the invention. Examples of the more important features of the invention thus have been summarized rather broadly in order that the detailed description thereof that follows may be better understood, and in order that the contributions to the art may be appreciated. There are, of course, additional features of the invention that will be described hereinafter which will form the subject of the claims appended hereto.
These and other features, aspects, and advantages of the present invention will become better understood with regard to the following description, appended claims, and accompanying drawings, where:
With reference with
The USB peripheral device 1 includes a power control unit 40, such as a voltage transform circuit, to receive a first voltage form the basic system of processor through the USB transmission interface 30. The power control unit 40 transforms the first voltage to a second voltage and transits the second voltage to both of the USB microprocessor 10 and the card device 3 via the card connection unit 20.
Referring to
The USB microprocessor 10 includes a memory module 15, which maybe a soft program area 151 and a data caching area 152. The soft program area 151, is a Read Only Memory (ROM), stores the currency program of the USB microprocessor 10. The data caching area 152, a Random Access Memory (RAM), stores the recorded data transmitted between the basic system of processor 2 and the card device 3 for a short time. Referring
The card connection unit 20 can be a card socket having at least one slot. The card device 3 is a memory card or a memory card interface device. The memory card interface device includes SDIO card (, such as SDIO-global position system and SDIO-blue device) applied for SD interface, MSIO card applied for MS interface, or CF+ card applied for CF interface. The signal control unit 11 includes a serial interface engine 111 and a transceiver 112, in order to implement coding, decoding, error code checking and correcting, byte stuffing, and transition and transaction.
It should be apparent to those skilled in the art that the above description is only illustrative of specific embodiments and examples of the invention. The invention should therefore cover various modifications and variations made to the herein-described structure and operations of the invention, provided they fall within the scope of the invention as defined in the following appended claims.
Number | Date | Country | Kind |
---|---|---|---|
95134320 | Sep 2006 | TW | national |