Intelligent terminal device
By coordinating the charging and discharging states of the power management unit and the communication interface through the controller, the problem that smart terminal devices cannot simultaneously achieve charging and peripheral connection in the existing technology is solved. This enables low-cost, highly integrated dual communication interface charging and simplifies the circuit design and debugging process.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-02
- Publication Date
- 2026-03-10
AI Technical Summary
Existing Android platform smart terminal devices are only equipped with one Type-C interface, which cannot simultaneously realize charging and peripheral connection functions, resulting in a limited user experience. In addition, the existing dual USB interface solution is costly, has complex circuit design, and has a long debugging cycle, making it difficult to achieve rapid iteration and large-scale production.
It adopts a combination of controller, power management unit, signal detection unit, bridging unit and energy storage battery. The controller coordinates the charging and discharging status of the power management unit and the communication interface to realize the coordinated working mode of dual communication interfaces, without the need for external multi-channel high-cost charging management chips.
It simplifies circuit design complexity, reduces debugging difficulty, and achieves low-cost, highly integrated dual-communication interface charging.
Smart Images

Figure CN121643145A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of charging control, in particular to a kind of intelligent terminal equipment. BACKGROUND
[0002] With the wide application of mobile intelligent terminal, the requirement of function integration and use convenience of intelligent terminal equipment is increasing. Most of the terminal equipment developed based on Android operating platform currently is usually equipped with only one Type-C interface, which is used for data communication, wired charging or external universal serial bus (Universal Serial Bus, referred to as USB) device. However, the single Type-C interface cannot realize charging function and peripheral connection function at the same time in actual application, which will lead to the limitation of user experience and frequent operation interruption of intelligent terminal.
[0003] At present, although the existing Android platform supports wireless charging and USB charging functions, most Internet of Things devices do not use wireless charging function, which leads to redundancy of wireless charging function of Android platform, and further causes waste of hardware resources of Android platform. To realize the dual-USB interface function of terminal equipment, external multi-channel charging management chip (Integrated Circuit, referred to as IC) is usually used to control the charging and discharging behavior of multiple Type-C interfaces.
[0004] However, when realizing the dual-USB charging function of terminal equipment based on related technology, there are problems such as high production cost, complex circuit design, long debugging period and great debugging difficulty, which will not be conducive to the rapid iteration and mass production of intelligent terminal products. SUMMARY
[0005] The purpose of the present application is to provide an intelligent terminal equipment, which can realize low-cost, high-integration dual-communication interface charging under the premise of simplifying circuit design complexity and reducing debugging difficulty.
[0006] Embodiments of the present application are implemented as follows: In a first aspect, the present application provides an intelligent terminal equipment, which comprises a controller, a power management unit, a signal detection unit, a bridge unit, a first communication interface, a second communication interface and an energy storage battery, and the first communication interface and the second communication interface are interfaces of the same type. The first input end of the controller is connected with the output end of the signal detection unit, the input end of the signal detection unit is connected with the second communication interface, the second input end of the controller is connected with the first communication interface, the bidirectional port of the controller is connected with one end of the bridge unit, the other end of the bridge unit is connected with the second communication interface, and the output end of the controller is connected with the control end of the power management unit. The power management unit is connected to the first communication interface via the first power line, and the power management unit is connected to the second communication interface via the second power line. The power management unit is also connected to the energy storage battery. The first communication interface and the second communication interface are also used to connect to external devices. The controller is used to obtain the access status of the first communication interface and the access status of the second communication interface based on the signal detection unit. It controls the charging and discharging status between the power management unit and the first and second power lines according to the access status of the first and second communication interfaces, so as to coordinate the working modes of the first and second communication interfaces.
[0007] As one possible implementation, the charging and discharging state between the power management unit and the first and second power lines is controlled according to the access status of the first and second communication interfaces, including: The first connection detection signal of the first communication interface is obtained through the second input terminal of the controller, and the first connection detection signal is used to determine whether the first communication interface is a charging interface. If so, the first connection detection result of the second communication interface is obtained through the signal detection unit, and based on the first connection detection result, it is determined whether the second communication interface is a charging interface at the current moment. If so, first disconnect the charging state between the power management unit and the second power line, and then connect the charging state between the power management unit and the first power line. If not, the charging state between the control power management unit and the first power line is turned on.
[0008] As one possible implementation, after determining whether the first communication interface is a charging interface based on the first connection detection signal, the method further includes: If the first communication interface is not a charging interface, the discharge state between the control power management unit and the first power line is turned on, and the power management unit supplies power to the external device connected to the first communication interface through the first power line.
[0009] As one possible implementation, the charging and discharging state between the power management unit and the first and second power lines is controlled according to the access status of the first and second communication interfaces, including: The second connection detection signal of the first communication interface is obtained through the second input terminal of the controller, and the first communication interface is determined to be disconnected from the external device based on the second connection detection signal. If so, then based on the charging and discharging state of the power management unit and the first power line before the first communication interface is disconnected from the external device, determine whether the first communication interface was a charging interface at the previous moment. If so, the second connection detection result of the second communication interface is obtained through the signal detection unit, and based on the second connection detection result, it is determined whether the second communication interface is a charging interface at the current moment. If so, first disconnect the charging state between the power management unit and the first power line, and then connect the charging state between the power management unit and the second power line. If not, the charging state between the control power management unit and the first power line is disconnected.
[0010] As one possible implementation, after determining whether the first communication interface was a charging interface at the previous moment based on the charging and discharging state of the power management unit and the first power line before the first communication interface was disconnected from the external device, the method further includes: If the first communication interface was not a charging interface in the previous moment, the discharge state between the control power management unit and the first power line is disconnected, the power management unit stops supplying power to the external device connected to the first communication interface, and the first communication interface is in an idle state.
[0011] As one possible implementation, the charging and discharging state between the power management unit and the first and second power lines is controlled according to the access status of the first and second communication interfaces, including: The signal detection unit obtains the third connection detection result of the second communication interface, and determines whether the second communication interface is a charging interface based on the third connection detection result. If so, the third connection detection signal of the first communication interface is obtained through the second input terminal of the controller, and the first communication interface is determined to be a charging interface at the current moment based on the third connection detection signal. If so, the charging state between the control power management unit and the first power line is turned on; If not, the charging state between the control power management unit and the second power line is turned on.
[0012] As one possible implementation, after determining whether the second communication interface is a charging interface based on the third connection detection result, the following is also included: If the second communication interface is not a charging interface, the discharge state between the control power management unit and the second power line is turned on, and the power management unit supplies power to the external device connected to the second communication interface via the second power line.
[0013] As one possible implementation, the charging and discharging state between the power management unit and the first and second power lines is controlled according to the access status of the first and second communication interfaces, including: The signal detection unit obtains the fourth connection detection result of the second communication interface, and determines whether the second communication interface is disconnected from the external device based on the fourth connection detection result. If so, then based on the charging and discharging state of the power management unit and the second power line before the second communication interface is disconnected from the external device, determine whether the second communication interface was a charging interface at the previous moment. If so, the charging state between the control power management unit and the second power line is disconnected; If not, the discharge state between the control power management unit and the second power line is disconnected, the power management unit stops supplying power to the external devices connected to the second communication interface, and the second communication interface is in an idle state.
[0014] As one possible implementation, the aforementioned bridging unit is a serial peripheral interface to general serial bus bridge chip; One end of the serial peripheral interface to universal serial bus bridge chip is connected to the bidirectional port of the controller, and the other end of the serial peripheral interface to universal serial bus bridge chip is connected to the second communication interface.
[0015] As one possible implementation, the power management unit includes: a wireless charging module and a fast charging module; The wireless charging module is connected to the first communication interface, the second communication interface, and the energy storage battery. The fast charging module is connected to the first communication interface via the first power line, the fast charging module is connected to the second communication interface via the second power line, and the fast charging module is also connected to the energy storage battery.
[0016] The beneficial effects of the embodiments of this application include: This application provides an intelligent terminal device that samples the connection status detection signal of the configuration pin of a second communication interface through a signal sampling unit, and determines the access status of the second communication interface based on the connection status detection signal. The first input terminal of the controller obtains the access status of the second communication interface from the signal detection unit, and the second input terminal of the controller directly samples the connection detection signal of the configuration pin of the first communication interface from the first communication interface, and determines the access status of the first communication interface based on the sampled connection detection signal. The controller controls the charging and discharging states between the power management unit and the first power line, and between the power management unit and the second power line, based on the access status of the first and second communication interfaces, to coordinate the working modes of the first and second communication interfaces. The controller's bidirectional interface is connected to one end of a bridging unit, and the other end of the bridging unit is connected to the second communication interface. The bridging unit provides a data path converter for the controller and the second communication interface, enabling the controller to achieve Universal Serial Bus (USB) connection functionality without a USB interface. The bridging unit integrates a USB master controller, allowing the controller to manage USB slave devices using only simple serial peripheral interface instructions. Furthermore, the controller only needs to provide a simple serial peripheral interface to implement dual universal serial interfaces, without the need for complex additional hardware circuitry. The bridging unit can provide a complete universal serial bus driver, eliminating the need to write a complex universal serial bus protocol stack separately for the second communication interface, which can greatly reduce the debugging cycle and difficulty of smart terminal devices. In this way, it is possible to achieve low-cost, highly integrated dual communication interface charging while simplifying circuit design complexity and reducing debugging difficulty. Attached Figure Description
[0017] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0018] Figure 1 This is a schematic diagram of the structure of a smart terminal device provided in an embodiment of this application; Figure 2 This application provides a core charging and discharging control logic diagram for an intelligent terminal device. Figure 3 This is a charging and discharging control logic diagram of a first type of smart terminal device provided in an embodiment of this application; Figure 4This is a charging and discharging control logic diagram for a second type of smart terminal device provided in an embodiment of this application; Figure 5 This is a charging and discharging control logic diagram for a third type of smart terminal device provided in an embodiment of this application; Figure 6 This is a charging and discharging control logic diagram for a fourth type of smart terminal device provided in the embodiments of this application; Figure 7 This is a schematic diagram of the structure of a second type of smart terminal device provided in an embodiment of this application.
[0019] Reference numerals: 10: Smart terminal device; 101: Controller; 102: Power management unit; 1021: Wireless charging module; 1022: Fast charging module; 103: Signal detection unit; 104: Bridging unit; 1041: Serial peripheral interface to universal serial bus bridge chip; 105: First communication interface; 106: Second communication interface; 107: Energy storage battery. Detailed Implementation
[0020] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. The components of the embodiments of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.
[0021] Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0022] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.
[0023] In the description of this application, it should be noted that the terms "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0024] Currently, most existing Android platforms are compatible with both wireless charging and USB charging. However, most IoT devices do not utilize wireless charging, resulting in redundancy in the Android platform's wireless charging functionality and a waste of hardware resources. Furthermore, most Android-based terminal devices only support one USB port, making them unsuitable for applications requiring two USB ports simultaneously. Dual USB port solutions for terminal devices typically employ external multi-channel ICs to control the charging and discharging behavior of multiple communication interfaces. However, this approach suffers from high production costs, complex circuit design, long debugging cycles, and significant debugging difficulties, hindering the rapid iteration and mass production of smart terminal devices.
[0025] To address this, this application provides a smart terminal device with two independent communication interfaces. The first communication interface is directly connected to a controller, and the second communication interface is connected to the controller via a signal detection unit and a bridging unit. The first communication interface is connected to a power management unit via a first power line, and the second communication interface is connected to the power management unit via a second power line. The controller is connected to the control terminal of the power management unit, which is also connected to a storage battery. The controller directly acquires the access status of the first communication interface and simultaneously acquires the access status of the second communication interface through the signal detection unit. Based on the access status of the first and second communication interfaces, the controller controls the charging and discharging states between the power management unit and the first and second power lines to coordinate the operating modes of the first and second communication interfaces. Therefore, this application eliminates the need for external, high-cost charging management chips to separately control the charging and discharging behavior of each communication interface. Instead, the controller built into the smart terminal device controls the power management chip to coordinate the operating modes of each communication interface. This achieves low-cost, highly integrated dual-communication interface charging while simplifying circuit design complexity and reducing debugging difficulty.
[0026] The smart terminal device provided in the embodiments of this application will be explained in detail below with reference to the accompanying drawings.
[0027] Figure 1 See the structural schematic diagram of a smart terminal device provided in this application. Figure 1 This application provides an intelligent terminal device 10 including: a controller 101, a power management unit 102, a signal detection unit 103, a bridging unit 104, a first communication interface 105, a second communication interface 106, and an energy storage battery 107. The first communication interface 105 and the second communication interface 106 are the same type of interface.
[0028] Optionally, both the first communication interface 105 and the second communication interface 106 can be used to charge the energy storage battery 107 in the smart terminal device 10, or to provide a data interaction bridge between the smart terminal device 10 and external devices, or to transfer electrical energy in the smart terminal device 10 to external devices. The specific type of device connected to the first communication interface 105 and the second communication interface 106 is determined by the type of device connected to them. This application does not make any specific limitations on this.
[0029] Optionally, the first communication interface 105 and the second communication interface 106 can be Universal Serial Bus Type-C (Type-C interface or USB-C interface), and this application does not make any specific limitation on this.
[0030] Optionally, the controller 101 may be implemented by the central processing unit (CPU) of the smart terminal device 10, and this application does not make any specific limitation on this.
[0031] Optionally, the Power Management Unit (PMU) 102 serves as the intelligent power distribution center of the intelligent terminal device 10, and is used to manage the acquisition, distribution and storage of electrical energy within the device under the control commands issued by the controller 101.
[0032] Specifically, the power management unit 102 can convert the external power voltage received from the energy storage battery 107 or via the first communication interface 105 and the second communication interface 106 into different voltages required by various electronic devices (such as the controller 101, memory, etc.) in the smart terminal device 10; the power management unit 102 is also responsible for the management of battery charging, power metering, and charge / discharge protection; the power management unit 102 can also dynamically adjust the charging and discharging state of each power line under the control commands issued by the controller 101.
[0033] It is evident that the PMU is a highly integrated chip that serves as the energy heart and intelligent power distribution center of the entire intelligent terminal device 10.
[0034] Optionally, the energy storage battery 107 serves as an energy storage electronic device in the smart terminal device 10, used to store electrical energy.
[0035] The first input terminal of the controller 101 is connected to the output terminal of the signal detection unit 103, the input terminal of the signal detection unit 103 is connected to the second communication interface 106, the second input terminal of the controller 101 is connected to the first communication interface 105, the bidirectional port of the controller 101 is connected to one end of the bridging unit 104, the other end of the bridging unit 104 is connected to the second communication interface 106, and the output terminal of the controller 101 is connected to the control terminal of the power management unit 102.
[0036] Optionally, the signal detection unit 103 can be implemented by a CC signal detection chip (CC Logic Controller, or CC Logic chip for short). The input terminal of the signal detection unit 103 serves as the sampling terminal of the signal detection unit 103. The signal detection unit 103 samples the CC signal of the configuration pin of the second communication interface 106 connected to it through the input terminal, and determines the connection status of the second communication interface 106 and the identity information of the external device connected to it based on the CC signal of the configuration pin of the second communication interface 106. The detection result is transmitted to the controller 101 through the first input terminal of the controller 101 as data support for the controller 101 to control the power management unit 102.
[0037] Optionally, the second input terminal of the controller 101 is directly connected to the first communication interface 105. The second input terminal of the controller 101 serves as the sampling terminal of the controller 101. The controller 101 directly samples the CC signal of the configuration pin of the first communication interface 105 through the second input terminal, and determines the connection status of the first communication interface 105 and the identity information of the external device connected thereto based on the sampled CC signal. The determination result is used as the data support for the controller 101 to control the power management unit 102.
[0038] It should be noted that the identity information of the external device connected to the first communication interface 105 or the second communication interface 106 refers to the type of external device that accesses the smart terminal device 10 through each communication interface. The external device can be one of a variety of peripheral devices such as a game controller, charger, or memory. This application does not make any specific limitation on this.
[0039] Optionally, the bidirectional port of the controller 101 refers to the port through which the controller 101 interacts with the second communication interface 106. The controller 101 can receive data transmitted by the external device connected to the second communication interface 106 via the bidirectional port, and the controller 101 can also send data to the external device connected to the second communication interface 106 via the bidirectional port. This application does not make specific limitations on this.
[0040] Optionally, the bridging unit 104 serves as a data path converter between the controller 101 and the second communication interface 106, providing USB connectivity for controllers that do not have a standard Universal Serial Bus (USB).
[0041] Specifically, the bridging unit 104 can be implemented by an SPI-to-USB bridging chip. One end of the bridging unit 104 serves as its SPI terminal, and the other end serves as its USB terminal. The SPI terminal of the bridging unit 104 is connected to the bidirectional port of the controller 101, and the USB terminal of the bridging unit 104 is connected to the second communication interface 106. The SPI terminal of the bridging unit 104 is used for high-speed serial communication between the controller 101 and external devices, and the USB terminal of the bridging unit 104 is used to provide a serial bus protocol to convert the Serial Peripheral Interface (SPI) instructions sent by the controller 101 into complex USB data packets, and to encapsulate or parse the USB data packets to realize communication between the controller 101 and the external devices connected to the second communication interface 106.
[0042] It is worth noting that the SPI to USB bridge chip integrates a USB host controller, which means that the controller 101 in the smart terminal device 10 does not need to have native USB host functionality. The controller 101 can manage and control the USB slave device, the second communication interface 106, through simple SPI commands.
[0043] Therefore, the controller 101 only needs to provide a simple SPI interface to realize dual USB interface communication without adding complex USB physical circuits, thus simplifying the hardware circuit design complexity of dual communication interfaces. The SPI to USB bridge chip can provide a complete USB driver, which means that developers do not need to write a complex USB host protocol stack for the controller to control the USB slave device 106 of the second communication interface. The controller 101 can control the USB slave device through simple SPI read and write operations, which can greatly reduce the debugging cycle and modulation difficulty.
[0044] Therefore, the SPI to USB bridge chip adds a USB host port to the smart terminal device 10, breaking the limitation of the controller 101's own input / output port (I / O port).
[0045] Optionally, the output terminal of the controller 101 is connected to the control terminal of the power management unit 102. Based on the connection status of the second communication interface 106 sampled by the first input terminal, the identity information of the external device, and the CC signal of the configuration pin of the first communication interface 105 sampled by the second input terminal, the controller 101 determines the power distribution strategy of the first communication interface 105 and the second communication interface 106, and controls the power distribution of the power management unit 102 according to the power distribution strategy, thereby realizing the coordinated operation of the dual communication interfaces of the smart terminal device 10.
[0046] The power management unit 102 is connected to the first communication interface 105 via the first power line, and the power management unit 102 is connected to the second communication interface 106 via the second power line. The power management unit 102 is also connected to the energy storage battery 107. The first communication interface 105 and the second communication interface 106 are also used to connect to external devices.
[0047] Optionally, the first communication interface 105 can transmit the externally connected power voltage to the power management unit 102 via the first power line, thereby powering the energy storage battery 107; the first communication interface 105 can also obtain the power provided by the energy storage battery 107 via the first power line to power the external devices connected to the first communication interface 105.
[0048] Optionally, the second communication interface 106 can transmit the externally connected power voltage to the power management unit 102 via the second power line, thereby powering the energy storage battery 107; the second communication interface 106 can also obtain the power provided by the energy storage battery 107 via the second power line to power the external devices connected to the second communication interface 106.
[0049] It should be noted that if the external devices connected to the first communication interface 105 and the second communication interface 106 are both charging devices, the smart terminal device 10 will be charged first through the first communication interface 105; if the external device connected to either the first communication interface 105 or the second communication interface 106 is a charging device, the smart terminal device 10 will be charged through the communication interface connected to the charging device.
[0050] In one alternative implementation, see [link to implementation details]. Figure 2 The core charging and discharging control logic of the smart terminal device 10 provided in this application embodiment is as follows: S201, the controller 101 is used to obtain the access status of the first communication interface 105 and obtain the access status of the second communication interface 106 based on the signal detection unit 103.
[0051] Optionally, the access status of the first communication interface 105 refers to whether the first communication interface 105 is connected to an external device and whether the external device connected to the first communication interface 105 is a charging device or an Internet of Things (USB On-The-Go, or OTG device) device. The controller 101 can determine whether the first communication interface 105 is currently connected to an external device and the identity information of the external device by sampling the CC signal of the configuration pin of the first communication interface 105 through the second input terminal.
[0052] Optionally, the access status of the second communication interface 106 refers to whether the second communication interface 106 is connected to an external device, and whether the external device connected to the second communication interface 106 is a charging device or an OTG device. The controller 101 obtains the signal detection result of the second communication interface 106 through the signal detection unit 103 at the first input terminal. The signal detection result output by the signal detection unit 103 is used to inform the controller 101 of the access status of the second communication interface 106 at the current moment.
[0053] S202, the controller 101 controls the charging and discharging state between the power management unit 102 and the first power line and the second power line according to the access status of the first communication interface 105 and the second communication interface 106, so as to coordinate the working mode of the first communication interface 105 and the second communication interface 106.
[0054] The first power line is used to provide a power path between the power management unit 102 and the first communication interface 105, and the second power line is used to provide a power path between the power management unit 102 and the second communication interface 106. Both the first power line and the second power line can be used as power output channels for the smart terminal device 10, and both the first power line and the second power line can also be used as power input channels for the smart terminal device 10.
[0055] Optionally, the controller 101 determines the power distribution strategy based on the access status of the first communication interface 105 and the access status of the second communication interface 106, and further generates control commands, which are sent to the power management unit 102. Under the action of the control commands, the power management unit 102 changes the charging protocol to control the charging and discharging status between the power management unit 102 and the first power line and between the power management unit 102 and the second power line, thereby coordinating the working modes of the first communication interface 105 and the second communication interface 106.
[0056] Optionally, the operating modes of the first communication interface 105 and the second communication interface 106 include: charging mode, discharging mode, and idle mode. Charging mode refers to the smart terminal device 10 receiving power from an external power source via the first communication interface 105 or the second communication interface 106 at the current moment; discharging mode refers to the external device connected to the first communication interface 105 or the external device connected to the second communication interface 106 requiring power from the smart terminal device 10; idle mode refers to the first communication interface 105 and the second communication interface 106 not being connected to any external device, or the external device connected to the first communication interface 105 or the second communication interface 106 being a charging device, but the smart terminal device 10 is currently fully charged.
[0057] In this embodiment, a signal sampling unit samples the connection status detection signal of the configuration pin of the second communication interface and determines the access status of the second communication interface based on the connection status detection signal. The first input terminal of the controller obtains the access status of the second communication interface from the signal detection unit and directly samples the connection detection signal of the configuration pin of the first communication interface from the first communication interface through the second input terminal of the controller, and determines the access status of the first communication interface based on the sampled connection detection signal. The controller controls the charging and discharging state between the power management unit and the first power line, and the charging and discharging state between the power management unit and the second power line, based on the access status of the first and second communication interfaces, to coordinate the working modes of the first and second communication interfaces. The bidirectional interface of the controller is connected to one end of the bridging unit, and the other end of the bridging unit is connected to the second communication interface. The bridging unit provides a data path converter for the controller and the second communication interface, enabling the controller to achieve Universal Serial Bus (USB) connection functionality without a USB bus. The bridging unit integrates a USB host controller, allowing the controller to manage USB slave devices using only simple serial peripheral interface instructions. Furthermore, the controller only needs to provide a simple serial peripheral interface to implement dual universal serial interfaces, without the need for complex additional hardware circuitry. The bridging unit can provide a complete universal serial bus driver, eliminating the need to write a complex universal serial bus protocol stack separately for the second communication interface, which can greatly reduce the debugging cycle and difficulty of smart terminal devices. In this way, it is possible to achieve low-cost, highly integrated dual communication interface charging while simplifying circuit design complexity and reducing debugging difficulty.
[0058] In one alternative implementation, see [link to implementation details]. Figure 3 The specific operation of step S202 above can be as follows: S301. Obtain the first connection detection signal of the first communication interface through the second input terminal of the controller, and determine whether the first communication interface is a charging interface based on the first connection detection signal.
[0059] Optionally, the first connection detection signal refers to the CC signal of the configuration pin of the first communication interface. The controller determines whether the first communication interface is a charging interface at the current moment based on the CC signal sampled from the configuration pin of the first communication interface, that is, whether the external device currently connected to the first communication interface is a charging device.
[0060] S302. If yes, the first connection detection result of the second communication interface is obtained through the signal detection unit, and the second communication interface is determined to be a charging interface at the current moment based on the first connection detection result.
[0061] The first connection detection result refers to the detection result determined by the signal detection unit based on the CC signal sampled from the configuration pin of the second communication interface. The first connection detection result is used to indicate whether the second communication interface is connected to an external device at the current moment, and whether the external device currently connected to the second communication interface is a charging device or an OTG device.
[0062] Optionally, if the external device connected to the first communication interface at the current moment is a charging device, the controller obtains the first connection detection result of the second communication interface through the signal detection unit, and determines whether the second communication interface is also a charging interface at the current moment based on the first connection detection result, that is, determines whether the external device connected to the second communication interface at the current moment is also a charging device.
[0063] S303 If so, first disconnect the charging state between the power management unit and the second power line, and then connect the charging state between the power management unit and the first power line.
[0064] Optionally, if the external device connected to the first communication interface is a charging device, and the external device connected to the second communication interface is also a charging device, the controller first controls the charging state between the power management unit and the second power line to be disconnected, and then controls the charging state between the power management unit and the first power line to be connected. That is, the controller first controls the power input channel provided by the second power line to be disconnected, and then controls the power input channel provided by the first power line to be connected.
[0065] S304. If not, then the charging state between the control power management unit and the first power line is turned on.
[0066] Optionally, if the external device connected to the first communication interface is a charging device, and the external device connected to the second communication interface is an OTG device, the controller directly controls the charging state between the power management unit and the first power line. That is, the controller only needs to control the power input channel provided by the first power line to be turned on.
[0067] In one alternative implementation, see [link to implementation details]. Figure 3 The specific operation following step S301 above, "determining whether the first communication interface is a charging interface based on the first connection detection signal," can also be: S305. If the first communication interface is not a charging interface, the discharge state between the control power management unit and the first power line is turned on, and the power management unit supplies power to the external device connected to the first communication interface through the first power line.
[0068] Optionally, if the controller determines that the first communication interface is connected to an external device at the current moment based on the CC signal of the configuration pin of the first communication interface, but the external device is an OTG device, the controller directly controls the discharge state between the power management unit and the first power line to be turned on. That is, the controller controls the first power line to provide a power output channel to supply power to the external device connected to the first communication interface.
[0069] It should be noted that the charging state connection between the power management unit and the first power line means that the first power line provides a power input channel for the power management unit and the first communication interface; the discharging state connection between the power management unit and the first power line means that the first power line provides a power output channel for the power management unit and the first communication interface.
[0070] It should also be noted that the charging state connection between the power management unit and the second power line means that the second power line provides a power input channel for the power management unit and the second communication interface; the discharging state connection between the power management unit and the second power line means that the second power line provides a power output channel for the power management unit and the second communication interface.
[0071] In one alternative implementation, see [link to implementation details]. Figure 4 The specific operation of step S202 above can be as follows: S401. Obtain the second connection detection signal of the first communication interface through the second input terminal of the controller, and determine whether the first communication interface is disconnected from the external device based on the second connection detection signal.
[0072] Optionally, the second connection detection signal refers to the CC signal of the configuration pin of the first communication interface. The controller determines whether the first communication interface is disconnected from the external device at the current moment based on the CC signal sampled from the configuration pin of the first communication interface.
[0073] S402. If so, then based on the charging and discharging state of the power management unit and the first power line before the first communication interface is disconnected from the external device, determine whether the first communication interface was a charging interface at the previous moment.
[0074] The previous moment refers to the moment when the first communication interface was still connected to the external device.
[0075] Optionally, if the first communication interface is disconnected from the external device at the current moment, the controller determines whether the external device connected to the first communication interface at the previous moment is a charging device based on the charging and discharging state between the power management unit and the first power line at the previous moment. That is, the controller determines whether the first communication interface was connected to a charging device at the previous moment based on whether the first power line provided a power input channel between the power management unit and the first communication interface at the previous moment.
[0076] S403. If yes, then the second connection detection result of the second communication interface is obtained through the signal detection unit, and based on the second connection detection result, it is determined whether the second communication interface is a charging interface at the current moment.
[0077] The second connection detection result refers to the detection result determined by the signal detection unit based on the CC signal sampled from the configuration pin of the second communication interface. The second connection detection result is used to indicate whether the external device connected to the second communication interface at the current moment is a charging device.
[0078] Optionally, if the external device connected to the first communication interface at the previous moment was a charging device, the controller obtains the second connection detection result of the second communication interface through the signal detection unit, and determines whether the second communication interface is a charging interface at the current moment based on the second connection detection result, that is, determines whether the external device connected to the second communication interface at the current moment is a charging device.
[0079] S404. If so, first disconnect the charging state between the power management unit and the first power line, and then connect the charging state between the power management unit and the second power line.
[0080] Optionally, if the external device connected to the first communication interface at the previous moment was a charging device, and the first communication interface is disconnected from the charging device at the current moment, and the external device connected to the second communication interface at the current moment is a charging device, the controller first controls the power management unit to disconnect the charging state between the power management unit and the first power line, and then controls the power management unit to connect the charging state between the power management unit and the second power line. That is, the controller first controls the power input channel provided by the first power line to disconnect, and then controls the power input channel provided by the second power line to connect.
[0081] S405. If not, the charging state between the control power management unit and the first power line is disconnected.
[0082] Optionally, if the external device connected to the first communication interface in the previous moment was a charging device, and the first communication interface is disconnected from the charging device in the current moment, and the external device connected to the second communication interface is an OTG device, the controller directly controls the power management unit to disconnect the charging state between the power management unit and the first power line. That is, the controller only needs to control the power input channel provided by the first power line to be turned off.
[0083] In one alternative implementation, see [link to implementation details]. Figure 4 The specific operation following step S402 above, "determining whether the first communication interface was a charging interface at the previous moment based on the charging and discharging state of the power management unit and the first power line before the first communication interface was disconnected from the external device," can also be: S406. If the first communication interface was not a charging interface in the previous moment, the discharge state between the control power management unit and the first power line is disconnected, the power management unit stops supplying power to the external device connected to the first communication interface, and the first communication interface is in an idle state.
[0084] Optionally, if the controller determines whether the external device connected to the first communication interface in the previous moment is an OTG device based on the charging and discharging state between the power management unit and the first power line at the previous moment, but the first communication interface is disconnected from the OTG device at the current moment, the controller directly controls the discharge state between the power management unit and the first power line to be disconnected. That is, the controller controls the power output channel provided by the first power line to be turned off to stop supplying power to the external device connected to the first communication interface, and the first communication interface is in an idle state.
[0085] In one alternative implementation, see [link to implementation details]. Figure 5 The specific operation of step S202 above can be as follows: S501. Obtain the third connection detection result of the second communication interface through the signal detection unit, and determine whether the second communication interface is a charging interface based on the third connection detection result.
[0086] The third connection detection result refers to the detection result determined by the signal detection unit based on the CC signal sampled from the configuration pin of the second communication interface. The third connection detection result is used to indicate whether the external device connected to the second communication interface at the current moment is a charging device.
[0087] S502. If yes, then the third connection detection signal of the first communication interface is obtained through the second input terminal of the controller, and the first communication interface is determined to be a charging interface at the current moment based on the third connection detection signal.
[0088] The third connection detection signal refers to the CC signal of the configuration pin of the first communication interface.
[0089] Optionally, if the external device connected to the second communication interface at the current moment is a charging device, the controller determines whether the external device connected to the first communication interface at the current moment is also a charging device based on the CC signal of the configuration pin of the first communication interface.
[0090] S503 If so, then the charging state between the control power management unit and the first power line is turned on.
[0091] Optionally, if the external device connected to the second communication interface at the current moment is a charging device, and the external device connected to the first communication interface is also a charging device, the controller only controls the charging state between the power management unit and the first power line to be connected, that is, the controller only controls the power input channel provided by the first power line to be connected.
[0092] S504. If not, the charging state between the control power management unit and the second power line is turned on.
[0093] Optionally, if the external device connected to the second communication interface at the current moment is a charging device, and the external device connected to the first communication interface is an OTG device, the controller only controls the charging state between the power management unit and the second power line to be connected, that is, the controller only controls the power input channel provided by the second power line to be connected.
[0094] In one alternative implementation, see [link to implementation details]. Figure 5 The specific operation following step S501 above, "determine whether the second communication interface is a charging interface based on the third connection detection result," can also be: S505. If the second communication interface is not a charging interface, the discharge state between the control power management unit and the second power line is turned on, and the power management unit supplies power to the external device connected to the second communication interface via the second power line.
[0095] Optionally, if the controller determines that the external device connected to the second communication interface is an OTG device based on the third connection detection result output by the signal detection unit, the controller directly controls the discharge state between the power management unit and the second power line to be turned on. That is, the controller controls the second power line to provide a power output channel to power the external device connected to the second communication interface.
[0096] In one alternative implementation, see [link to implementation details]. Figure 6 The specific operation of step S202 above can be as follows: S601. Obtain the fourth connection detection result of the second communication interface through the signal detection unit, and determine whether the second communication interface is disconnected from the external device based on the fourth connection detection result.
[0097] Optionally, the fourth connection detection result refers to the detection result determined by the signal detection unit based on the CC signal sampled from the configuration pin of the second communication interface. The fourth connection detection result is used to indicate whether the second communication interface is disconnected from the external device at the current moment.
[0098] S602. If so, then based on the charging and discharging state of the power management unit and the second power line before the second communication interface is disconnected from the external device, determine whether the second communication interface was a charging interface at the previous moment.
[0099] The previous moment refers to the moment when the second communication interface was still connected to the external device.
[0100] Optionally, if the second communication interface is disconnected from the external device at the current moment, the controller determines whether the external device connected to the second communication interface at the previous moment is a charging device based on the charging and discharging state between the power management unit and the second power line at the previous moment. That is, the controller determines whether the second communication interface was connected to a charging device at the previous moment based on whether the second power line provided a power input channel between the power management unit and the second communication interface at the previous moment.
[0101] S603 If so, the charging state between the control power management unit and the second power line is disconnected.
[0102] Optionally, if the external device connected to the second communication interface in the previous moment was a charging device, and the second communication interface is disconnected from the charging device in the current moment, the controller only controls the charging state between the power management unit and the second power line to be disconnected, that is, the controller only controls the power input channel provided by the second power line to be disconnected.
[0103] S603. If not, the discharge state between the control power management unit and the second power line is disconnected, the power management unit stops supplying power to the external device connected to the second communication interface, and the second communication interface is in an idle state.
[0104] Optionally, if the external device connected to the second communication interface in the previous moment was an OTG device, and the second communication interface is disconnected from the OTG device in the current moment, the controller directly controls the power management unit to disconnect the discharge state between the power management unit and the second power line. That is, the controller controls the power output channel provided by the second power line to shut down, so as to stop supplying power to the external device connected to the second communication interface, and the second communication interface is in an idle state.
[0105] In one alternative implementation, see [link to implementation details]. Figure 7 The bridging unit 104 in the smart terminal device 10 provided in this application embodiment is a serial peripheral interface to general serial bus bridge chip 1041.
[0106] One end of the serial peripheral interface to universal serial bus bridge chip 1041 is connected to the bidirectional port of the controller 101, and the other end of the serial peripheral interface to universal serial bus bridge chip 1041 is connected to the second communication interface 106.
[0107] In one alternative implementation, see [link to implementation details]. Figure 7 The power management unit 102 in the smart terminal device 10 provided in this application embodiment includes: a wireless charging module 1021 and a fast charging module 1022.
[0108] The wireless charging module 1021 is connected to the first communication interface 105, the second communication interface 106 and the energy storage battery 107 respectively. The fast charging module 1022 is connected to the first communication interface 105 via the first power line, and to the second communication interface 106 via the second power line. The fast charging module 1022 is also connected to the energy storage battery 107.
[0109] Optionally, the fast charging module 1022 can be implemented by USB Power Delivery (PD charging), and the wireless charging module 1021 can be implemented by an electromagnetic induction system. This application does not make any specific limitations on this.
[0110] Optionally, when the external device connected to the first communication interface 105 in the smart terminal device 10 is a wireless charging device, the power management unit 102 interacts with the first communication interface 105 via the wireless charging module 1021; when the external device connected to the first communication interface 105 in the smart terminal device 10 is a wired charging device, the power management unit 102 interacts with the first communication interface 105 via the wireless charging module 1021.
[0111] Optionally, when the external device connected to the second communication interface 106 in the smart terminal device 10 is a wireless charging device, the power management unit 102 interacts with the second communication interface 106 via the wireless charging module 1021; when the external device connected to the second communication interface 106 in the smart terminal device 10 is a wired charging device, the power management unit 102 interacts with the second communication interface 106 via the wireless charging module 1021.
[0112] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0113] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. An intelligent terminal device, characterized by The intelligent terminal device comprises a controller, a power management unit, a signal detection unit, a bridge unit, a first communication interface, a second communication interface and an energy storage battery, the first communication interface and the second communication interface are interfaces of the same type; a first input end of the controller is connected with an output end of the signal detection unit, an input end of the signal detection unit is connected with the second communication interface, a second input end of the controller is connected with the first communication interface, a bidirectional port of the controller is connected with one end of the bridge unit, the other end of the bridge unit is connected with the second communication interface, and an output end of the controller is connected with a control end of the power management unit; the power management unit is connected with the first communication interface via a first power line, the power management unit is connected with the second communication interface via a second power line, and the power management unit is also connected with the energy storage battery; the first communication interface and the second communication interface are also used for connecting external devices; the controller is used for acquiring an access state of the first communication interface, acquiring an access state of the second communication interface based on the signal detection unit, and controlling a charging and discharging state between the power management unit and the first power line and the second power line according to the access states of the first communication interface and the second communication interface, so as to coordinate working modes of the first communication interface and the second communication interface.
2. The intelligent terminal device of claim 1, wherein, the controller is used for acquiring an access state of the first communication interface, acquiring an access state of the second communication interface based on the signal detection unit, and controlling a charging and discharging state between the power management unit and the first power line and the second power line according to the access states of the first communication interface and the second communication interface, so as to coordinate working modes of the first communication interface and the second communication interface. the controller is used for acquiring an access state of the first communication interface, acquiring an access state of the second communication interface based on the signal detection unit, and controlling a charging and discharging state between the power management unit and the first power line and the second power line according to the access states of the first communication interface and the second communication interface, so as to coordinate working modes of the first communication interface and the second communication interface. the controller is used for acquiring an access state of the first communication interface, acquiring an access state of the second communication interface based on the signal detection unit, and controlling a charging and discharging state between the power management unit and the first power line and the second power line according to the access states of the first communication interface and the second communication interface, so as to coordinate working modes of the first communication interface and the second communication interface. the controller is used for acquiring an access state of the first communication interface, acquiring an access state of the second communication interface based on the signal detection unit, and controlling a charging and discharging state between the power management unit and the first power line and the second power line according to the access states of the first communication interface and the second communication interface, so as to coordinate working modes of the first communication interface and the second communication interface. the controller is used for acquiring an access state of the first communication interface, acquiring an access state of the second communication interface based on the signal detection unit, and controlling a charging and discharging state between the power management unit and the first power line and the second power line according to the access states of the first communication interface and the second communication interface, so as to coordinate working modes of the first communication interface and the second communication interface.
3. The intelligent terminal device of claim 2, wherein, the controller is used for acquiring an access state of the first communication interface, acquiring an access state of the second communication interface based on the signal detection unit, and controlling a charging and discharging state between the power management unit and the first power line and the second power line according to the access states of the first communication interface and the second communication interface, so as to coordinate working modes of the first communication interface and the second communication interface. 4. The intelligent terminal device of claim 1, wherein, acquiring, via a second input terminal of the controller, a second connection detection signal of the first communication interface, and determining, according to the second connection detection signal, whether the first communication interface is disconnected from an external device; if yes, determining, according to a charge-discharge state of the power management unit and the first power line before the first communication interface is disconnected from the external device, whether the first communication interface is a charging interface at a previous time; if yes, acquiring, by the signal detection unit, a second connection detection result of the second communication interface, and determining, according to the second connection detection result, whether the second communication interface is a charging interface at a current time; if yes, controlling the charge-discharge state between the power management unit and the first power line to be disconnected first, and then controlling the charge-discharge state between the power management unit and the second power line to be conducted; if no, controlling the charge-discharge state between the power management unit and the first power line to be disconnected.
5. The intelligent terminal device of claim 4, wherein, after the determining, according to the charge-discharge state of the power management unit and the first power line before the first communication interface is disconnected from the external device, whether the first communication interface is a charging interface at a previous time, further comprising: if the first communication interface is not a charging interface at the previous time, controlling the discharge state between the power management unit and the first power line to be disconnected, the power management unit stops supplying power to the external device connected to the first communication interface, and the first communication interface is in an idle state.
6. The intelligent terminal device of claim 1, wherein, the controlling, according to the access states of the first communication interface and the second communication interface, the charge-discharge state between the power management unit and the first power line and the second power line, comprises: acquiring, by the signal detection unit, a third connection detection result of the second communication interface, and determining, according to the third connection detection result, whether the second communication interface is a charging interface; if yes, acquiring, via a second input terminal of the controller, a third connection detection signal of the first communication interface, and determining, according to the third connection detection signal, whether the first communication interface is a charging interface at a current time; if yes, controlling the charge-discharge state between the power management unit and the first power line to be conducted; if no, controlling the charge-discharge state between the power management unit and the second power line to be conducted.
7. The intelligent terminal device of claim 6, wherein, after the determining, according to the third connection detection result, whether the second communication interface is a charging interface, further comprising: if the second communication interface is not a charging interface, controlling the discharge state between the power management unit and the second power line to be conducted, and the power management unit supplies power to the external device connected to the second communication interface via the second power line.
8. The intelligent terminal device of claim 1, wherein, the controlling, according to the access states of the first communication interface and the second communication interface, the charge-discharge state between the power management unit and the first power line and the second power line, comprises: acquiring, by the signal detection unit, a fourth connection detection result of the second communication interface, and determining, according to the fourth connection detection result, whether the second communication interface is disconnected from an external device; If yes, it is determined whether the second communication interface is a charging interface at the last time according to the charge-discharge state of the power management unit and the second power line before the second communication interface is disconnected with the external device at the second communication interface; If yes, the charge state between the power management unit and the second power line is controlled to be disconnected; If no, the discharge state between the power management unit and the second power line is controlled to be disconnected, the power management unit stops supplying power to the external device connected with the second communication interface, and the second communication interface is in an idle state.
9. The intelligent terminal device of claim 1, wherein, The bridge unit is a serial peripheral interface to universal serial bus bridge chip; One end of the serial peripheral interface to universal serial bus bridge chip is connected with the bidirectional port of the controller, and the other end of the serial peripheral interface to universal serial bus bridge chip is connected with the second communication interface.
10. The intelligent terminal device of claim 1, wherein, The power management unit comprises a wireless charging module and a fast charging module; The wireless charging module is respectively in communication connection with the first communication interface, the second communication interface and the energy storage battery, the fast charging module is connected with the first communication interface via the first power line, the fast charging module is connected with the second communication interface via the second power line, and the fast charging module is also connected with the energy storage battery.