Detailed Description
The foregoing and other technical aspects, features and advantages of the present invention will become more apparent from the following detailed description of a preferred embodiment, which proceeds with reference to the accompanying drawings. The directional terms mentioned in the following embodiments are, for example: upper, lower, left, right, front or rear, etc., are merely references to the directions of the drawings. Thus, the directional terminology is used for purposes of illustration and is not intended to be limiting of the invention.
Fig. 1 is a schematic diagram of a power supply device according to an embodiment of the invention, please refer to fig. 1. The power supply device 100 is provided in a display device, such as a projection device or a liquid crystal display device, but is not limited thereto. Specifically, the power supply device is provided in an electronic apparatus having other main functions (for example, a display or a calculation function) (i.e., an electronic apparatus whose main function is not a charging function). The power supply device 100 may include a power supply circuit 102, a current detection circuit 104, and a determination circuit 106, wherein the determination circuit 106 is coupled to the power supply circuit 102 and the current detection circuit 104, and the determination circuit 106 may be selectively coupled to an electronic device 108. The power supply circuit 102 may supply power (e.g., power supply includes providing power or charging) to the electronic device 108 coupled to the power supply device 100, wherein the electronic device 108 may be connected to the power supply device 100 through a connector (e.g., a universal serial bus port, but not limited thereto), and the power supply circuit 102 pre-supplies power, supplies power or charges the electronic device 108 through a power line (e.g., one of the pins connected to the connector). The current detection circuit 104 can detect the connection current I1 (pre-power) provided by the power supply circuit 102 to the electronic device 100, and determine whether the connection current I1 is greater than a preset current. The current detection circuit 104, for example, transmits the determination result to the determination circuit 106. The determining circuit 106 may control the power supply device 100 to enter a power supply mode according with the charging specification of the electronic device 108 when the connection current I1 is greater than the preset current, for example, provide the power supply current to the electronic device 108, and control the power supply device 100 to enter the control mode when the connection current I1 is not greater than the preset current. Specifically, the current detection circuit 104 may determine whether the electronic device 108 is powered. In the power supply mode, the determining circuit 106 may determine the charging specification of the electronic device 108, and output a mode detection signal to the electronic device 108 according to the charging specification of the electronic device 108, where the electronic device 108 may determine whether the power supply device 100 may supply power to the electronic device 108 according to the mode detection signal, and the mode detection signal may include, for example, but not limited to, a positive data signal and a negative data signal provided by a positive data signal pin (d+) and a negative data signal pin (D-) of the universal serial bus interface. In addition, in the control mode, the power supply device 100 may stop supplying power to the electronic device 108, and the electronic device 108 may control the display device to display, for example, the electronic device 108 is a media playing apparatus, and the display device is a projection device, for example, the electronic device 108 may transmit display data to a display control unit for projection control in the projection device through the universal serial bus port, so that the projection device projects according to the display data. In other embodiments, the power supply device 100 may supply (or charge) and control the electronic device 108 at the same time.
Therefore, the judging circuit 106 controls the power supply device 100 to enter the power supply mode or the control mode according to the comparison result of the connection current I1 and the preset current, and provides the corresponding mode detection signal after confirming the charging specification of the electronic device 108, so that the power supply device 100 can provide a power supply conforming to the charging specification of the electronic device 108 when the electronic device 108 has a charging demand, and the compatibility problem of the display device when the display device supplies power to the electronic device connected with the power supply device is effectively solved.
Further, an embodiment of the power supply device 100 may be as shown in fig. 2. In the embodiment of fig. 2, the current detection circuit 104 may include a resistor R0 and a detection circuit 202, wherein the resistor R0 is disposed on a power supply path of the power supply circuit 102 (e.g. connected to one of pins of the connector, such as 5V pin), and the detection circuit 202 may obtain a current value of the connection current I1 by detecting a voltage signal across the resistor R0 and determine whether the connection current I1 is greater than a predetermined current. The determination circuit 106 may include a switching circuit 204, a mode detection signal generation circuit 206, and optionally a control circuit 208, wherein the switching circuit 204 is coupled to the detection circuit 202, the power supply circuit 102, the mode detection signal generation circuit 206, the control circuit 208, and the electronic device 108. The switching circuit 204 may switch the mode detection signal generating circuit 206 or the control circuit 208 to connect to the electronic device 108 according to the determination result of the detecting circuit 202, so that the power supply device 100 enters the power supply mode or the control mode. The mode detection signal generating circuit 206 is used for providing a plurality of detection signals.
For example, when the connection current I1 is greater than the preset current, the switching circuit 204 switches the mode detection signal generating circuit 206 to connect to the electronic device 108, and switches and selects one of the plurality of detection signals provided by the mode detection signal generating circuit 206 as the mode detection signal to transmit to the electronic device 108 in response to the charging specification of the electronic device 108, and the electronic device 108 can determine that the power supply device 100 is a device capable of supplying power according to the mode detection signal. For example, when the connection current I1 is not greater than the preset current, the switching circuit 204 switches the control circuit 208 to the electronic device 108, so that the control circuit 208 can receive the display data from the electronic device 108 through the switching circuit 204 and control the display device to display according to the display data.
Fig. 3 is a schematic view of a power supply device according to another embodiment of the invention. In this embodiment, the determining circuit 106 may further include a processing circuit 302, the switching circuit 204 is coupled to the power supply circuit 102, the processing circuit 302, the mode detection signal generating circuit 206, the control circuit 208 and the electronic device 108, and the processing circuit 302 is coupled to the detecting circuit 202 of the current detecting circuit 104.
The processing circuit 302 may be, for example, a Microcontroller (MCU) or a system on a chip (SoC), and may control the switching circuit 204 to switch the electronic device 108 to the mode detection signal generating circuit 206 or the control circuit 208 according to the detection result of the current detection circuit 104, so as to switch and select the detection signal provided by the mode detection signal generating circuit 206 as the mode detection signal and transmit the mode detection signal to the electronic device 108, or transmit the display data provided by the electronic device 108 to the control circuit 208. In addition, in the present embodiment, the processing circuit 302 may store charging specification information (for example, the charging specification and the detection signal corresponding to the device information) and the processing circuit 302 may receive the device information of the electronic device 108 through the switching circuit 204 and compare the device information with the stored charging specification information, so as to determine the charging specification of the electronic device 108.
In detail, when the processing circuit 302 receives the device information of the electronic device 108 and the processing circuit 302 stores the charging specification information corresponding to the charging specification of the electronic device 108, the processing circuit 302 determines the charging specification of the electronic device 108, and the processing circuit 302 can control the switching circuit 204 to switch the corresponding mode detection signals (e.g. the positive data signal and the negative data signal corresponding to the charging specification of the electronic device 108 provided by the positive data signal pin and the negative data signal pin) to the electronic device 108 according to the charging specification of the electronic device 108. For example, if the electronic device 108 is an IPhone phone, the charging specification is as follows: when the charging voltage/current is 5V/1A, the voltage of the positive data signal pin is required to be 2V, and the voltage of the negative data signal pin is required to be 2.7V; the voltage of the positive data signal pin is required to be 2.7V and the voltage of the negative data signal pin is required to be 2V when the charging voltage/current is 5V/2A. By means of the timely switching mode detection signal of the power supply device 100 of the present invention, the power supply circuit 102 can perform full-speed charging for the IPhone mobile phone, rather than performing general charging only in a reduced-scale manner. If the electronic device 108 is a Samsung mobile phone, the charging specification of the Samsung mobile phone is as follows: when the charging voltage/current is 5V/2A, the voltages of the positive data signal pin and the negative data signal pin are required to be 1.2V, and the power supply device 100 of the present invention can also switch the mode detection signal timely to perform the optimal charging (e.g. full-speed charging). Specifically, the power supply device 100 of the present disclosure can supply power to the electronic device 108 with different charging specifications.
When the processing circuit 302 receives the device information of the electronic device 108 and the processing circuit 302 does not store the charging specification information corresponding to the charging specification of the electronic device 108, the processing circuit 302 may control the switching circuit 204 to short-circuit the positive data signal pin and the negative data signal pin of the connector, for example, when the electronic device 108 is ChromeCast Dongle, the charging specification of the USB BC1.2 is used, and the charging specification of the USB BC1.2 is required to be short-circuit between the positive data signal pin and the negative data signal pin. In some embodiments, the processing circuit 302 may also obtain updated information of the charging specification information through a network, so as to ensure that the charging specification information stored in the processing circuit 302 may correspond to various types of electronic devices 108, and further may provide corresponding mode detection signals.
Further, fig. 4 is a schematic diagram of a switching circuit and a mode detection signal generating circuit according to an embodiment of the invention. Referring to fig. 3 and 4, the switching circuit 204 may include switches SW1 to SW4, the mode detection signal generating circuit 206 may include capacitors C1 and C2 and resistors R1 to R3, the first terminal of the switch SW1 is coupled to the positive data signal pin d+, the first terminal of the switch SW2 is coupled to the negative data signal pin D-, the capacitor C1 is coupled between the second terminal of the switch SW1 and ground, the capacitor C2 is coupled between the second terminal of the switch SW2 and ground, the resistor R1 is coupled to the second terminal of the switch SW1, the resistor R2 is coupled to the second terminal of the switch SW2, the first terminal of the switch SW3 is coupled to the positive data signal pin d+, the first terminal of the switch SW4 is coupled to the negative data signal pin D-, and the resistor R3 is coupled between the second terminal of the switch SW3 and the second terminal of the switch SW 4. When the processing circuit 302 has the charging specification information stored in the storage device corresponding to the charging specification of the electronic device 108, the processing circuit 302 can control the switches SW1 and SW2 to be turned on and control the switches SW3 and SW4 to be turned off, and adjust the duty ratio of the PWM signals PWM1 and PWM2 (the adjustable voltage signals) respectively connected to the resistors R1 and R2, so that the second ends of the switches SW1 and SW2 respectively generate the voltage levels (i.e. the mode detection signals) corresponding to the charging specification of the electronic device 108. Specifically, the plurality of detection signals may be generated by adjusting the adjustable voltage signals (e.g., pulse width modulation signals PWM1, PWM 2).
In some embodiments, the duty ratio of the PWM signals PWM1 and PWM2 may be adjusted to generate the voltage logic level signal to provide the 2-bit signal to the positive data signal pin D+ and the negative data signal pin D-, e.g., by providing the voltages on the positive data signal pin D+ and the negative data signal pin D-at high or low levels to provide the signals with states of "00", "01", "10", or "11". Thus, the mode detection signals corresponding to different charging specifications are provided by controlling the duty ratio of the pulse width modulation signals PWM1 and PWM2, and the consumption of electronic parts and the design cost can be effectively reduced. In other embodiments, the switches SW1 and SW2 may be coupled to the voltage dividing circuit instead of the capacitor, and the divided voltage may be provided as the mode detection signal by controlling the operating voltage connected to the voltage dividing circuit. In yet another embodiment, the second ends of the switches SW1 and SW2 may be directly connected to different operating voltages, and the operating voltages are controlled to serve as the mode detection signal, and the implementation of the mode detection signal generating circuit 206 is not limited to the embodiment of fig. 4. In other embodiments, the number of switches of the switching circuit 204 is not limited to 4, and in particular, the number of switches of the switching circuit 204 may be greater than 4, so as to provide a plurality of detection signals (e.g., a fixed voltage) to meet the requirements of the mode detection signals, for example, a portion of the switches may have their second ends floating or grounded.
In addition, when the processing circuit 302 does not store the charging specification information corresponding to the charging specification of the electronic device 108, the processing circuit 302 may control the switches SW1 and SW2 to be turned off and control the switches SW3 and SW4 to be turned on, so that when the electronic device 108 is ChromeCast Dongle, the resistor R3 may output the feedback signal as the mode detection signal to the electronic device 108 in response to the test signal provided by the electronic device 108, so that the electronic device 108 receives the power provided by the power supply circuit.
Fig. 5 is a flowchart of a power supply judging method of a power supply device according to an embodiment of the invention, where the power supply device is disposed on a display device and is used for supplying power to an electronic device coupled to the power supply device, and the power supply device includes a power supply circuit, a current detection circuit and a judging circuit. As can be seen from the above embodiments, the power supply judging method of the power supply device may include the following steps. Firstly, the current detection circuit detects the connection current provided to the electronic device (step S502), and then the current detection circuit judges whether the connection current is greater than a preset current (step S504). If the connection current is greater than the preset current, the power supply device is controlled to enter a power supply mode conforming to the charging specification of the electronic device (step S506), and if the connection current is not greater than the preset current, the power supply device is controlled to enter a control mode controlled by the electronic device to control the display device to display (step S508). In the power supply mode, the judging circuit can output a mode detection signal to the electronic device according to the charging specification of the electronic device, and the electronic device can judge whether the power supply device can supply power according to the mode detection signal. Furthermore, the judging circuit may include a switching circuit and a mode detection signal generating circuit, wherein the mode detection signal generating circuit may provide a plurality of detection signals, the switching circuit may switch one of the plurality of detection signals as a mode detection signal corresponding to a charging specification of the electronic device, wherein the plurality of detection signals may be, for example, an adjustable voltage signal controlled by a pulse width modulation signal, and a voltage level thereof may be adjusted corresponding to the charging specification of the electronic device.
In some embodiments, the judging circuit may further include a processing circuit, and the processing circuit may control the switching circuit to switch the electronic device to be connected to the mode detection signal generating circuit or the control circuit for controlling the display device according to the detection result of the current detecting circuit, so as to enter the power supply mode or the control mode. In addition, as shown in fig. 6, after step S506, the processing circuit may receive the device information of the electronic device through the switching circuit, and compare the device information with the charging specification information stored in the processing circuit to confirm the charging specification of the electronic device (step S602). When the processing circuit stores the charging specification information corresponding to the charging specification of the electronic device, the processing circuit may control the switching circuit and the mode detection signal generating circuit to provide a mode detection signal corresponding to the charging specification of the electronic device, for example, may control the switching circuit to switch one of the plurality of detection signals provided by the mode detection signal generating circuit as the mode detection signal, so as to perform charging according to the charging specification of the device information of the corresponding electronic device (step S604). In addition, the control circuit may control the display device to display the charging state in the power supply mode (step S606), for example, to display whether the charging or the power percentage is completed, or to display related warning information when the electronic device cannot be powered. In addition, when the processing circuit does not store the charging specification information corresponding to the charging specification of the electronic device, the processing circuit can control the power supply device to enter a preset mode (for example, enter a power supply mode for USB BC1.2, control the switching circuit to short-circuit the positive data signal pin and the negative data signal pin of the connector (for example, the USB port), but not limited thereto), and update the charging specification information through the network or the external device (step S608).
In summary, the judging circuit according to the embodiment of the invention can control the power supply device to enter the power supply mode conforming to the charging specification of the electronic device in response to the connection current provided by the power supply circuit to the electronic device being greater than the preset current, and control the power supply device to enter the control mode controlled by the electronic device to control the display device to display in response to the connection current provided by the power supply circuit to the electronic device not being greater than the preset current, so that the problem of compatibility of the display device when the display device supplies power to the electronic device connected with the power supply circuit can be effectively solved.
The foregoing description is only illustrative of the preferred embodiments of the present invention and is not intended to limit the scope of the invention, i.e., all simple and equivalent changes and modifications that come within the meaning and range of equivalency of the claims and specification are therefore intended to be embraced therein. Further, not all objects or advantages or features of the present disclosure are required to be achieved by any one embodiment or claim of the present invention. Furthermore, the abstract and the title of the invention are provided solely for the purpose of facilitating patent document retrieval and are not intended to limit the scope of the claims. The first and second … and the like mentioned in the specification are only for denoting the names of the elements, and are not intended to limit the upper or lower limit of the number of the elements.