Power switching systems, USB sockets and electronic devices

By designing a power supply switching system in a USB socket, switching is achieved when multiple USB interfaces are powered simultaneously, solving the problems of current backflow and poor power supply stability, ensuring normal power supply of the equipment.

CN113535622BActive Publication Date: 2024-12-10ZHEJIANG DAHUA TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110625414.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-04
Publication Date
2024-12-10
Estimated Expiration
2041-06-04

AI Technical Summary

Technical Problem

Existing USB sockets are prone to voltage differences when multiple USB ports are powered simultaneously, resulting in poor current backflow and power supply stability, and cannot effectively block the power supply of the secondary USB port.

Method used

A power supply switching system is designed, which is connected to the power switching switch through the first interface and the second interface respectively. When both are connected to the external device, the first interface sends a control signal to the power switching switch and disconnects the second interface. Power supply, realize switching of power supply mode, avoid current backflow, and improve power supply stability.

Benefits of technology

It effectively avoids the current backflow caused by the interface voltage difference, ensures the normal power supply of the equipment, and improves the power supply stability of the USB socket.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113535622B_ABST
    Figure CN113535622B_ABST
Patent Text Reader

Abstract

The present application relates to a power supply switching system, a USB socket and an electronic device, the system comprising a first interface, a second interface, a first power switching switch, a second power switching switch and a charging module, wherein the first interface is connected to the first power switching switch; the second interface is connected to the second power switching switch; the first power switching switch and the second power switching switch are both connected to the charging module; the first power switching switch is electrically connected to the second power switching switch; when the first interface and the second interface are both connected to an external device, the first interface sends a first control signal to the first power switching switch; the first power switching switch sends a second control signal to the second power switching switch according to the received first control signal; the second power switching switch disconnects from the second interface according to the second control signal. Through the present application, the current backflow caused by the interface voltage difference when both interfaces are connected to external devices can be effectively avoided, thereby improving the power supply stability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of USB sockets, and in particular to a power supply switching system of a USB socket, a USB socket and an electronic device. Background Art

[0002] Universal Serial Bus (USB) is a serial bus standard for connecting computer systems and external devices. It is also a technical specification for input and output interfaces. It is widely used in electronic devices in related fields such as personal computers, photographic equipment, digital TVs (set-top boxes), game consoles, etc. The USB interface installed on electronic devices can not only be connected to external devices for charging, but also for data transmission.

[0003] When the USB socket in the electronic device includes at least two USB interfaces, when one of the main USB interfaces is in use, the other secondary USB interface cannot be blocked. The existing method can only realize the logical switching of data, and there are situations where at least two USB interfaces are powered at the same time. When multiple USB interfaces are powered at the same time, there is a voltage difference between the interfaces, which is easy to cause current backflow and poor stability. Summary of the invention

[0004] The embodiments of the present application provide a power supply switching system for a USB socket, a USB socket, and an electronic device, so as to at least solve the problem of unstable data transmission when at least two USB interfaces are powered simultaneously in the related art.

[0005] In a first aspect, an embodiment of the present application provides a power supply switching system, including a first interface, a second interface, a first power supply switching switch, a second power supply switching switch, and a charging module, wherein:

[0006] The first interface is connected to the first power switch; the second interface is connected to the second power switch; the first power switch and the second power switch are both connected to the charging module; the first power switch is electrically connected to the second power switch;

[0007] When both the first interface and the second interface are connected to external devices, the first interface sends a first control signal to the first power switch;

[0008] The first power switch sends a second control signal to the second power switch according to the received first control signal;

[0009] The second power switch disconnects from the second interface according to the second control signal, and the first interface is connected to the charging module through the first power switch for power supply.

[0010] In some embodiments, when and only when the first interface is connected to an external device, the first interface sends a first control signal to the first power switch;

[0011] When the first power switch receives the first control signal, detecting whether a third control signal is received;

[0012] If so, the first interface supplies power to the charging module through the first power switch.

[0013] In some of the embodiments, the power supply switching system further includes: a control module, the control module being connected to the first power supply switching switch, the second power supply switching switch, the second interface and the charging module;

[0014] When and only when the second interface is connected to an external device, the control module detects an OTG signal provided by the external device;

[0015] When the control module does not receive the OTG signal, the second power switch detects whether a fourth control signal is received;

[0016] If so, the second interface supplies power to the charging module through the second power switch.

[0017] In some of the embodiments, when and only when the second interface is connected to an OTG device, the control module detects an OTG signal provided by the OTG device;

[0018] When the control module receives the OTG signal, the control module sends a fifth control signal to the second power switch to switch the second power switch to a reverse conduction state;

[0019] The control module controls the charging module to enter the OTG mode;

[0020] The charging module supplies power to the OTG device through the second power switch.

[0021] In some embodiments, the first interface is connected to a first data switch and a second data switch, and the second interface is connected to the first data switch and the second data switch.

[0022] When and only when the first interface is connected to an external device, the first interface sends a first control signal to the first data switching switch;

[0023] The first data switching switch cuts off the connection with the second interface and switches the connection to the first interface according to the received first control signal.

[0024] In some embodiments, the first interface is connected to a first data switch and a second data switch, and the second interface is connected to the first data switch and the second data switch.

[0025] When both the first interface and the second interface are connected to external devices, the first interface sends a first control signal to the first data switching switch and the second data switching switch;

[0026] The first data switching switch cuts off the connection with the second interface and switches the connection to the first interface according to the received first control signal.

[0027] The second data switching switch cuts off the connection with the second interface according to the received first control signal.

[0028] In some embodiments, when and only when the second interface is connected to an external device, the first data switching switch and the second data switching switch are respectively connected to the second interface, so that the external device communicates data with the control module through the second interface.

[0029] In some embodiments, the first interface is a USB interface, and the second interface is a MicroUSB interface.

[0030] In a second aspect, the present application provides a USB socket, comprising the power supply switching system as described in the first aspect above.

[0031] In a third aspect, an embodiment of the present application provides an electronic device, comprising the USB socket as described in the second aspect above.

[0032] Compared with the related art, the power supply switching system of the USB socket, the USB socket and the electronic device provided in the embodiment of the present application realize the switching of the power supply mode when both interfaces are connected to external devices by: when the first interface and the second interface are both connected to external devices, the first interface sends a first control signal to the first power switching switch; the first power switching switch sends a second control signal to the second power switching switch according to the received first control signal; the second power switching switch disconnects from the second interface according to the second control signal, thereby effectively avoiding the current backflow caused by the interface voltage difference when both interfaces are connected to external devices, improving the power supply stability, and ensuring the normal power supply of the device.

[0033] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0035] Figure 1 This is a schematic diagram of the structure of a power supply switching system in one of the embodiments of the present application;

[0036] Figure 2 is a structural schematic diagram of a power supply switching system in another embodiment of the present application;

[0037] Figure 3 is a structural schematic diagram of a power supply switching system in another embodiment of the present application;

[0038] Figure 4 is a structural schematic diagram of a power supply switching system in another embodiment of the present application;

[0039] Figure 5 It is a control flow diagram of a power supply switching method in one of the embodiments of the present application. DETAILED DESCRIPTION

[0040] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0041] Obviously, the drawings described below are only some examples or embodiments of the present application. For ordinary technicians in this field, the present application can also be applied to other similar scenarios based on these drawings without creative work. In addition, it can also be understood that although the efforts made in this development process may be complicated and lengthy, for ordinary technicians in this field related to the content disclosed in this application, some changes in design, manufacturing or production based on the technical content disclosed in this application are just conventional technical means, and should not be understood as insufficient content disclosed in this application.

[0042] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those of ordinary skill in the art that the embodiments described in this application may be combined with other embodiments without conflict.

[0043] Unless otherwise defined, the technical terms or scientific terms involved in this application should be understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the" and the like involved in this application do not indicate a quantitative limitation, and may represent the singular or plural. The terms "include", "comprise", "have" and any of their variations involved in this application are intended to cover non-exclusive inclusions; for example, a process, method, system, product or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units that are not listed, or may also include other steps or units inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, "A and / or B" can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects before and after are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.

[0044] The USB socket is a safe and energy-saving universal socket with a USB interface, and is a weak-current electronic product. The USB socket usually includes a shell, a base fixed in the shell, and a USB interface extending outward. The main features of the USB interface include: hot-swappable function; the interface can be expanded in the form of a daisy chain; the USB socket contains a charger module, and the output end of the charger module is connected to the USB interface, so that general peripherals can be charged through the USB. The USB socket is highly practical and easy to promote and use.

[0045] This embodiment provides a power supply switching system. The power supply switching system can be integrated in a USB socket or an electronic device having a USB socket, and this application does not make specific limitations. The electronic device can not only be connected to an external device for charging, but also be connected to an external device for data transmission through the USB socket installed thereon.

[0046] Figure 1 is a control principle block diagram of the power supply switching system provided in the embodiment of the present application. Figure 1As shown, the power supply switching system includes a first interface, a second interface, a first power switch, a second power switch and a charging module. The first interface is connected to the first power switch; the second interface is connected to the second power switch; the first power switch and the second power switch are both connected to the charging module; the first power switch is electrically connected to the second power switch.

[0047] In some embodiments, the first interface and the second interface are both USB interfaces; in other embodiments, the first interface and the second interface may both be Microusb interfaces; in other embodiments, the first interface is a USB interface and the second interface is a Microusb interface; or the first interface is a Microusb interface and the second interface is a USB interface. Among them, the USB interface may be a USB TPYE-C interface, a USB TPYE-A interface, etc. It can be understood that the first interface and the second interface may also be a two-pin or three-pin power jack, a network interface, a TV interface, a telephone interface, etc., and the number may be one or more, and this application does not make specific restrictions here. Among them, the priority order of interface power supply and / or communication can be set, so that the interface communication and power supply are controlled according to the priority order.

[0048] The charging module may be a capacitor storage device, such as a battery and a super capacitor.

[0049] The first power switch and the second power switch are used to switch the connection state between the corresponding external device and the charging module according to the control signal, such as a single-pole double-set switch, a transistor (such as a field-effect transistor or a bipolar junction transistor). In some embodiments, the first power switch and the second power switch can be selected from MOS tubes. Of course, the first power switch and the second power switch can select different types of MOS tubes, for example, the first power switch uses an N-channel MOS tube, and the second power switch uses a P-channel MOS tube, etc. As long as the controllable switch can realize the function of switching the connection state with the charging module in the embodiment of the present application, it should belong to the protection scope of the present application.

[0050] Those skilled in the art will understand that Figure 1 The power supply switching system structure shown in the figure does not constitute a limitation on the power supply switching system, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0051] Next, the first interface is used as the priority for interface communication and power supply. Figure 1 A detailed introduction to the power supply switching system:

[0052] In some embodiments, when both the first interface and the second interface are connected to external devices, the first interface sends a first control signal to the first power switch; the first power switch sends a second control signal to the second power switch based on the received first control signal; and the second power switch disconnects from the second interface based on the second control signal.

[0053] In this embodiment, the first interface is used as the priority for interface power supply, that is, when the first interface and the second interface are connected to an external device at the same time, the first interface is used as the main power supply, and the power supply of the second interface is cut off. Specifically, whether the corresponding interface is connected for power supply can be controlled by controlling the on and off of the first power switching switch and the second power switching switch. When power supply is required for the external device, the switch corresponding to the external device is connected, and when power supply is not required for the external device, the switch corresponding to the external device is disconnected. More specifically, the first control signal and the second control signal can be level signals, and the first power switching switch and the second power switching switch use the changes of high and low level signals to control their own conduction states.

[0054] In a specific implementation, the first interface is a USB interface, the second interface is a Microusb interface, the USB interface is connected to the first power switch, and the Microusb interface is connected to the second power switch. When the USB interface and the Microusb interface are connected to an external device at the same time, the USB interface provides a first control level to the first power switch; after the first power switch receives the first control level, it sends a second control level to the second power switch. At this time, the second power switch disconnects from the second interface according to the second control level, so that the path between the external device and the charging module is disconnected, and the first interface is connected to the charging module through the first power switch for power supply. In this embodiment, the first control signal can be a low-level signal, and the second control signal is a high-level signal; of course, the first control signal can also be a high-level signal, and the second control signal can be a low-level signal, which is not limited in this embodiment.

[0055] Of course, in other implementations, the second interface may be used as a priority for interface communication and power supply. The priority order may be custom configured according to the interface settings in actual applications and is not limited here.

[0056] In summary, the power supply switching system of the USB socket provided in the embodiment of the present application realizes the switching of power supply modes when both interfaces are connected to external devices by: when the first interface and the second interface are both connected to external devices, the first interface sends a first control signal to the first power switching switch; the first power switching switch sends a second control signal to the second power switching switch according to the received first control signal; the second power switching switch disconnects from the second interface according to the second control signal, thereby effectively avoiding the current backflow caused by the interface voltage difference when both interfaces are connected to external devices, improving the power supply stability, and ensuring the normal power supply of the device.

[0057] like Figure 2 As shown, based on the above embodiments, in some embodiments, when and only when the first interface is connected to an external device, the first interface sends a first control signal to the first power switching switch; when the first power switching switch receives the first control signal, it detects whether a third control signal is received; if so, the first interface supplies power to the charging module through the first power switching switch.

[0058] In this embodiment, when and only when the first interface is connected to an external device, the charging module can be connected to supply power by controlling the first power switching switch. In a specific implementation, the first control signal may be a level signal, and the third control signal may be a VBUS signal provided by the external device. When and only when the first interface is connected to an external device, the first power switching switch uses the change of high and low level signals to control its own conduction state, and when the first power switching switch receives the first control level, it detects whether the VBUS signal provided by the external device is received; when the VBUS signal is detected, the first interface is connected to the charging module through the first power switching switch to supply power to the charging module.

[0059] like Figure 3 As shown, based on the above embodiments, in some of the embodiments, the power supply switching system further includes: a control module, wherein the control module is connected to the first power switching switch, the second power switching switch, the second interface and the charging module.

[0060] In this embodiment, when and only when the second interface is connected to an external device, the control module detects the OTG signal provided by the external device; when the control module does not receive the OTG signal, the second power switching switch detects whether a fourth control signal is received; if so, the second interface supplies power to the charging module through the second power switching switch.

[0061] In this embodiment, the OTG device refers to an external device with OTG function. OTG (On-The-Go, data transmission between devices without a host) technology is mainly used to connect various different devices, that is, to achieve data transmission between slave devices without a master device. It can change the various different standard connectors between devices such as digital cameras, video cameras, printers, etc.

[0062] In a specific implementation, the second interface is a Microusb interface as an example for explanation: when detecting an OTG device, according to the USB interface protocol, if the OTG function needs to be supported, the identification (ID) detection pin inside the USB interface needs to be set to a high level by default. Since the ID detection pin of the USB interface is always at a high level, when the Microusb interface is connected to the OTG device, after the control module detects the OTG signal provided by the external device, the voltage is at a low level. At this time, the control module detects that an OTG device is inserted into the Microusb interface. On the contrary, when the control module does not receive the OTG signal, the control module detects that the OTG device is not inserted into the Microusb interface. At this time, it is detected whether the fourth control signal (such as a VBUS signal) provided by the external device is received; when the VBUS signal is detected, the Microusb interface is connected to the charging module through the second power switch to supply power to the charging module.

[0063] The control module may be a chip with data processing function, such as a single chip microcomputer.

[0064] Based on the above embodiments, in some of the embodiments, when and only when the second interface is connected to the OTG device, the control module detects the OTG signal provided by the OTG device; when the control module receives the OTG signal, it sends a fifth control signal to the second power switch to switch the second power switch to a reverse conduction state; the control module controls the charging module to enter the OTG mode; and the charging module supplies power to the OTG device through the second power switch.

[0065] In this embodiment, when the control module detects the OTG signal provided by the OTG device, it determines that the Microusb interface is plugged into the OTG device, and at this time the control module sends a fifth control signal to the second power switch to switch the second power switch to the on state. At the same time, the charging module is controlled to enter the OTG mode through I2C; the charging module supplies power to the OTG device through the second power switch.

[0066] like Figure 4As shown, based on the above embodiments, in some embodiments, the first interface is connected to a first data switching switch and a second data switching switch, and the second interface is connected to the first data switching switch and the second data switching switch. When and only when the first interface is connected to an external device, the data switching process is: the first interface sends a first control signal to the first data switching switch; the first data switching switch cuts off the connection with the second interface according to the received first control signal, and switches to the first interface.

[0067] In this embodiment, the communication link connection can be controlled by controlling the on and off of the first data switching switch and the second data switching switch. The first data switching switch and the second data switching switch are existing devices, and the data channel is selected by controlling the connection state of the pins, which is not described in detail in this application. More specifically, the first control signal and the second control signal can be level signals, and the first data switching switch and the second data switching switch use the changes of high and low level signals to control their own conduction states.

[0068] In a specific embodiment, each of the first interface and the second interface has at least 5 pins, including a VBUS pin, a DM pin, a DP pin, an ID pin and a GND pin. When and only when the first interface is connected to an external device, the first interface provides a first control level to the first data switching switch. After receiving the first control level, the first data switching switch cuts off the connection with the DM2 pin and the DP2 pin of the second interface, and switches the connection to the DM1 pin and the DP1 pin of the first interface, using the first interface as a data communication interface. At the same time, the ID2 pin of the second interface is switched to a suspended state to ensure that the external device will not be mistakenly identified as an OTG device when connected.

[0069] Based on the above embodiments, in some of the embodiments, the first interface is connected to a first data switching switch and a second data switching switch, the second interface is connected to the first data switching switch and the second data switching switch, and when the first interface and the second interface are both connected to external devices, the data switching process is: the first interface sends a first control signal to the first data switching switch and the second data switching switch; the first data switching switch cuts off the connection with the second interface and switches to the first interface according to the received first control signal; the second data switching switch cuts off the connection with the second interface according to the received first control signal.

[0070] In this embodiment, when both the first interface and the second interface are connected to an external device, the first interface is used as a priority for interface communication, and the communication connection between the control module and the second interface is cut off. Specifically, the first interface provides a first control level to the first data switching switch. After receiving the first control level, the first data switching switch cuts off the connection with the DM2 pin and the DP2 pin of the second interface, and switches the connection to the DM1 pin and the DP1 pin of the first interface, using the first interface as a data communication interface. After receiving the first control level, the second data switching switch cuts off the connection with the DM2 pin and the DP2 pin of the second interface, which can ensure that when an external device is inserted, the hardware connection channel between the second interface and the control module is completely cut off, and the first interface and the control module communicate data. Thereby, the data transmission switching between the two communication interfaces is realized, and it is ensured that when two external devices are inserted at the same time, the simultaneous transmission of data can be effectively avoided to cause data errors, and the stability of the data transmission process is ensured.

[0071] Based on the above embodiments, in some of the embodiments, when and only when the second interface is connected to an external device, the data switching process is: the first data switching switch and the second data switching switch are respectively connected to the second interface, so that the external device communicates data with the control module through the second interface.

[0072] In this embodiment, the data switching process when and only when the second interface is connected to an external device is the same as the control principle when and only when the first interface is connected to an external device. For a brief description, reference may be made to the relevant contents of the above embodiments, and this application will not repeat them here. It can be understood that in other embodiments, the default hardware configuration can be set so that the first data switching switch and the second data switching switch are respectively connected to the second interface. At this time, when and only when the second interface is connected to an external device, data communication is performed according to the default configuration.

[0073] Through the above steps, this embodiment further realizes data switching between the two interfaces on the basis of realizing the switching of power supply modes when both interfaces are connected to external devices. During the data transmission process, it can effectively avoid data errors caused by simultaneous transmission of data when both interfaces are plugged into external devices.

[0074] The power supply switching system described in the above embodiment can be applied to a USB socket.

[0075] This embodiment also provides an electronic device, including the USB socket as described above.

[0076] In some embodiments, the electronic device may be a law enforcement recorder, for example, a handheld law enforcement recorder. A law enforcement recorder is a forensic technology device that is carried with the user when performing official duties and integrates functions such as real-time video and audio recording, photography, and recording. It integrates the functions of video recording, photography, intercom, positioning, and storage, and can transmit video in real time. It can digitally record dynamic and static on-site situations during law enforcement, making it easy to use in law enforcement in various environments.

[0077] The law enforcement recorder includes a mobile terminal and a camera. The mobile terminal is provided with the USB socket as described above, and the USB socket is provided with the first interface and the second interface, through which the first interface and the second interface can communicate with an external device and supply power.

[0078] Of course, in other embodiments, the USB socket may also include a USB adapter (such as USB to mini USB, USB to micro USB or USB to Lightning interface, etc.), an overshoot protection device, a signal indicator, a wireless communication module, etc., which are not described in detail here. The electronic device may also be a portable product such as a mobile phone, a portable media player (PMP), a mobile Internet device (MID), etc.

[0079] It should be noted that the above-described implementations do not constitute a limitation on the protection scope of the technical solution. Any modifications, equivalent replacements and improvements made within the spirit and principles of the above-described implementations should be included in the protection scope of the technical solution.

[0080] This embodiment also provides a power supply switching method, which is applied to the power supply switching system as described above. Figure 5 is a flow chart of a power supply switching method according to an embodiment of the present application, such as Figure 5 As shown, the first interface is used as the priority for interface communication and power supply, and the process includes the following steps:

[0081] First, determine whether the first interface sends a first control signal to the first power switch. When the first interface sends a first control signal to the first power switch, the first power switch uses the change of high and low level signals to control its own conduction state. When the first control signal is received, the first power switch sends a second control signal to the second power switch according to the received first control signal; the second power switch disconnects from the second interface according to the second control signal. When the first power switch receives the first control signal, detect whether a third control signal is received; if so, the first interface supplies power to the charging module through the first power switch.

[0082] At the same time, when the first power switch does not receive the first control signal sent by the first interface, the control module detects the OTG signal provided by the external device. When the control module does not receive the OTG signal, the second power switch detects whether the fourth control signal is received, and if so, the second interface supplies power to the charging module through the second power switch. When the control module receives the OTG signal, the control module sends a fifth control signal to the second power switch to switch the second power switch to a reverse conduction state; at the same time, the control module controls the charging module to enter the OTG mode so that the charging module supplies power to the OTG device through the second power switch.

[0083] In this embodiment, the first interface and the second interface are both USB interfaces; in other embodiments, the first interface and the second interface may both be Microusb interfaces; in other embodiments, the first interface is a USB interface and the second interface is a Microusb interface; or the first interface is a Microusb interface and the second interface is a USB interface. Among them, the USB interface may be a USB TPYE-C interface, a USB TPYE-A interface, etc. It can be understood that the first interface and the second interface may also be a two-pin or three-pin power supply jack, a network interface, a TV interface, a telephone interface, etc., and the number may be one or more, and this application does not make specific restrictions here. Among them, the priority order of interface power supply and / or communication can be set, so that the interface communication and power supply are controlled according to the priority order.

[0084] Through the above steps, the power supply mode is switched when both interfaces are connected to external devices, thereby effectively avoiding the current backflow caused by the interface voltage difference when both interfaces are connected to external devices, improving the power supply stability, and ensuring the normal power supply of the device.

[0085] It should be noted that the steps shown in the above process or the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0086] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0087] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A power supply switching system, characterized in that: It includes a first interface, a second interface, a first power switch, a second power switch, a charging module and a control module, wherein: The first interface is connected to the first power switch; the second interface is connected to the second power switch; the first power switch and the second power switch are both connected to the charging module; the first power switch is electrically connected to the second power switch; When both the first interface and the second interface are connected to external devices, the first interface is used as a priority for interface communication, and the first interface sends a first control signal to the first power switch; The first power switch sends a second control signal to the second power switch according to the received first control signal; the first control signal and the second control signal are level signals; The second power switch disconnects from the second interface according to the second control signal, and the first interface is connected to the charging module through the first power switch for power supply; The control module is connected to the first power switch, the second power switch, the second interface and the charging module; When and only when the second interface is connected to an external device, the control module detects an OTG signal provided by the external device; when the control module does not receive the OTG signal, the second power switch detects whether a fourth control signal is received; if so, the second interface supplies power to the charging module through the second power switch; When and only when the second interface is connected to the OTG device, the control module detects the OTG signal provided by the OTG device; when the control module receives the OTG signal, it sends a fifth control signal to the second power switch to switch the second power switch to a reverse conduction state; the control module controls the charging module to enter the OTG mode; the charging module supplies power to the OTG device through the second power switch.

2. A power supply switching system according to claim 1, characterized in that: When and only when the first interface is connected to an external device, the first interface sends a first control signal to the first power switch; When the first power switch receives the first control signal, detecting whether a third control signal is received; If so, the first interface supplies power to the charging module through the first power switch.

3. The power supply switching system according to claim 1, characterized in that: The first interface is connected to a first data switching switch and a second data switching switch, and the second interface is connected to the first data switching switch and the second data switching switch. When and only when the first interface is connected to an external device, the first interface sends a first control signal to the first data switching switch; The first data switching switch cuts off the connection with the second interface and switches the connection to the first interface according to the received first control signal.

4. The power supply switching system according to claim 1, characterized in that: The first interface is connected to a first data switching switch and a second data switching switch, and the second interface is connected to the first data switching switch and the second data switching switch. When both the first interface and the second interface are connected to external devices, the first interface sends a first control signal to the first data switching switch and the second data switching switch; The first data switch cuts off the connection with the second interface and switches the connection to the first interface according to the received first control signal; The second data switching switch cuts off the connection with the second interface according to the received first control signal.

5. The power supply switching system according to claim 3, characterized in that: When and only when the second interface is connected to an external device, the first data switching switch and the second data switching switch are respectively connected to the second interface, so that the external device performs data communication with the control module through the second interface.

6. The power supply switching system according to claim 1, characterized in that: The first interface is a USB interface, and the second interface is a MicroUSB interface.

7. A USB socket, characterized in that: Comprising a power supply switching system as described in any one of claims 1-6.

8. An electronic device, characterized in that: Comprising the USB socket as claimed in claim 7.

Citation Information

Patent Citations

  • External power supply identification circuit for large current touch equipment and electronic signature screen

    CN105988963A

  • USB interface switching device and electronic equipment

    CN108228509A