1. Field of the Invention
The present invention relates to a portable storage device and more particularly, to an universal serial bus (USB) access device with selectable modes.
2. Description of Related Art
With the advance of electronic technology, the size of portable electronic devices, for instances, digital cameras, MP3 players, PDA, etc., is becoming smaller and lighter while their ability of processing digital information has grown tremendously beyond imagination. General speaking, transferring or accessing data between portable devices and computers can be achieved via internet or diskettes; however, due to their limited capacity and lack of portability, diskettes have been gradually taken over by portable storage devices for data accessing, such as a flash disk. Such portable storage devices can process in data transfer by inserting directly into an electronic device.
Flash disks nowadays commonly utilize USB interface as their mean for transfer. Also, it is rather convenient to transfer image data from digital cameras to computers by simply turning on the cameras and connecting them together with USB cables. Further applications such as viewing, editing or printing images can be just as easy following the steps mentioned above. Until now the USB interface of flash disks or digital cameras is set as slave mode as their default configuration, and the ones of the electronic devices, such as personal computers, in contrast are set as master mode as default. Because these default configurations inevitably hinder the flexibility of utilizing USB interface, it is desired to provide an USB access device with selectable modes to increase its adaptability.
The present invention has been accomplished under the circumstances in view. It is therefore the main object of the present invention to provide an USB access device with selectable modes wherein the master and slave mode could be switched from one to another.
To achieve this and other objects of the present invention, the USB access device with selectable modes comprising in accordance with the present invention includes: an USB interface unit adapted for connecting to an electronic device; an USB controller connected to a functional module and further connected to the USB interface unit; and a manual switch connected to the USB controller, for switching the USB controller to either master or slave mode, wherein when the manual switch switches the USB controller to operate in the master mode, the USB controller is set to execute a master-mode driver, and when the manual switch switches the USB controller to operate in the slave mode, the USB controller is set to execute a slave-mode driver.
The USB interface unit 2 is provided for connection to an electronic device 6, which can be a printer, a computer device, a cellular phone, or a digital camera, while the USB interface unit 2 can be an USB connector according to this embodiment. The USB controller 4 is connected to both the function module 3 and the USB interface unit 2 respectively; the manual switch 5 is connected to the USB controller 4 and thus can manually select the modes.
The manual switch 5 is designed to switch the USB controller 4 to operate either in master or in slave mode. When the manual switch 5 switches to master mode, the USB controller thereof 4 will then execute a master-mode driver; when the manual switch 5 switches to slave mode, the USB controller thereof 4 will then execute a slave-mode driver.
Also with reference to
In view of the foregoing, it shall be known that the present invention utilizes a manual switch 5 to set the mode of USB interface to be in either master or slave. Under the master mode, the USB controller is set to execute a master-mode driver whereas under slave mode the USB controller is set to execute a master-mode driver, consequently enabling the USB access device to be set in either master or slave mode and as a result making the utilization of USB interface unconstrained.
Although the present invention has been explained in relation to its preferred embodiment, it is to be understood that many other possible modifications and variations can be made without departing from the spirit and scope of the invention as hereinafter claimed.
Number | Date | Country | Kind |
---|---|---|---|
093219535 | Dec 2004 | TW | national |