Abstract:
An internet device and an automatic switching method, apparatus and circuit for a charging interface of an internet device are disclosed. The device includes a device charging interface ( 20 ), a dock charging interface ( 30 ), a charging loop ( 40 ) and an automatic switching apparatus ( 10 ) for a charging interface. The method includes: when external power supply is connected into the device (S 001 ), judging whether a dock charging interface a the device is in place (S 002 ), if so, isolating a device charging interface of the device and at the same time, connecting a charging loop of the device through a dock charging interface of the device (S 003 ); otherwise, isolating the dock charging loop of the device and at the same time, connecting the charging loop of the device through the device charging interface of the device (S 004 ). The device is convenient to implement and has the advantages of reliable performance and low cost.

Description:
TECHNICAL FIELD 
       [0001]    The disclosure relates to an internet device and an automatic switching technology for a charging interface of an internet device, in particular to an internet device, and an automatic switching method, apparatus and circuit for a charging interface of an internet device. 
       BACKGROUND 
       [0002]    With the popularization of the handheld internet devices, it becomes a trend to provide the handheld internet devices with various charging ways. For example, a dock charging interface is further integrated on the Dock of a handheld internet device besides a device charging interface (generally a Micro USB (Universal Serial Bus) interface) provided by the handheld internet device. Whereas, the handheld internet device is generally provided with only one charging loop, so a method of avoiding simultaneous use of multiple charging ways by structure is generally adopted in the conventional solution, namely, a user cannot use the device charging interface when the handheld internet device is placed on the dock, or, the dock is connected with the charging loop to avoid the problem of two power supplies. In this case, if the default charging interface of the handheld internet device is defined as the device charging interface, the user experience will be affected. For example, both iPAD of Apple and LePAD of Lenovo adopt the later to solve such a problem. At present, such a problem is basically solved by software, but there will be some risks, this is because much interference will be caused to the logic of the handheld internet device when the two charging interfaces coexist. 
       SUMMARY 
       [0003]    The disclosure provides an internet device and an automatic switching method, apparatus and circuit for a charging interface of an internet device, so as to avoid interference generated during the charging of the internet device. 
         [0004]    The disclosure provides an automatic switching method for a charging interface of an internet device, including: 
         [0005]    when external power supply is connected into a device, judging whether a dock charging interface of the device is in place, if the dock charging interface of the device is in place, isolating a device charging interface of the device and at the same time, connecting a charging loop of the device through the dock charging interface of the device; otherwise isolating a dock charging loop of the device and at the same time, connecting the charging loop of the device through the device charging interface of the device. 
         [0006]    Preferably, before judging whether the dock charging interface of the device is in place, the automatic switching method further includes: 
         [0007]    detecting whether the external power supply is connected into the device. 
         [0008]    The disclosure also provides an automatic switching apparatus for a charging interface of an internet device, the automatic switching apparatus includes a detection module and a switching module, wherein 
         [0009]    the detection module is configured to, when external power supply is connected into a device, judge whether a dock charging interface of the device is in place and send a judgment result to the switching module; and 
         [0010]    the switching module is configured to, when the dock charging interface of the device is in place, isolate a device charging interface of the device and at the same time, connect a charging loop of the device through the dock charging interface of the device; or, when the dock charging interface of the device is not in place, isolate the dock charging interface of the device and at the same time, connect the charging loop of the device through the device charging interface of the device. 
         [0011]    Preferably, the detection module is further configured to detect whether the external power supply is connected into the device. 
         [0012]    The disclosure also provides an internet device, including a device charging interface, a dock charging interface and a charging loop, further including an automatic switching apparatus for a charging interface, wherein the automatic switching apparatus for the charging interface includes a detection module and a switching module, wherein 
         [0013]    the detection module is configured to, when external power supply is connected into the device, judge whether the dock charging interface is in place and send a judgment result to the switching module; and 
         [0014]    the switching module is configured to, when the dock charging interface is in place, isolate the device charging interface and at the same time, connect the charging loop through the dock charging interface; or, when the dock charging interface is not in place, isolate the dock charging interface and at the same time, connect the charging loop through the device charging interface. 
         [0015]    Preferably, the detection module is further configured to detect whether the external power supply is connected into the device. 
         [0016]    The disclosure also provides an automatic switching circuit for a charging interface of an internet device, the automatic switching circuit includes a first diode, a second diode, a first resistor, a second resistor, a third resistor, a phase inverter, a first P Metal Oxide Semiconductor Field Effect Transistor (PMOSFET), a second PMOSFET and a third PMOSFET, wherein 
         [0017]    the anode of the first diode is connected with one end of the second resistor, the gate of the first PMOSFET and the drain of the second PMOSFET respectively; the cathode of the first diode is connected with one end of the first resistor; the other end of the first resistor is connected with the cathode of the second diode and the source of the first PMOSFET respectively; the drain of the first PMOSFET is connected with one end of the third resistor, the input end of the phase inverter and the gate of the second PMOSFET respectively; the output end of the phase inverter is connected with the gate of the third PMOSFET; the other end of the second resistor and the other end of the third resistor are grounded; and the anode of the second diode is connected with the drain of the third PMOSFET. 
         [0018]    The disclosure also provides an internet device, including a device charging interface, a dock charging interface and a charging loop, further including an automatic switching circuit for a charging interface, wherein the automatic switching circuit includes a first diode, a second diode, a first resistor, a second resistor, a third resistor, a phase inverter, a first P Metal Oxide Semiconductor Field Effect Transistor (PMOSFET), a second PMOSFET and a third PMOSFET, wherein 
         [0019]    the anode of the first diode is connected with the dock charging interface, one end of the second resistor, the gate of the first PMOSFET and the drain of the second PMOSFET respectively; the cathode of the first diode is connected with one end of the first resistor; the other end of the first resistor is connected with the cathode of the second diode and the source of the first PMOSFET respectively; the drain of the first PMOSFET is connected with one end of the third resistor, the input end of the phase inverter and the gate of the second PMOSFET respectively; the output end of the phase inverter is connected with the gate of the third PMOSFET; the other end of the second resistor and the other end of the third resistor are grounded; the anode of the second diode is connected with the device charging interface and the drain of the third PMOSFET respectively; and the source of the second PMOSFET and the source of the third PMOSFET are connected with the input end of the charging loop. 
         [0020]    According to the disclosure, a stand charger is preferred for charging and the other unused charging interface is isolated, so that the handheld internet device can select one charging way as required while avoiding interference from the other charging way. The internet device is reliable in performance, low in cost and convenient to be implemented, and its charging safety can be ensured without software. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0021]    Drawings, provided for further understanding of the disclosure and forming a part of the specification, are used to explain the disclosure together with embodiments of the disclosure rather than to limit the disclosure, wherein: 
           [0022]      FIG. 1  is a diagram showing the flow of an automatic switching method for a charging interface of an internet device in an embodiment of the disclosure; 
           [0023]      FIG. 2  is a block diagram showing the principle of an automatic switching apparatus for a charging interface of an internet device in an embodiment of the disclosure; 
           [0024]      FIG. 3  is a block diagram showing the principle based on the internet device in  FIG. 2  in an embodiment of the disclosure; 
           [0025]      FIG. 4  is a diagram showing the principle of an automatic switching circuit for a charging interface of an internet device in an embodiment of the disclosure; and 
           [0026]      FIG. 5  is a block diagram showing the principle based on the internet device in  FIG. 4  in an embodiment of the disclosure. 
       
    
    
     DETAILED DESCRIPTION OF THE EMBODIMENTS 
       [0027]    To make the technical problem to be solved by the disclosure, the technical solution and the beneficial effects more clear, the disclosure is further described below with reference to the drawings and embodiments in detail. It should be understood that the specific embodiments herein are only intended to explain the disclosure instead of limiting the disclosure. 
         [0028]    As shown in  FIG. 1 , which is a diagram showing the flow of an automatic switching method for a charging interface of an internet device in an embodiment of the disclosure, the embodiment includes the following steps. 
         [0029]    Step S 001 : It is detected that external power supply is connected into the internet device. 
         [0030]    Step S 002 : It is judged whether a dock charging interface of a device is in place, if so, executing Step S 003 , otherwise, executing Step S 004 . 
         [0031]    In the embodiment of the disclosure, dock power supply is preferred as charging power supply. Since the dock itself is defined for charging the internet device and can provide a larger charging current than the device charging interface, the charging efficiency can be improved. Furthermore, when the dock charging interface is not in place, the device charging interface is connected automatically to meet the charging function when the dock charging interface is not in place. 
         [0032]    Step S 003 : The device charging interface is isolated, and at the same time, a charging loop of the device is connected through the dock charging interface to charge the internet device. 
         [0033]    Step S 004 : The dock charging loop is isolated, and at the same time, the charging loop of the device is connected through the device charging interface to charge the internet device. 
         [0034]    As shown in  FIG. 2 , which is a block diagram showing the principle of an automatic switching apparatus for a charging interface of an internet device in an embodiment of the disclosure, in the embodiment, the automatic switching apparatus  10  for a charging interface of the internet device includes a detection module  101  and a switching module  102 , wherein 
         [0035]    the detection module  101  is configured to detect whether external power supply is connected into the device, if the external power supply is connected into the device, judge whether a dock charging interface of the device is in place and send a judgment result to the switching module  102 ; and 
         [0036]    the switching module  102  is configured to, when the dock charging interface of the device is in place, isolate a device charging interface of the device and at the same time, connect a charging loop of the device by the dock charging interface of the device; or, when the dock charging interface of the device is not in place, isolate the dock charging interface of the device and at the same time, connect the charging loop of the device by the device charging interface of the device. 
         [0037]    As shown in  FIG. 3 , which is a block diagram showing the principle based on the internet device in  FIG. 2  in an embodiment of the disclosure, in the embodiment, the internet device includes a device charging interface  20 , a dock charging interface  30 , an automatic switching apparatus  10  for a charging interface and a charging loop  40 , wherein the automatic switching apparatus  10  for a charging interface is connected with the device charging interface  20 , the dock charging interface  30  and the charging loop  40  respectively and includes a detection module  101  and a switching module  102 ; 
         [0038]    the detection module  101  is configured to detect whether external power supply is connected into the device, if the external power supply is connected into the device, judge whether the dock charging interface  30  is in place and send a judgment result to the switching module  102 ; and 
         [0039]    the switching module  102  is configured to, when the dock charging interface  30  is in place, isolate the device charging interface  20  and at the same time, connect the charging loop  40  through the dock charging interface  30 ; or, when the dock charging interface  30  is not in place, isolate the dock charging interface  30  and connect the charging loop  40  through the device charging interface  20 . 
         [0040]    As shown in  FIG. 4 , which is a diagram showing the principle of an automatic switching circuit for a charging interface of an internet device in an embodiment of the disclosure, in the embodiment, an automatic switching circuit  50  for a charging interface of an internet device includes a first diode D 1 , a second diode D 2 , a first resistor R 1 , a second resistor R 2 , a third resistor R 3 , a phase inverter D 3 , a first PMOSFET P 1 , a second PMOSFET P 2  and a third PMOSFET P 3 . The first diode D 1  and the second diode D 2  are mainly configured to isolate power. The first resistor R 1  is configured to limit current; and the second resistor R 2  and the third resistor R 3  are configured to provide a signal default state. The phase inverter D 3  is configured to control signal logic inversion. The first PMOSFET P 1  is configured to generate a logic control signal; the second PMOSFET P 2  is configured to control the connection/disconnection of the dock charging interface; and the third PMOSFET P 3  is configured to control the connection/disconnection of the device charging interface. 
         [0041]    The anode of the first diode D 1  is connected with one end of the second resistor R 2 , the gate (G) of the first PMOSFET P 1  and the drain (D) of the second PMOSFET P 2  respectively; the cathode of the first diode D 1  is connected with one end of the first resistor R 1  of which the other end is connected with the cathode of the second diode D 2  and the source (S) of the first PMOSFET P 1  respectively; the drain of the first PMOSFET P 1  is connected with one end of the third resistor R 3 , the input end of the phase inverter D 3  and the gate of the second PMOSFET P 2  respectively; the output end of the phase inverter D 3  is connected with the gate of the third PMOSFET P 3 ; the other ends of both the second resistor R 2  and the third resistor R 3  are grounded; and the anode of the second diode D 2  is connected with the drain of the third PMOSFET P 3 . 
         [0042]    As shown in  FIG. 5 , which is a block diagram showing the principle based on the internet device in  FIG. 4  in an embodiment of the disclosure, in the embodiment, the internet device includes a device charging interface  20 , a dock charging interface  30 , an automatic switching circuit  50  and a charging loop  40 , wherein the automatic switching circuit  50  for the charging interface is connected with the device charging interface  20 , the dock charging interface  30  and the charging loop  40  respectively and includes a first diode D 1 , a second diode D 2 , a first resistor R 1 , a second resistor R 2 , a third resistor R 3 , a phase inverter D 3 , a first PMOSFET P 1 , a second PMOSFET P 2  and a third PMOSFET P 3 , wherein the anode of the first diode D 1  is connected with the dock charging interface  30 , one end of the second resistor R 2 , the gate of the first PMOSFET P 1  and the drain of the second PMOSFET P 2  respectively; the cathode of the first diode D 1  is connected with one end of the first resistor R 1  of which the other end is connected with the cathode of the second diode D 2  and the source of the first PMOSFET P 1  respectively; the drain of the first PMOSFET P 1  is connected with one end of the third resistor R 3 , the input end of the phase inverter D 3  and the gate of the second PMOSFET P 2  respectively; the output end of the phase inverter D 3  is connected with the gate of the third PMOSFET P 3 ; the other ends of both the second resistor R 2  and the third resistor R 3  are grounded; the anode of the second diode D 2  is connected with the device charging interface  20  and the drain of the third PMOSFET P 3  respectively; and the sources of the second PMOSFET P 2  and the third PMOSFET P 3  are connected with the charging loop  40 . 
         [0043]    The working process of the automatic switching circuit  50  for the charging interface is further described below according to whether the charging interfaces are in place. 
         [0044]    1) When both the dock charging interface  30  and the device charging interface  20  are not in place, the outputs of the automatic switching circuit  50  for the charging interface are at low level, which has no effect on the charging loop, therefore this state can be neglected. 
         [0045]    2) When the dock charging interface  30  is in place while the device charging interface  20  is not in place, due to the isolation effect of the first diode D 1  and the second diode D 2 , there is no voltage difference between the gate and source of the first PMOSFET P 1 , so the first PMOSFET P 1  is cut off, the drain output of the first PMOSFET P 1  is controlled to be low by the second resistor R 2 . There is voltage difference between the gate and the source of the second PMOSFET P 2  under the effect of the body diode of the second PMOSFET P 2 , the second PMOSFET P 2  is turned on and the dock charging interface  30  is connected with the charging loop  40 . Under the inversion effect of the phase inverter D 3 , the third PMOSFET P 3  is cut off, so the dock charging interface  30  is isolated from the device charging interface  20  and the interference caused by the mutual interference between two power supplies to the system software function of the device is avoided. 
         [0046]    3) When the dock charging interface  30  is not in place while the device charging interface  20  is in place, due to the isolation effect of the first diode D 1  and the second diode D 2 , there is voltage difference between the gate and the source of the first PMOSFET P 1 , the first PMOSFET P 1  is turned on and the drain output of the first PMOSFET P 1  is controlled to be high by the second resistor R 2 . Under the inversion effect of the phase inverter D 3  and the action of the body diode of the third PMOSFET P 3 , the third PMOSFET P 3  is turned on, the device charging interface  20  is connected with the charging loop  40 , and the charging loop  40  is connected. Because the output of the first PMOSFET P 1  is high and the PMOSFET P 2  is cut off, the dock charging interface  30  is isolated from the device charging interface  20  and the interference caused by the mutual interference between two power supplies to the system software function of the device is avoided. 
         [0047]    4) When both the dock charging interface  30  and the device charging interface  20  are in place, under the effect of the first diode D 1 , the second diode D 2  and the first resistor R 1 , the dock charging interface  30  at the gate of the first PMOSFET P 1  is isolated from the device charging interface  20  at the source of the first PMOSFET P 1 , thereby causing no effect therebetween. In this case, there is no voltage difference between the gate and source of the first PMOSFET P 1 , so the first PMOSFET P 1  is cut off, the drain output of the first PMOSFET P 1  is controlled to be low by the second resistor R 2 . There is voltage difference between the gate and source of the second PMOSFET P 2  under the effect of the body diode of the second PMOSFET P 2 , therefore the second PMOSFET P 2  is turned on, the dock charging interface  30  is connected with the charging loop  40  and the charging loop  40  is connected. Under the inversion effect of the phase inverter D 3 , the third PMOSFET P 3  is cut off, so the dock charging interface  30  is isolated from the device charging interface  20  and the interference caused by the mutual interference between two power supplies to the system software function of the device is avoided. 
         [0048]    What described above describes the preferred embodiments of the disclosure. However, as shown above, it should be understood that the disclosure is not limited to the form disclosed here and shall not be regarded as the exclusion of other embodiments, so that it can be applied to various other combinations, modifications and environments and can be modified by the instruction above or the technology or knowledge in the related fields within the concept scope of the disclosure. But the change and variation made by those skilled in the art within the scope of the disclosure shall be within the scope of protection of the claims of the disclosure.