# Patent

## Title
Electronic devices and fool-proof methods

## Abstract

An electronic device having a fool-proof feature is provided, including a first magnet, an output terminal, a hall sensor and a power supply unit. The first magnet generates a magnetic field. The output terminal is disposed in the range of the magnetic field and is mated with an input terminal of a second electronic device. The hall sensor generates a hall voltage according to the magnetic field. The power supply unit is coupled to the output terminal and provides power to the output terminal according a control signal outputted from the hall sensor, in which the hall sensor outputs the control signal when the output terminal is coupled to the input terminal and the hall voltage exceeds a specific voltage, such that the power supply unit provides power to the output terminal according to the control signal, and the second electronic device receives power from the output terminal.

## Background
CROSS REFERENCE TO RELATED APPLICATIONS
This Application claims priority of Taiwan Patent Application No. 100134296, filed on Sep. 23, 2011, the entirety of which is incorporated by reference herein.
BACKGROUND OF THE INVENTION
1. Field of the Invention
The present invention relates to electronic devices, and in particular relates to electronic devices having fool-proof features.
2. Description of the Related Art
Recently, computers and networks make many innovative functions which are more effective. New peripheral devices, such as internet units and external storage unites, can easily be connected to computers or notebooks. However, there are various kinds of peripheral devices, and the plug of the electronic device is often connected to the plug seat in an incorrect manner, such that the electronic device is burnt out after providing power thereto. Therefore, there is a need for an electronic device and a fool-proof method to prevent burnout of the electronic device.
BRIEF SUMMARY OF THE INVENTION
In light of the previously described problems, the invention provides an embodiment of an electronic device having a fool-proof feature, comprising: a first magnet, an output terminal, a hall sensor and a power supply unit. The first magnet generates a magnetic field. The output terminal is disposed in the range of the magnetic field and is mated with an input terminal of a second electronic device. The hall sensor generates a hall voltage according to the magnetic field. The power supply unit is coupled to the output terminal in order to provide power to the output terminal according to a control signal outputted from the hall sensor, in which the hall sensor outputs the control signal when the output terminal is coupled to the input terminal and the hall voltage exceeds a specific voltage, such that the power supply unit provides power to the output terminal according to the control signal, and the second electronic device receives power from the output terminal.
The invention also provides a fool-proof method suitable for a first electronic device and a second electronic device. The fool-proof method comprises the steps of: generating a hall voltage in a hall sensor according to a magnetic field of a first magnet of the first electronic device; determining whether the hall voltage exceeds a specific voltage when an output terminal of the first electronic device is coupled to an input terminal of the second electronic device; and providing power to the output terminal according to a control signal outputted from the hall sensor when the output terminal is coupled to the input terminal and the hall voltage exceeds the specific voltage, such that the second device receives power from the output terminal.
A detailed description is given in the following embodiments with reference to the accompanying drawings.



BRIEF DESCRIPTION OF THE DRAWINGS
The present invention can be more fully understood by reading the subsequent detailed description and examples with references made to the accompanying drawings, wherein:
FIG. 1 illustrates a schematic view of the electronic device of the disclosure;
FIG. 2 illustrates another schematic view of the electronic device of the disclosure;
FIG. 3 illustrates another schematic view of the electronic device of the disclosure;
FIG. 4 illustrates another schematic view of the electronic device of the disclosure;
FIG. 5 illustrates a schematic view of the hall sensor of the disclosure;
FIG. 6 illustrates another schematic view of the hall sensor of the disclosure;
FIG. 7 illustrates a timing chart of the hall voltage of the disclosure;
FIG. 8 illustrates another timing chart of the hall voltage of the disclosure; and
FIG. 9 illustrates a flowchart of the fool-proof method of the disclosure.



DETAILED DESCRIPTION OF THE INVENTION
FIG. 1 illustrates a schematic view of the electronic device of the disclosure. As shown in FIG. 1, an electronic device 110 includes magnets 111 and 115, an output terminal 112, a hall sensor 113 (and/or a hall sensor 116) and a power supply unit 114. The magnets 111 and 115 generate magnetic fields. In the embodiment, the magnets 111 and 115 are disposed in two symmetrical sides of the output terminal 112, respectively.
The output terminal 112 is disposed in the range of the magnetic field of the magnet 111, and mated with an input terminal 122 of another electronic device 120. For example, the output terminal 112 can be a female connector and the input terminal 122 can be a male connector. The female connector is mated with the male connector. The hall sensor 113 can be disposed on the magnet 111 in order to generate a hall voltage according to the magnetic field of the magnet 111. In some embodiments, the hall sensor 113 can be disposed on the magnet 115, or the electronic device 110 includes another hall sensor 116 disposed on the magnet 115. The power supply unit 114 is coupled to the output terminal 112. When the output terminal 112 is coupled to the input terminal 122, the power supply unit 114 provides power to the output terminal 112 selectively, such that the input terminal 122 receives power from the output terminal 112. Therefore, the power supply unit 114 can have a switching unit to provide power to the output terminal 112 selectively.
FIG. 2 illustrates another schematic view of the electronic device of the disclosure. As shown in FIG. 2, the magnet 111 has surfaces F11 and F12, and the magnet 115 has surfaces F21 and F22. The surfaces F11 and F21 are disposed on the external housing surface 117. The polarities of the surfaces F11 and F21 are opposite, and the polarities of the surfaces F12 and F22 are opposite. In the other electronic device 120, the magnet 121 has surfaces F31 and F32, and the magnet 125 has surfaces F41 and F42. The surfaces F31 and F41 are disposed on the external housing surface 127. The polarities of the surfaces F31 and F41 are opposite, and the polarities of the surfaces F32 and F42 are opposite.
FIG. 3 illustrates another schematic view of the electronic device of the disclosure. FIG. 3 is similar to FIG. 2. The difference is that the surfaces F12 and F22 are both disposed on the internal housing surface 118. In the other electronic device 120, the surfaces F32 and F42 are both disposed on the internal housing surface 128. Note that the magnets 111, 115, 121 and 125 touch the housing surface (e.g., internal housing surface 118 or 128) in FIGS. 3 and 4. In some embodiments, there is spacing between the magnets 111, 115, 121 and 125 and the housing surface (e.g., internal housing surface 118 or 128).
In this embodiment, the magnets 121 and 125 attract the magnets 111 and 115 respectively when the output terminal 112 is coupled to the input terminal 122 normally, such that the magnets 121, 125, 111 and 115 generate the maximum magnetic fields on the hall sensor 113. On the contrary, the magnets 121, 125, 111 and 115 do not generate the maximum magnetic fields on the hall sensor 113 when the output terminal 112 is coupled to the input terminal 122 abnormally.
In detail, the switching unit of the power supply unit 114 is operating an open circuit state when the output terminal 112 is coupled to the input terminal 122 and the hall voltage exceeds the specific voltage, such that the power supply unit 114 can provide power to the output terminal 112. Therefore, the electronic device 120 can receive power from the output terminal 112. In the embodiment, the power supply unit 114 provides power to the output terminal 112 only when the output terminal 112 is coupled to the input terminal 122 and the hall voltage has exceeded the specific voltage for a predetermined period. In other words, only when the output terminal 112 is coupled to the input terminal 122 stably, the power supply unit 114 provides power to the output terminal 112.
When the hall voltage is below the specific voltage, the power supply unit 114 provides no power to the output terminal 112 or stops providing power to the output terminal 112, thereby preventing the electronic devices 110 or 120 from being damaged when the output terminal 112 is coupled to the input terminal 122 abnormally and the power supply unit 114 provides power to the input terminal 122 (the output terminal 112) at the same time.
FIG. 4 illustrates another schematic view of the electronic device of the disclosure. The electronic device 130 includes the magnets 111, 115, 121 and 125, the output terminal 112, input terminal 122, the hall sensor 113 and the power supply unit 114. The arrangement of the magnets shown in FIG. 4 is the same as that of the same magnets shown in FIG. 3, and thus, is omitted for brevity. In some embodiments, the arrangement of the magnets shown in FIG. 4 can be the same as that of the same magnets shown in FIG. 2. As shown in FIG. 4, the electronic device 130 includes all features (structures) of the electronic devices 110 and 120.
FIG. 5 illustrates a schematic view of the hall sensor of the disclosure. As shown in FIG. 5, the magnet 121 increases (enhances) the amount of the magnetic field MF when the output terminal 112 is coupled to the input terminal 122 normally, such that the hall voltage VH exceeds the specific voltage. When the hall voltage VH has exceeded the specific voltage for the predetermined period, the hall sensor 113 outputs the control signal to the power supply unit 114, such that the power supply unit 114 provides power to the output terminal 112 according to the control signal.
FIG. 6 illustrates another schematic view of the hall sensor of the disclosure. As shown in FIG. 6, the magnet 125 decreases amount of the magnetic field MF when the output terminal 112 is coupled to the input terminal 122 abnormally, such that the hall voltage VH cannot be increased to the specific voltage. Therefore, the hall sensor 113 is unable to output the control signal to the power supply unit 114, so that the power supply unit 114 is unable to provide power to the output terminal 112.
FIG. 7 illustrates a timing chart of the hall voltage of the disclosure. As shown in FIG. 7, at time point t0, the hall sensor 113 generates the hall voltage VH according to the magnetic field MF. At this moment, amount of the hall voltage VH is the voltage VR. At time point t1, the output terminal 112 is coupled to the input terminal 122 correctly, such that the magnet 121 increases the hall voltage VH. At time point t2, the hall voltage VH exceeds a specific voltage VD, in which the specific voltage VD is above the voltage VR. When the process goes through a predetermined period to the time point t3 and the hall voltage VH still exceeds the specific voltage VD, the hall sensor 113 outputs the control signal to the power supply unit 114, such that the power supply unit 114 provides power to the output terminal 112 according to the control signal.
FIG. 8 illustrates another timing chart of the hall voltage of the disclosure. As shown in FIG. 8, at time point t1, the magnet 125 can decreases the amount of the magnetic field MF when the output terminal 112 is coupled to the input terminal 122 abnormally (incorrectly), such that the hall voltage is unable to be increased. At time point t2, the hall voltage VH drops below the voltage VL, in which the voltage VR is above the voltage VL. Therefore, the hall sensor 113 cannot output a control signal to the power supply unit 114, such that the power supply unit 114 is unable to provide power to the output terminal 112.
FIG. 9 illustrates a flowchart of the fool-proof method of the disclosure. As shown in FIG. 9, in step S91, the hall voltage VH is generated according to the magnet 111 of the electronic device 110 (and/or the magnetic field MF of the magnet 115). In step S92, it is determined whether the hall voltage VH exceeds the specific voltage VD when the output terminal 112 of the electronic device 110 is coupled to the input terminal 122 of the electronic device 120. In step S93, power is provided to the output terminal 112 according to the control signal outputted from the hall sensor 113 when the output terminal 112 is coupled to the input terminal 122 and the hall voltage VH exceeds the specific voltage VD, such that the electronic device 120 receives power from the output terminal 112. In step S94, no power is provided to the output terminal 112 when the hall voltage VH does not exceed the specific voltage VD, such that the electronic device 120 receives no power from the output terminal 112.
The electronic device and the fool-proof method of the disclosure can determine whether the electronic device 110 is electrically connected to the electronic device 120 in a correct way, in order to prevent partial components of the electronic device 120 from being damaged or being burnt out when the electronic device 110 is electrically connected to the electronic device 120 with an incorrect way. Therefore, the electronic device and the fool-proof method of the disclosure can protect the electronic device 120 effectively.
The foregoing has outlined features of several embodiments so that those skilled in the art may better understand the detailed description that follows. Those skilled in the art should appreciate that they may readily use the present disclosure as a basis for designing or modifying other processes and structures for carrying out the same purposes and/or achieving the same advantages of the embodiments introduced herein. Those skilled in the art should also realize that such equivalent constructions do not depart from the spirit and scope of the present disclosure, and that they may make various changes, substitutions and alterations herein without departing from the spirit and scope of the present disclosure.

## Claims

1. An electronic device having a fool-proof feature, comprising:
a first magnet, generating a magnetic field;
an output terminal, disposed in the range of the magnetic field and mated with an input terminal of a second electronic device, wherein the input terminal and the output terminal are detachable;
a hall sensor, generating a hall voltage according to the magnetic field; and
a power supply unit, coupled to the output terminal in order to provide power to the output terminal according to a control signal outputted from the hall sensor,
wherein the hall sensor outputs the control signal when the output terminal is coupled to the input terminal and the hall voltage exceeds a specific voltage, such that the power supply unit provides power to the output terminal according to the control signal, and the second electronic device receives power from the output terminal, wherein the hall sensor stops outputting the control signal when the hall voltage does not exceed the specific voltage, such that the power supply unit is unable to provide power to the output terminal, wherein a second magnet of the second electronic device increases the hall voltage to the specific voltage when the output terminal is coupled to the input terminal correctly, such that the hall sensor outputs the control signal, and the power supply unit provides power to the output terminal according to the control signal.

2. The electronic device as claimed in claim 1, wherein the hall sensor outputs the control signal when the hall voltage has exceeded the specific voltage for a predetermined period.

3. The electronic device as claimed in claim 1, wherein the first magnet is repelled by a third magnet of the second electronic device and the third magnet decreases the hall voltage when the input terminal is connected to the output terminal abnormally, such that the hall sensor stops outputting the control signal.

4. The electronic device as claimed in claim 1, wherein the hall sensor is disposed on the first magnet.

5. The electronic device as claimed in claim 1, wherein the input terminal is a male connector and the output terminal is a female connector.

6. The electronic device as claimed in claim 1, wherein the second magnet of the second electronic device attracts the first magnet, and the hall sensor generates the hall voltage according to the magnetic field between the first magnet and the second magnet.

7. A fool-proof method, suitable for a first electronic device and a second electronic device, comprising:
generating a hall voltage in a hall sensor according to a magnetic field of a first magnet of the first electronic device;
determining whether the hall voltage exceeds a specific voltage when an output terminal of the first electronic device is coupled to an input terminal of the second electronic device, wherein the input terminal and the output terminal are detachable;
providing power to the output terminal according to a control signal outputted from the hall sensor when the output terminal is coupled to the input terminal and the hall voltage exceeds the specific voltage, such that the second electronic device receives power from the output terminal; and
stopping the providing of power to the output terminal when the hall voltage does not exceed the specific voltage, such that the second electronic device receives no power from the output terminal,
wherein a second magnet of the second electronic device increases the hall voltage to the specific voltage when the input terminal is coupled to the output terminal normally, such that the hall sensor outputs the control signal, thereby a power supply unit of the first electronic device provides power to the output terminal according to the control signal.

8. The fool-proof method as claimed in claim 7, wherein the hall sensor outputs the control signal when the hall voltage has exceeded the specific voltage for a predetermined period.

9. The fool-proof method as claimed in claim 7, wherein the first magnet is repelled by a third magnet of the second electronic device and the third magnet decreases the hall voltage when the output terminal is connected to the input terminal abnormally, such that the hall sensor stops outputting the control signal.

10. The fool-proof method as claimed in claim 7, wherein the hall sensor is disposed on the first magnet.

11. The fool-proof method as claimed in claim 7, wherein the input terminal is a male connector and the output terminal is a female connector.

12. The fool-proof method as claimed in claim 7, wherein the second magnet of the second electronic device attracts the first magnet, and the hall sensor generates the hall voltage according to the magnetic field between the first magnet and the second magnet.