1. Technical Field
The present invention relates to an electronic device with multiple interfaces, and particularly to an electronic device whose controller can load one of operation setting parameter groups stored in the memory corresponding to a device when the device is electrically connected to one interface of the electronic device.
2. Description of the Conventional Art
Generally speaking, a Universal Serial Bus (USB) flash drive designed for a mobile phone usually has two interfaces (e.g. one interface of the two interfaces is a Micro-B USB interface for connecting to the mobile phone, and the other interface of the two interfaces is a Type-A USB interface for connecting to a computer). However, operation parameters of the USB flash drive when the USB flash drive is electrically connected to the computer are slightly different from operation parameters of the USB flash drive when the USB flash drive is electrically connected to the mobile phone. For example, when the USB flash drive is electrically connected to the computer, the computer can accept larger current parameter; and when the USB flash drive is electrically connected to the mobile phone, the mobile phone only can accept smaller current parameter. In the prior art, the USB flash drive utilizes the same current parameter (that is, the smaller current parameter) to let the two interfaces normally operate when one of the two interfaces is electrically connected to a device (e.g. the computer or the mobile phone). Although the computer can accept the smaller current parameter, the computer may utilize lower performance to access the USB flash drive according to the smaller current parameter. Therefore, it is not a good choice for a user that the USB flash drive utilizes the same current parameter to let the two interfaces normally operate.
An embodiment provides an electronic device with multiple interfaces. The electronic device includes at least two interfaces, a memory, and a controller. The memory stores a first operation setting parameter group corresponding to a first device and a second operation setting parameter group corresponding to a second device. The controller is electrically connected to the first interface, the second interface, and the memory. When a first interface of the at least two interface is electrically connected to the first device, the controller loads the first operation setting parameter group and utilizes a first transmission protocol and the first operation setting parameter group to communicate the first device; and when a second interface of the at least two interface is electrically connected to the second device, the controller loads the second operation setting parameter group and utilizes a second transmission protocol and the second operation setting parameter group to communicate the second device.
Another embodiment provides an operation method of an electronic device with multiple interfaces, wherein the electronic device includes at least two interfaces, a memory, and a controller, and the memory stores a first operation setting parameter group corresponding to a first device and a second operation setting parameter group corresponding to a second device. The operation method includes when a first interface of the at least two interface is electrically connected to the first device, the controller loading the first operation setting parameter group; and after the controller loads the first operation setting parameter group, the controller utilizing a first transmission protocol and the first operation setting parameter group to communicate the first device.
Another embodiment provides an operation method of an electronic device with multiple interfaces, wherein the electronic device includes at least two interfaces, a memory, and a controller, and the memory stores a first operation setting parameter group corresponding to a first device and a second operation setting parameter group corresponding to a second device. The operation method includes when a second interface of the at least two interface is electrically connected to the second device, the controller loading the second operation setting parameter group; and after the controller loads the second operation setting parameter group, the controller utilizing a second transmission protocol and the second operation setting parameter group to communicate the second device.
The present invention provides an electronic device with multiple interfaces. The electronic device has advantages as follows: first, because a first interface and a second interface of the electronic device share a common power transmission path, a common data transmission path, and a controller, the electronic device can be implemented easily and only increase minor load on the controller; second, because the first interface and the second interface share the common power transmission path, the common data transmission path, and the controller, the electronic device has simpler structure; third, the present invention can be applied to any electronic device with multiple interfaces; and fourth, the controller can determine to load one of operation setting parameter groups stored in a memory corresponding to a device when the device is electrically connected to one interface of the electronic device.
These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
Please refer to
Please refer to
As shown in
In addition, in another embodiment of the present invention, the electronic device 100 further acts as a mobile power pack. When the electronic device 100 acts as the mobile power pack, the first operation setting parameter group 1062 further includes a charging voltage 5 V and a charging current 3 A, and the second operation setting parameter group 1064 further includes a charging voltage 5 V and a charging current 1 A. Therefore, When the electronic device 100 acts as the mobile power pack and the first interface 102 is electrically connected to the first device 116 (e.g. a tablet personal computer), the electronic device 100 can fast charge the first device 116 under the first operation setting parameter group 1062 (e.g. the charging voltage 5 V and the charging current 3 A); and when the electronic device 100 acts as the mobile power pack and the second interface 104 is electrically connected to the second device 118 (e.g. a mobile phone), the electronic device 100 can normally charge the second device 118 under the second operation setting parameter group 1064 (e.g. the charging voltage 5 V and the charging current 1 A). Further, when the electronic device 100 acts as the mobile power pack, the common data transmission path 114 of the electronic device 100 is optional.
Please refer to
In addition, in another embodiment of the present invention, the electronic device 400 further acts as a mobile power pack. Because operational principles of the electronic device 400 are the same as those of the electronic device 100 when the electronic device 400 acts as the mobile power pack, so further description thereof is omitted for simplicity.
Further, in another embodiment of the present invention, the interface 402 integrates a Secure Digital (SD) card interface with a Multimedia Card (MMC card) interface, so when the interface 402 is electrically connected to a Secure Digital (SD) card, the controller 108 can load a third operation setting parameter group stored in the memory 106 according to the SD card and utilize a third transmission protocol and the third operation setting parameter group to communicate the SD card, wherein the third operation setting parameter group corresponds to the SD card and the third transmission protocol corresponds to the SD card interface. Further, when the interface 402 is electrically connected to a Multimedia Card (MMC card), the controller 108 can load a fourth operation setting parameter group stored in the memory 106 according to the MMC card and utilize a fourth transmission protocol and the fourth operation setting parameter group to communicate the MMC card, wherein the fourth operation setting parameter group corresponds to the MMC card and the fourth transmission protocol corresponds to the MMC card interface.
Further, when the first operation setting parameter group 1062 is the first firmware and the second operation setting parameter group 1064 is the second firmware, the memory 106 can be a read-only memory inside the controller 108, wherein the first firmware and the firmware are stored in the read-only memory (as shown in
Further, because the controller 108 can load the first operation setting parameter group 1062 when the first interface 102 is electrically connected to the first device 116 and load the second operation setting parameter group 1064 when the second interface 104 is electrically connected to the second device 118, in another embodiment of the present invention, the controller 108 can have at least two operation cores, wherein one of the at least two operation cores operates according to the first operation setting parameter group 1062 when the first interface 102 is electrically connected to the first device 116, and another one of the at least two operation cores operates according to the second operation setting parameter group 1064 when the second interface 104 is electrically connected to the second device 118. Further, in another embodiment of the present invention, the controller 108 can have one operation core, wherein the operation core operates according to the first operation setting parameter group 1062 when the first interface 102 is electrically connected to the first device 116, and the operation core operates according to the second operation setting parameter group 1064 when the second interface 104 is electrically connected to the second device 118.
Please refer to
Step 600: Start.
Step 602: When the first interface 102 of the electronic device 100 is electrically connected to the first device 116, go to Step 604; when the second interface 104 of the electronic device 100 is electrically connected to the second device 118, go to Step 608.
Step 604: The controller 108 loads the first operation setting parameter group.
Step 606: After the controller 108 loads the first operation setting parameter group, the controller 108 utilizes a first transmission protocol and the first operation setting parameter group to communicate the first device 116.
Step 608: The controller 108 loads the second operation setting parameter group.
Step 610: After the controller 108 loads the second operation setting parameter group, the controller 108 utilizes a second transmission protocol and the second operation setting parameter group to communicate the second device 118.
In Step 604, as shown in
In Step 608, as shown in
To sum up, the electronic device has advantages as follows: first, because the first interface and the second interface share the common power transmission path, the common data transmission path, and the controller, the electronic device can be implemented easily and only increase minor load on the controller; second, because the first interface and the second interface share the common power transmission path, the common data transmission path, and the controller, the electronic device has simpler structure; third, the present invention can be applied to any electronic device with multiple interfaces; and fourth, the controller can determine to load one of operation setting parameter groups stored in the memory corresponding to a device when the device is electrically connected to one interface of the electronic device.
Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.