Gateway device module power switching circuit and gateway device

By independently controlling the isolated power supply switch and power switching control chip with a microcontroller chip, dynamic management of module power supply and level signal conversion are achieved, solving the problems of resource waste and reduced battery life in traditional gateway devices, and realizing low power consumption and improved stability.

CN224329473UActive Publication Date: 2026-06-05HUIZHOU CDN INDAL DEV
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
HUIZHOU CDN INDAL DEV
Filing Date
2025-04-23
Publication Date
2026-06-05

Smart Images

  • Figure CN224329473U_ABST
    Figure CN224329473U_ABST
Patent Text Reader

Abstract

The present disclosure provides a gateway device module power supply switching circuit and a gateway device. The gateway device module power supply switching circuit comprises a micro control chip, a power supply control module and a level signal conversion module. The power supply control module is composed of a power supply switching control chip and at least one module power supply unit. The module power supply unit comprises a first power supply control chip and a first isolation power supply switch tube. The conduction and cutoff of the first isolation power supply switch tube are controlled by the micro control chip, so as to realize independent power supply control of a specific module power supply unit and effectively reduce the power consumption of the circuit. At the same time, the circuit dynamically controls the power supply and serial communication connection of different functional modules by sharing the serial signal output end of the micro control chip, so as to realize the time-sharing multiplexing of the single serial port of the micro control chip and reduce the hardware cost. In addition, the level signal conversion module solves the level compatibility problem between the micro control chip and different modules, thereby improving the stability of the gateway device module power supply switching circuit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the technical field of gateway device management, and in particular to a gateway device module power supply switching circuit and a gateway device. Background Technology

[0002] With the rapid development of Internet of Things (IoT) technology, gateway devices, as the core hub connecting various terminal devices and the cloud, need to support multiple communication protocols to adapt to different scenarios. In traditional designs, each functional module (such as a wireless communication module and a sensor module) needs to independently occupy the serial port resources of the microcontroller unit (MCU) and be continuously powered, resulting in wasted hardware resources and increased costs.

[0003] However, due to the limited number of serial ports on a microcontroller unit, integrating multiple functional modules requires additional multi-serial-port chips or replacing the microcontroller unit with one featuring more serial ports, significantly increasing hardware cost, static power consumption, and circuit complexity. Furthermore, in existing technologies, the lack of effective power isolation for modules allows modules not in operation to continue receiving power, which, especially in low-power gateway applications, leads to reduced battery life. Utility Model Content

[0004] The purpose of this disclosure is to overcome the shortcomings of the prior art and provide a low-power gateway device module power supply switching circuit and gateway device that can share serial port resources in a time-division multiplexing manner.

[0005] The purpose of this disclosure is achieved through the following technical solution:

[0006] A gateway device module power supply switching circuit includes a microcontroller chip, a power supply control module, and a level signal conversion module. The power supply control module includes a power switching control chip and at least one module power supply unit. The module power supply unit includes a first power supply control chip and a first isolated power supply switch. The control terminal of the first isolated power supply switch is connected to the first signal switching output terminal of the microcontroller chip. The first terminal of the first isolated power supply switch is connected to the power supply output terminal of the power switching control chip, and the second terminal of the first isolated power supply switch is connected to the power supply input terminal of the first power supply control chip.

[0007] The serial port signal output terminal of the microcontroller chip is connected to the serial port signal input terminal of the level signal conversion module, and the serial signal output terminal of the level signal conversion module is connected to the serial signal input terminal of the first power supply control chip.

[0008] In one embodiment, the module power supply unit further includes a first electronic switch and a first pull-up resistor. The control terminal of the first electronic switch is connected to the first signal switching output terminal of the microcontroller chip. The first end of the first electronic switch is connected to the power supply output terminal of the power switching control chip through the first pull-up resistor. The first end of the first electronic switch is also connected to the control terminal of the first isolated power supply switch. The second end of the first electronic switch is grounded.

[0009] In one embodiment, the module power supply unit further includes a first current-limiting resistor, which is connected in series between the first signal switching output terminal of the microcontroller chip and the control terminal of the first electronic switch.

[0010] In one embodiment, the first isolation power supply switch is a P-channel MOSFET, and the first electronic switch is an NPN transistor.

[0011] In one embodiment, the power supply control module further includes a second module power supply unit, which includes a second power supply control chip and a second isolated power supply switch. The control terminal of the second isolated power supply switch is connected to the second signal switching output terminal of the microcontroller chip, the first terminal of the second isolated power supply switch is connected to the power supply output terminal of the power switching control chip, and the second terminal of the second isolated power supply switch is connected to the power supply input terminal of the second power supply control chip.

[0012] In one embodiment, the level conversion module includes an input level conversion unit and an output level conversion unit. The input level conversion unit includes a second electronic switch and a second pull-up resistor. The first end of the second electronic switch is connected to the serial receiving end of the first power supply control chip. The first end of the second electronic switch is also connected to an external power supply end through the second pull-up resistor. The control end of the second electronic switch is connected to the power supply output end of the power switching control chip. The second end of the second electronic switch is connected to the serial transmitting end of the microcontroller chip.

[0013] In one embodiment, the output level conversion unit includes a third electronic switch and a third pull-up resistor. The first end of the third electronic switch is connected to the serial port receiving end of the microcontroller chip. The first end of the third electronic switch is also connected to the external power supply end through the third pull-up resistor. The control end of the third electronic switch is connected to the power supply output end of the power switching control chip. The second end of the third electronic switch is connected to the serial transmitting end of the first power supply control chip.

[0014] In one embodiment, the input level conversion unit further includes a second current-limiting resistor and a first filter capacitor. The first end of the second current-limiting resistor and the first end of the first filter capacitor are both connected to the power supply output terminal of the power switching control chip, and the second end of the second current-limiting resistor and the second end of the first filter capacitor are both connected to the control terminal of the second electronic switch.

[0015] In one embodiment, the output level conversion unit further includes a third current-limiting resistor and a second filter capacitor. The first end of the third current-limiting resistor and the first end of the second filter capacitor are both connected to the power supply output terminal of the power switching control chip, and the second end of the third current-limiting resistor and the second end of the second filter capacitor are both connected to the control terminal of the third electronic switch.

[0016] This application also provides a gateway device, including the power supply switching circuit for the gateway device module described in any embodiment.

[0017] Compared with the prior art, this disclosure has at least the following advantages:

[0018] The aforementioned gateway device module power supply switching circuit independently controls the first isolation power supply switch and the power switching control chip via a microcontroller chip. This ensures that power is supplied only to the modules requiring power, while completely de-energizing non-target modules, thereby reducing power consumption. Furthermore, by sharing the serial port signal output of the microcontroller chip, the power supply and serial communication connections of different functional modules can be dynamically controlled. This allows for multi-module communication functionality through time-division multiplexing of a single serial port on the microcontroller chip, reducing hardware costs. Moreover, a level conversion module resolves the level compatibility issues between the microcontroller chip and different modules, further improving the stability of the gateway device module power supply switching circuit. Attached Figure Description

[0019] To more clearly illustrate the technical solutions of the embodiments of this disclosure, the accompanying drawings used in the embodiments will be briefly described below. It should be understood that the following drawings only show some embodiments of this disclosure 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.

[0020] Figure 1 A connection diagram of the power supply switching circuit for a gateway device module according to one embodiment;

[0021] Figure 2 for Figure 1 The diagram shows the MCU circuit diagram of the power supply switching circuit for the gateway device module.

[0022] Figure 3 for Figure 1 The diagram shows the power supply control module circuit of the gateway device module power supply switching circuit.

[0023] Figure 4 for Figure 3 The circuit diagram of the second module power supply unit of the power supply control module shown is shown.

[0024] Figure 5 for Figure 1 The circuit diagram shown is of the level signal conversion module of the power supply switching circuit of the gateway device module. Detailed Implementation

[0025] To facilitate understanding of this disclosure, a more complete description will be given below with reference to the accompanying drawings, which illustrate preferred embodiments of the present disclosure. However, this disclosure can be implemented in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the disclosure.

[0026] It should be noted that when an element is referred to as being "fixed to" another element, it can be directly attached to the other element or there may be an intervening element. When an element is referred to as being "connected to" another element, it can be directly connected to the other element or there may be an intervening element. The terms "vertical," "horizontal," "left," "right," and similar expressions used herein are for illustrative purposes only and do not represent the only possible implementation.

[0027] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure belongs. The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of this disclosure. The term "and / or" as used herein includes any and all combinations of one or more of the associated listed items.

[0028] To better understand the technical solutions and beneficial effects of this disclosure, the following detailed description is provided in conjunction with specific embodiments:

[0029] like Figures 1 to 5As shown, a gateway device module power supply switching circuit 10 according to an embodiment of this disclosure includes a microcontroller chip U1, a power supply control module 200, and a level signal conversion module 300. The power supply control module 200 includes a power switching control chip U2 and at least one module power supply unit 210. The module power supply unit 210 includes a first power supply control chip U3 and a first isolation power supply switch Q2. The control terminal of the first isolation power supply switch Q2 is connected to the first signal switching output terminal BLE_IO1 of the microcontroller chip U1. The first terminal of the first isolation power supply switch Q2 is connected to the power supply output terminal VCC3V3_BLE of the power switching control chip U2. The second terminal of the first isolation power supply switch Q2 is connected to the power supply input terminal VCC of the first power supply control chip U3.

[0030] The serial signal output terminal of the microcontroller chip U1 is connected to the serial signal input terminal of the level signal conversion module 300, and the serial signal output terminal of the level signal conversion module 300 is connected to the serial signal input terminal of the first power supply control chip U3.

[0031] In this embodiment, when the microcontroller chip U1 detects an external event trigger (such as a user command), the microcontroller chip U1 determines the module power supply unit 210 that needs power according to a preset protocol type. If an activated module exists, the microcontroller chip U1 will first send a shutdown signal to the isolation power supply switch of the non-target module to completely de-energize the non-target module. Next, the microcontroller chip U1 sends a level control signal to the control terminal of the first isolation power supply switch Q2 and the signal control terminal IN of the power switching control chip U2 through the first signal switching output terminal BLE_IO1, causing the first isolation power supply switch Q2 to conduct. Since the first terminal of the first isolation power supply switch Q2 is connected to the power supply output terminal VCC3V3_BLE of the power switching control chip U2, the power switching control chip U2 selects the corresponding output terminal VCC3V3_BLE1 to output voltage. This voltage is then connected to the power supply input terminal VCC of the first power supply control chip U3 through the second terminal of the first isolation power supply switch Q2, supplying power to the first power supply control chip U3, thereby enabling the module power supply unit 210 that needs power to enter the working state. Furthermore, during the process of sending a level signal from the serial port signal output terminal of the microcontroller chip U1 to the serial port signal input terminal of the level signal conversion module 300, the level signal conversion module 300, through its internal conversion circuit, can perform level matching according to the level standard of the power supply unit 210 required for power supply, and convert the level signal into a level signal compatible with the first power supply control chip U3. This signal is then transmitted to the serial signal input terminal of the first power supply control chip U3 via the serial signal output terminal, thereby ensuring the stability of signal transmission between the microcontroller chip U1 and the first power supply control chip U3. After the data interaction of the power supply unit 210 is completed, the microcontroller chip U1 again sends a level control signal through the first signal switching output terminal BLE_IO1 to turn off the first isolation power supply switch Q2, thereby cutting off the power input of the power supply unit 210. Since the power supply unit 210 is completely powered off after the first isolation power supply switch Q2 is turned off, the power supply unit 210 can achieve zero power consumption in standby mode.

[0032] The aforementioned gateway device module power supply switching circuit 10 independently controls the first isolation power supply switch Q2 and the power switching control chip U2 through the microcontroller chip U1. This ensures that power is supplied only to the power supply units 210 of the modules that require power, while completely de-energizing non-target modules, thereby reducing the power consumption of the gateway device module power supply switching circuit 10. On the other hand, by sharing the serial port signal output of the microcontroller chip U1, the power supply and serial communication connection of different functional modules can be dynamically controlled. Thus, by time-division multiplexing a single serial port of the microcontroller chip U1, the multi-module communication functions required by the device can be achieved, reducing hardware usage costs. Furthermore, the level signal conversion module 300 solves the level compatibility problem between the microcontroller chip U1 and different modules, thereby improving the stability of the gateway device module power supply switching circuit 10.

[0033] like Figure 2 and Figure 3 As shown, in one embodiment, the module power supply unit 210 further includes a first electronic switch Q1 and a first pull-up resistor R1. The control terminal of the first electronic switch Q1 is connected to the first signal switching output terminal BLE_IO1 of the microcontroller chip U1. The first terminal of the first electronic switch Q1 is connected to the power supply output terminal VCC3V3_BLE of the power switching control chip U2 through the first pull-up resistor R1. The first terminal of the first electronic switch Q1 is also connected to the control terminal of the first isolated power supply switch Q2. The second terminal of the first electronic switch Q1 is grounded. In this embodiment, when the first signal switching output terminal BLE_IO1 of the microcontroller chip U1 outputs a high-level signal to the control terminal of the first electronic switch Q1, the voltage at the control terminal of the first electronic switch Q1 is higher than its conduction threshold voltage, causing the first electronic switch Q1 to conduct. Its first and second terminals are approximately short-circuited, thereby pulling the voltage at the control terminal of the first isolated power supply switch Q2 to a low level, so that the first isolated power supply switch Q2 conducts, and thus the power switching control chip U2 outputs a corresponding voltage to power the first power supply control chip U3. When the first signal switching output terminal BLE_IO1 outputs a low level, the voltage difference between the control terminal and the second terminal of the first electronic switch Q1 is less than its conduction threshold voltage. Therefore, the first electronic switch Q1 is turned off. This causes the output voltage VCC3V3_BLE of the power switching control chip U2 to apply a voltage to the control terminal of the first isolated power supply switch Q2 through the first pull-up resistor R1. The voltage at the control terminal of the first isolated power supply switch Q2 cannot meet its conduction threshold, thus causing the first isolated power supply switch Q2 to turn off and disconnecting the power input of the module power supply unit 210. The first pull-up resistor R1 provides a stable cutoff bias for the control terminal of the first isolated power supply switch Q2, eliminating any floating control terminal and preventing the first isolated power supply switch Q2 from falsely turning on.

[0034] like Figure 2 and Figure 3 As shown, in one embodiment, the module power supply unit 210 further includes a first current-limiting resistor R2, which is connected in series between the first signal switching output terminal BLE_IO1 of the microcontroller chip U1 and the control terminal of the first electronic switch Q1. In this embodiment, when the first signal switching output terminal BLE_IO1 of the microcontroller chip U1 outputs a high level, the first current-limiting resistor R2 is connected in series in the control terminal circuit to limit the current flowing into the control terminal of the first electronic switch Q1, thereby preventing the first electronic switch Q1 from being damaged by overcurrent due to excessive control terminal current.

[0035] like Figure 2 and Figure 3 As shown, in one embodiment, the first isolation power supply switch Q2 is a P-channel MOSFET, and the first electronic switch Q1 is an NPN transistor. In this embodiment, the first terminal of the first isolation power supply switch Q2 is the source of the P-channel MOSFET, the second terminal of the first isolation power supply switch Q2 is the drain of the P-channel MOSFET, and the control terminal of the first isolation power supply switch Q2 is the gate of the P-channel MOSFET; the first terminal of the first electronic switch Q1 is the collector of the NPN transistor, the second terminal of the first electronic switch Q1 is the emitter of the NPN transistor, and the control terminal of the first electronic switch Q1 is the base of the NPN transistor. When the first signal switching output terminal BLE_IO1 of the microcontroller chip U1 outputs a high level to the base of the first electronic switch Q1, the base voltage of the first electronic switch Q1 is higher than the emitter voltage and exceeds the conduction threshold, thereby turning on the first electronic switch Q1, which in turn pulls the gate voltage of the first isolation power supply switch Q2 connected to the collector to a low level. Since the source of the first isolation power supply switch Q2 is connected to VCC3V3_BLE (3.3V), the gate-source voltage is lower than the turn-on threshold voltage of the P-channel MOSFET. The first isolation power supply switch Q2 is turned on, and a low-resistance path is formed between the drain and the source, thereby establishing a power supply circuit for the module power supply unit 210.

[0036] Furthermore, when the first signal switching output terminal BLE_IO1 outputs a low level, the base voltage of the first electronic switch Q1 drops to 0V, the first electronic switch Q1 is turned off, and VCC3V3_BLE provides a pull-up voltage to the gate of the first isolated power supply switch Q2 through the first pull-up resistor R1. The gate voltage is pulled up to a high level, thereby turning off the first isolated power supply switch Q2. The VCC terminal of U3 is completely isolated from the power supply, and the leakage current forms a discharge circuit through the gate parasitic capacitance of the first isolated power supply switch Q2, thereby achieving zero-power standby.

[0037] like Figures 2 to 4As shown, in one embodiment, the power supply control module 200 further includes a second module power supply unit 220. The second module power supply unit 220 includes a second power supply control chip U4 and a second isolated power supply switch Q4. The control terminal of the second isolated power supply switch Q4 is connected to the second signal switching output terminal BLE_IO2 of the microcontroller chip U1, the first terminal of the second isolated power supply switch Q4 is connected to the power supply output terminal VCC3V3_BLE of the power switching control chip U2, and the second terminal of the second isolated power supply switch Q4 is connected to the power supply input terminal of the second power supply control chip U4. In this embodiment, when the microcontroller chip U1 detects an external event triggering that requires power to the second module power supply unit 220, the microcontroller chip U1 determines, according to a preset protocol, that the second module power supply unit 220 needs to be activated. If other module power supply units are already activated at this time, the microcontroller chip U1 will first send a shutdown signal to the isolated power supply switch of the non-target module to ensure that the non-target module is completely powered off, avoiding unnecessary power consumption and signal interference. Next, the microcontroller U1 sends a level control signal to the control terminal of the second isolated power supply switch Q4 through the second signal switching output terminal BLE_IO2. The second isolated power supply switch Q4 is turned on, forming a low-impedance path between its first and second terminals. The voltage output by the power switching control chip U2 can be transmitted to the power input terminal of the second power supply control chip U4 through the second isolated power supply switch Q4. As the voltage is connected to the power input terminal of the second power supply control chip U4 through the second isolated power supply switch Q4, the second power supply control chip U4 receives power and begins to operate. When the second module power supply unit 220 completes data interaction or no longer needs to operate, the microcontroller U1 again sends a control signal through the second signal switching output terminal BLE_IO2, causing the second isolated power supply switch Q4 to turn off. After Q4 is turned off, the power input terminal of the second power supply control chip U4 is completely isolated from the power supply, and the second power supply control chip U4 stops operating, thus achieving zero-power standby.

[0038] Furthermore, the second module power supply unit 220 and the first module power supply unit 210 are electrically isolated through independent signal terminals (BLE_IO1 or BLE_IO2) and isolation switch transistors (Q2 or Q4), allowing the microcontroller chip U1 to control multiple modules (such as BLE module and RS485 module) in a time-division manner, and only the target module is powered on at any time, while non-target modules maintain zero power consumption.

[0039] In another embodiment, the second isolation power supply switch Q4 is a P-channel MOSFET, the first terminal of the second isolation power supply switch Q4 is the source of the P-channel MOSFET, the second terminal of the second isolation power supply switch Q4 is the drain of the P-channel MOSFET, and the control terminal of the second isolation power supply switch Q4 is the gate of the P-channel MOSFET.

[0040] like Figure 2 and Figure 5 As shown, in one embodiment, the level conversion module 300 includes an input level conversion unit 310 and an output level conversion unit 320. The input level conversion unit 310 includes a second electronic switch Q6 and a second pull-up resistor R3. The first end of the second electronic switch Q6 is connected to the serial receiving end BLE_RX of the first power supply control chip U3. The first end of the second electronic switch Q6 is also connected to the external power supply end through the second pull-up resistor R3. The control end of the second electronic switch Q6 is connected to the power supply output end VCC3V3_BLE of the power switching control chip U2. The second end of the second electronic switch Q6 is connected to the serial transmitting end MCU_TXD of the microcontroller chip U1. In this embodiment, when the power supply output terminal VCC3V3_BLE of the power switching control chip U2 outputs a high level, and the serial port transmitter terminal MCU_TXD of the microcontroller chip U1 also outputs a high level (e.g., 3.3V), the control terminal of the second electronic switch Q6 receives a high-level signal. The voltage difference between the control terminal voltage and the second terminal of the second electronic switch Q6 is insufficient to meet its conduction threshold condition, causing the second electronic switch Q6 to be turned off. At the same time, the serial receiver terminal BLE_RX of the first power supply control chip U3 receives a high-level signal (e.g., 5V) through the second pull-up resistor R3, so that both the serial receiver terminal BLE_RX and the serial port transmitter terminal MCU_TXD receive high-level signals. Thus, through the electrical isolation effect of the second electronic switch Q6, the matching function of different high-level signals between the serial port transmitter terminal MCU_TXD of the microcontroller chip U1 (e.g., 3.3V high level) and the serial receiver terminal BLE_RX of the first power supply control chip U3 (e.g., 5V high level) is realized. Furthermore, when the microcontroller chip U1 sends a low-level signal through the serial port transmitter MCU_TXD, and the power supply output terminal VCC3V3_BLE of the power switching control chip U2 outputs a high level, the second electronic switch Q6 is turned on. The high-level signal of the serial receiver BLE_RX of the first power supply control chip U3 is pulled to a low level by the serial port transmitter MCU_TXD of the microcontroller chip U1 through the second electronic switch Q6, thereby making both the serial receiver BLE_RX and the serial port transmitter MCU_TXD low level.

[0041] In another embodiment, the second electronic switch Q6 is an NPN transistor, the first terminal of the second electronic switch Q6 is the collector of the NPN transistor, the second terminal of the second electronic switch Q6 is the emitter of the NPN transistor, and the control terminal of the second electronic switch Q6 is the base of the NPN transistor.

[0042] like Figure 2 and Figure 5As shown, in one embodiment, the output level conversion unit 320 includes a third electronic switch Q7 and a third pull-up resistor R5. The first end of the third electronic switch Q7 is connected to the serial port receiver MCU_RXD of the microcontroller chip U1. The first end of the third electronic switch Q7 is also connected to the external power supply terminal through the third pull-up resistor R5. The control terminal of the third electronic switch Q7 is connected to the power supply output terminal VCC3V3_BLE of the power switching control chip U2. The second end of the third electronic switch Q7 is connected to the serial transmitter BLE_TX of the first power supply control chip U3. In this embodiment, when the power supply output terminal VCC3V3_BLE of the power switching control chip U2 outputs a high level, and the serial transmission terminal BLE_TX of the first power supply control chip U3 also outputs a high level (e.g., 5V), the control terminal of the third electronic switch Q7 receives a high-level signal. The voltage difference between the control terminal voltage of the third electronic switch Q7 and the second terminal is insufficient to meet its conduction threshold condition, causing the third electronic switch Q7 to be turned off. At the same time, the serial port receiver terminal MCU_RXD of the microcontroller chip U1 receives a high-level signal (e.g., 3.3V) through the third pull-up resistor R5, so that both the serial port receiver terminal MCU_RXD of the microcontroller chip U1 and the serial transmission terminal BLE_TX of the first power supply control chip U3 receive high-level signals. Thus, through the electrical isolation effect of the third electronic switch Q7, the matching function of different high-level signals between the serial port receiver terminal MCU_RXD of the microcontroller chip U1 (e.g., 3.3V high level) and the serial transmission terminal BLE_TX of the first power supply control chip U3 (e.g., 5V high level) is realized. Furthermore, when the serial transmitter BLE_TX of the first power supply control chip U3 outputs a low-level signal and the power supply output VCC3V3_BLE of the power switching control chip U2 outputs a high level, the third electronic switch Q7 is turned on. The high-level signal of the serial receiver MCU_RXD of the microcontroller chip U1 is passed through the third electronic switch Q7, causing the high-level signal of the serial receiver MCU_RXD of the microcontroller chip U1 to be pulled low by the serial transmitter BLE_TX of the first power supply control chip U3, thereby making both the serial transmitter BLE_TX and the serial receiver MCU_RXD low.

[0043] In another embodiment, the third electronic switch Q7 is an NPN transistor, the first terminal of the third electronic switch Q7 is the collector of the NPN transistor, the second terminal of the third electronic switch Q7 is the emitter of the NPN transistor, and the control terminal of the third electronic switch Q7 is the base of the NPN transistor.

[0044] like Figure 2 and Figure 5As shown, in one embodiment, the input level conversion unit 310 further includes a second current-limiting resistor R4 and a first filter capacitor C1. The first terminals of both the second current-limiting resistor R4 and the first filter capacitor C1 are connected to the power supply output terminal VCC3V3_BLE of the power switching control chip U2. The second terminals of both the second current-limiting resistor R4 and the first filter capacitor C1 are connected to the control terminal of the second electronic switch Q6. In this embodiment, when the power switching control chip U2 outputs a high level at VCC3V3_BLE, the current mainly flows through the second current-limiting resistor R4 to the control terminal of the second electronic switch Q6, providing an initial turn-on drive voltage for Q6. The second current-limiting resistor R4 limits the current to prevent a sudden large current from impacting the control terminal of the second electronic switch Q6, thus avoiding damage to the second electronic switch Q6 due to excessive current. Simultaneously, the first filter capacitor C1 begins to charge. As capacitor C1 charges, the voltage across it gradually increases, and the charging current gradually decreases. When the first filter capacitor C1 is fully charged, its voltage stabilizes at the value of VCC3V3_BLE. At this point, the first filter capacitor C1 acts as a stable voltage source, working together with VCC3V3_BLE to provide a stable voltage to the control terminal of the second electronic switch Q6. Furthermore, due to the capacitor's DC blocking and AC passing characteristics, it can filter out high-frequency noise and interference signals in the output voltage of VCC3V3_BLE, making the voltage at the control terminal of the second electronic switch Q6 more stable.

[0045] like Figure 2 and Figure 5As shown, in one embodiment, the output level conversion unit 320 further includes a third current-limiting resistor R6 and a second filter capacitor C2. The first terminals of both the third current-limiting resistor R6 and the second filter capacitor C2 are connected to the power supply output terminal VCC3V3_BLE of the power switching control chip U2. The second terminals of both the third current-limiting resistor R6 and the second filter capacitor C2 are connected to the control terminal of the third electronic switch Q7. In this embodiment, when the power switching control chip U2 outputs a high level at VCC3V3_BLE, the current mainly flows through the third current-limiting resistor R6 to the control terminal of the third electronic switch Q7, providing an initial turn-on drive voltage for Q7. The third current-limiting resistor R6 limits the current, preventing a sudden large current from impacting the control terminal of the third electronic switch Q7 and avoiding damage to the third electronic switch Q7 due to excessive current. Simultaneously, the second filter capacitor C2 begins charging. As capacitor C2 charges, the voltage across it gradually increases, and the charging current gradually decreases. When the second filter capacitor C2 is fully charged, its voltage stabilizes at the value of VCC3V3_BLE. At this point, the second filter capacitor C2 acts as a stable voltage source, working together with VCC3V3_BLE to provide a stable voltage to the control terminal of the third electronic switch Q7. Because capacitors have the characteristic of blocking DC and passing AC, they can filter out high-frequency noise and interference signals in the output voltage of VCC3V3_BLE, making the voltage at the control terminal of the third electronic switch Q7 more stable.

[0046] This application also provides a gateway device, including a gateway device module power supply switching circuit 10 according to any embodiment. In this embodiment, when the microcontroller chip U1 detects an external event trigger (such as a user command), the microcontroller chip U1 determines the module power supply unit 210 that needs power according to a preset protocol type. If there is an activated module, the microcontroller chip U1 needs to first send a shutdown signal to the isolation power supply switch of the non-target module to completely de-energize the non-target module. Next, the microcontroller chip U1 sends a level control signal to the control terminal of the first isolated power supply switch Q2 and the signal control terminal IN of the power switching control chip U2 through the first signal switching output terminal BLE_IO1, causing the first isolated power supply switch Q2 to be turned on. Since the first terminal of the first isolated power supply switch Q2 is connected to the power supply output terminal VCC3V3_BLE of the power switching control chip U2, the power switching control chip U2 selects the corresponding output terminal VCC3V3_BLE1 to output voltage. The voltage is connected to the power supply input terminal VCC of the first power supply control chip U3 through the second terminal of the first isolated power supply switch Q2, and supplies power to the first power supply control chip U3, thereby enabling the power supply unit 210 of the module that needs power to enter the working state. Furthermore, during the process of sending a level signal from the serial port signal output terminal of the microcontroller chip U1 to the serial port signal input terminal of the level signal conversion module 300, the level signal conversion module 300, through its internal conversion circuit, can perform level matching according to the level standard of the power supply unit 210 required for power supply, and convert the level signal into a level signal compatible with the first power supply control chip U3. This signal is then transmitted to the serial signal input terminal of the first power supply control chip U3 via the serial signal output terminal, thereby ensuring the stability of signal transmission between the microcontroller chip U1 and the first power supply control chip U3. After the data interaction of the power supply unit 210 is completed, the microcontroller chip U1 again sends a level control signal through the first signal switching output terminal BLE_IO1 to turn off the first isolation power supply switch Q2, thereby cutting off the power input of the power supply unit 210. Since the power supply unit 210 is completely powered off after the first isolation power supply switch Q2 is turned off, the power supply unit 210 can achieve zero power consumption in standby mode.

[0047] Compared with the prior art, this disclosure has at least the following advantages:

[0048] The aforementioned gateway device module power supply switching circuit 10 independently controls the first isolation power supply switch Q2 and the power switching control chip U2 through the microcontroller chip U1. This ensures that power is supplied only to the power supply units 210 of the modules that require power, while completely de-energizing non-target modules, thereby reducing the power consumption of the gateway device module power supply switching circuit 10. On the other hand, by sharing the serial port signal output of the microcontroller chip U1, the power supply and serial communication connection of different functional modules can be dynamically controlled. Thus, by time-division multiplexing a single serial port of the microcontroller chip U1, the multi-module communication functions required by the device can be achieved, reducing hardware usage costs. Furthermore, the level signal conversion module 300 solves the level compatibility problem between the microcontroller chip U1 and different modules, thereby improving the stability of the gateway device module power supply switching circuit 10.

[0049] The embodiments described above are merely illustrative of several implementations of this disclosure, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of the disclosed patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this disclosure, and these all fall within the protection scope of this disclosure. Therefore, the protection scope of this patent should be determined by the appended claims.

Claims

1. A power supply switching circuit for a gateway device module, characterized in that, Includes a microcontroller chip, a power supply control module, and a level signal conversion module. The power supply control module includes a power switching control chip and at least one module power supply unit. The module power supply unit includes a first power supply control chip and a first isolated power supply switch. The control terminal of the first isolated power supply switch is connected to the first signal switching output terminal of the microcontroller chip. The first terminal of the first isolated power supply switch is connected to the power supply output terminal of the power switching control chip. The second terminal of the first isolated power supply switch is connected to the power supply input terminal of the first power supply control chip. The serial port signal output terminal of the microcontroller chip is connected to the serial port signal input terminal of the level signal conversion module, and the serial signal output terminal of the level signal conversion module is connected to the serial signal input terminal of the first power supply control chip.

2. The gateway device module power supply switching circuit according to claim 1, characterized in that, The module power supply unit further includes a first electronic switch and a first pull-up resistor. The control terminal of the first electronic switch is connected to the first signal switching output terminal of the microcontroller chip. The first end of the first electronic switch is connected to the power supply output terminal of the power switching control chip through the first pull-up resistor. The first end of the first electronic switch is also connected to the control terminal of the first isolated power supply switch. The second end of the first electronic switch is grounded.

3. The gateway device module power supply switching circuit according to claim 2, characterized in that, The module power supply unit also includes a first current-limiting resistor, which is connected in series between the first signal switching output terminal of the microcontroller chip and the control terminal of the first electronic switch tube.

4. The gateway device module power supply switching circuit according to claim 2, characterized in that, The first isolation power supply switch is a P-channel MOSFET, and the first electronic switch is an NPN transistor.

5. The gateway device module power supply switching circuit according to claim 1, characterized in that, The power supply control module further includes a second power supply unit, which includes a second power supply control chip and a second isolated power supply switch. The control terminal of the second isolated power supply switch is connected to the second signal switching output terminal of the microcontroller chip, the first terminal of the second isolated power supply switch is connected to the power supply output terminal of the power switching control chip, and the second terminal of the second isolated power supply switch is connected to the power supply input terminal of the second power supply control chip.

6. The gateway device module power supply switching circuit according to claim 1, characterized in that, The level signal conversion module includes an input level conversion unit and an output level conversion unit. The input level conversion unit includes a second electronic switch and a second pull-up resistor. The first end of the second electronic switch is connected to the serial receiving end of the first power supply control chip. The first end of the second electronic switch is also connected to the external power supply end through the second pull-up resistor. The control end of the second electronic switch is connected to the power supply output end of the power switching control chip. The second end of the second electronic switch is connected to the serial port transmitting end of the microcontroller chip.

7. The gateway device module power supply switching circuit according to claim 6, characterized in that, The output level conversion unit includes a third electronic switch and a third pull-up resistor. The first end of the third electronic switch is connected to the serial port receiving end of the microcontroller chip. The first end of the third electronic switch is also connected to the external power supply end through the third pull-up resistor. The control end of the third electronic switch is connected to the power supply output end of the power switching control chip. The second end of the third electronic switch is connected to the serial transmitting end of the first power supply control chip.

8. The gateway device module power supply switching circuit according to claim 6, characterized in that, The input level conversion unit further includes a second current-limiting resistor and a first filter capacitor. The first end of the second current-limiting resistor and the first end of the first filter capacitor are both connected to the power supply output terminal of the power switching control chip. The second end of the second current-limiting resistor and the second end of the first filter capacitor are both connected to the control terminal of the second electronic switch.

9. The gateway device module power supply switching circuit according to claim 7, characterized in that, The output level conversion unit further includes a third current-limiting resistor and a second filter capacitor. The first end of the third current-limiting resistor and the first end of the second filter capacitor are both connected to the power supply output terminal of the power switching control chip, and the second end of the third current-limiting resistor and the second end of the second filter capacitor are both connected to the control terminal of the third electronic switch.

10. A gateway device, characterized in that, Includes the gateway device module power supply switching circuit as described in any one of claims 1 to 9.