Internet of Things gateway, building automatic control system and power supply control method

By dynamically adjusting the power circuit topology of the IoT gateway and using detection and switching circuits to control voltage conversion, the problem of easy damage to the first-stage voltage conversion circuit is solved, the anti-interference capability and reliability of the system are improved, and accurate fault diagnosis and reporting are achieved.

CN120934933APending Publication Date: 2025-11-11GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511136400.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-14
Publication Date
2025-11-11

AI Technical Summary

Technical Problem

The first-stage voltage conversion circuit of an IoT gateway is easily damaged by external interference, causing subsequent voltage conversion circuits to lose power and affecting the normal operation of the entire system.

Method used

By dynamically adjusting the topology of the power supply circuit, using a detection circuit to monitor the voltage output in real time, and switching the circuit to control the working state of the second voltage conversion circuit, combined with a switch and voltage divider network, flexible switching and boosting of voltage conversion are achieved, ensuring the normal operation of the main control circuit.

Benefits of technology

It improves the anti-interference capability and reliability of IoT gateways, ensuring normal power supply even when the voltage conversion circuit fails, avoiding the ping-pong effect, and enabling accurate fault diagnosis and reporting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120934933A_ABST
    Figure CN120934933A_ABST
Patent Text Reader

Abstract

The invention provides an Internet of Things gateway, a building automatic control system and a power supply control method. The Internet of Things gateway comprises a first voltage conversion circuit and a second voltage conversion circuit, a first input end of the first voltage conversion circuit is electrically connected with an external power supply, and when the first voltage conversion circuit is in a normal working state, a first voltage output by a first output end of the first voltage conversion circuit is within a preset voltage range; the detection circuit is configured to detect the output voltage of the first output end and send a detection result to the switching circuit; the switching circuit is configured to control the working state of the second voltage conversion circuit according to the detection result; and the main control circuit is configured to work by using a second voltage output by the second output end, and the first voltage is greater than the second voltage.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of power control technology, and in particular to an Internet of Things gateway, a building automation system, and a power control method. Background Technology

[0002] The Internet of Things (IoT) gateway is a core component of building automation systems. It is responsible for collecting, processing, and transmitting data from various sensors and actuators, and also handles communication with servers. The power module of an IoT gateway typically employs a multi-stage voltage conversion scheme, such as converting from 24V to 12V to power one part of the circuitry, and then converting from 12V to 5V to power another part, thus meeting the power supply needs of different electronic devices within the IoT gateway. Summary of the Invention

[0003] The inventors noted that in related technologies, for power modules employing multi-stage voltage conversion schemes, the first-stage voltage conversion circuit is often most easily damaged under the influence of external interference factors, causing subsequent voltage conversion circuits to lose power, thus preventing the entire IoT gateway from functioning properly.

[0004] Accordingly, this disclosure provides an Internet of Things (IoT) gateway that can dynamically adjust the topology of the power supply circuit, thereby improving the IoT gateway's anti-interference capability and reliability.

[0005] According to a first aspect of the present disclosure, an Internet of Things (IoT) gateway is provided, comprising: a first voltage conversion circuit and a second voltage conversion circuit, wherein a first input terminal of the first voltage conversion circuit is electrically connected to an external power supply, and when the first voltage conversion circuit is in normal operating condition, a first voltage output from a first output terminal of the first voltage conversion circuit is within a preset voltage range; a detection circuit configured to detect the output voltage of the first output terminal and send the detection result to a switching circuit; a switching circuit configured to control the operating state of the second voltage conversion circuit according to the detection result, wherein if the detection result indicates that the first output terminal has voltage output, the second input terminal of the second voltage conversion circuit is electrically connected to the first output terminal, and if the detection result indicates that the first output terminal has no voltage output, the second input terminal is electrically connected to an external power supply; and a main control circuit configured to operate using a second voltage output from the second output terminal, wherein the first voltage is greater than the second voltage.

[0006] In some embodiments, the IoT gateway further includes a first switch and a second switch, wherein the first switch is configured to electrically connect the second input terminal to the first output terminal in a first state; the second switch is configured to, in an open state, give the voltage divider network of the second voltage conversion circuit a first resistance value; the switching circuit is configured to control the operating state of the second voltage conversion circuit by controlling the states of the first switch and the second switch, wherein when there is a voltage output at the first output terminal, the states of the first switch and the second switch are detected, and if the first switch is in the first state and the second switch is in the open state, the states of the first switch and the second switch are maintained unchanged.

[0007] In some embodiments, the second voltage conversion circuit is configured to convert the output voltage of the first output terminal using a voltage divider network with a first resistance value when the first switch is in a first state and the second switch is in an open state, so that the second output terminal outputs a second voltage.

[0008] In some embodiments, the first switch is configured to connect the second input terminal to the external power supply in a second state; the second switch is configured to, in a closed state, give the voltage divider network of the second voltage conversion circuit a second resistance value; the switching circuit is configured to, if the first switch is in the second state and the second switch is in the closed state, switch the first switch from the second state to the first state and switch the second switch from the closed state to the open state after a predetermined delay.

[0009] In some embodiments, the switching circuit is configured to detect the state of the first switch and the second switch when there is no voltage output at the first output terminal. If the first switch is in the first state and the second switch is in the open state, then after a predetermined delay, the first switch is switched from the first state to the second state, and the second switch is switched from the open state to the closed state.

[0010] In some embodiments, the second voltage conversion circuit is configured to convert the external power supply using a voltage divider network with a second resistance value when the first switch is in the second state and the second switch is in the closed state, so that the second output terminal outputs a second voltage.

[0011] In some embodiments, the switching circuit is configured to maintain the states of the first switch and the second switch unchanged if the first switch is in the second state and the second switch is in the closed state.

[0012] In some embodiments, the first terminal of the first switch is connected to the first output terminal of the first voltage conversion circuit, the second terminal of the first switch is connected to the external power supply, and the common terminal of the first switch is connected to the second input terminal of the second voltage conversion circuit. In a first state, the first terminal of the first switch is electrically connected to the common terminal so that the second input terminal is electrically connected to the first output terminal. In a second state, the second terminal of the first switch is electrically connected to the common terminal so that the second input terminal is electrically connected to the external power supply. The voltage divider network of the second voltage conversion circuit includes a first voltage divider branch and a second voltage divider branch connected in parallel with the first voltage divider branch. A first voltage divider resistor is provided on the first voltage divider branch, and a second voltage divider resistor and a second switch are provided on the second voltage divider branch. When the second switch is in an open state, it disconnects the second voltage divider branch, giving the voltage divider network a first resistance value. When the second switch is in a closed state, it connects the second voltage divider resistor in parallel with the first voltage divider resistor, giving the voltage divider network a second resistance value.

[0013] In some embodiments, the IoT gateway further includes a boost circuit and peripheral circuitry, wherein the boost circuit is configured to boost the second voltage to obtain a third voltage within a preset voltage range when there is no voltage output at the first output terminal; and the peripheral circuitry is configured to operate using the first voltage when there is voltage output at the first output terminal, and to operate using the third voltage when there is no voltage output at the first output terminal.

[0014] In some embodiments, the IoT gateway further includes a third switch, wherein the third switch disconnects the electrical connection between the second output terminal and the boost circuit when it is in an open state, and connects the second output terminal to the boost circuit when it is in a closed state; the switching circuit is configured to detect the state of the third switch when there is no voltage output at the first output terminal, and if the third switch is in an open state, switch the third switch from the open state to the closed state after a predetermined delay, and if the third switch is in the closed state, maintain the state of the third switch unchanged.

[0015] In some embodiments, the switching circuit is configured to detect the state of the third switch when there is a voltage output at the first output terminal; if the third switch is in the open state, the state of the third switch is maintained unchanged; if the third switch is in the closed state, the third switch is switched from the closed state to the open state after a predetermined delay.

[0016] In some embodiments, the IoT gateway further includes a reset circuit, wherein the detection circuit is configured to send a trigger signal to the reset circuit when the output voltage at the first output terminal is not within a preset voltage range; the reset circuit is configured to send a reset signal to the main control circuit after receiving the trigger signal; the main control circuit is configured to perform a reset operation according to the reset signal, calculate the reset duration after completing the reset, compare the reset duration with a predetermined duration, and send diagnostic information corresponding to the comparison result to the server.

[0017] In some embodiments, the main control circuit is configured to send first diagnostic information to the server indicating an abnormality in the first voltage conversion circuit when the reset duration is less than a predetermined duration, and to send second diagnostic information to the server indicating damage to the first voltage conversion circuit when the reset duration is greater than or equal to the predetermined duration.

[0018] In some embodiments, the IoT gateway further includes a third voltage conversion circuit, wherein the third voltage conversion circuit is configured to convert the second voltage to output a fourth voltage, wherein the fourth voltage is less than the second voltage; and the main control circuit is configured to operate using the second voltage and the fourth voltage.

[0019] According to a second aspect of the present disclosure, a building automation system is provided, comprising: a plurality of Internet of Things (IoT) gateways as described in any of the above embodiments; and a server configured to receive diagnostic information corresponding to comparison results sent by the plurality of IoT gateways.

[0020] According to a third aspect of the present disclosure, a power control method is provided, comprising: a detection circuit detecting the output voltage of a first output terminal of a first voltage conversion circuit and sending the detection result to a switching circuit, wherein a first input terminal of the first voltage conversion circuit is electrically connected to an external power supply, and when the first voltage conversion circuit is in normal operating condition, the first voltage output by the first output terminal is within a preset voltage range; the switching circuit controlling the operating state of a second voltage conversion circuit according to the detection result, wherein if the detection result indicates that the first output terminal has voltage output, the second input terminal of the second voltage conversion circuit is electrically connected to the first output terminal, and if the detection result indicates that the first output terminal has no voltage output, the second input terminal is electrically connected to an external power supply; and a main control circuit operating using a second voltage output by the second output terminal of the second voltage conversion circuit, wherein the first voltage is greater than the second voltage.

[0021] In some embodiments, controlling the operating state of the second voltage conversion circuit includes: when there is a voltage output at the first output terminal, the switching circuit detects the state of the first switch and the second switch; if the first switch is in the first state and the second switch is in the open state, the switching circuit maintains the states of the first switch and the second switch unchanged, wherein the first switch in the first state electrically connects the second input terminal to the first output terminal, and the second switch in the open state causes the voltage divider network of the second voltage conversion circuit to have a first resistance value.

[0022] In some embodiments, when the first switch is in the first state and the second switch is in the open state, the second voltage conversion circuit uses the first voltage divider network to convert the output voltage of the first output terminal so that the second output terminal outputs a second voltage.

[0023] In some embodiments, controlling the operating state of the second voltage conversion circuit further includes: if the first switch is in the second state and the second switch is in the closed state, the switching circuit switches the first switch from the second state to the first state and switches the second switch from the closed state to the open state after a predetermined delay. In the second state, the first switch connects the second input terminal to the external power supply, and in the closed state, the second switch causes the voltage divider network of the second voltage conversion circuit to have a second resistance value. The second voltage conversion circuit includes a second voltage divider network that is different from the first voltage divider network.

[0024] In some embodiments, controlling the operating state of the second voltage conversion circuit further includes: when there is no voltage output at the first output terminal, the switching circuit detects the state of the first switch and the second switch; if the first switch is in the first state and the second switch is in the open state, the switching circuit switches the first switch from the first state to the second state and the second switch from the open state to the closed state after a predetermined delay.

[0025] In some embodiments, when the first switch is in the second state and the second switch is in the closed state, the second voltage conversion circuit uses the second voltage divider network to convert the external power supply so that the second output terminal outputs the second voltage.

[0026] In some embodiments, controlling the operating state of the second voltage conversion circuit further includes: if the first switch is in the second state and the second switch is in the closed state, the switching circuit maintains the states of the first switch and the second switch unchanged.

[0027] In some embodiments, when there is a voltage output at the first output terminal, the peripheral circuit operates using the first voltage; when there is no voltage output at the first output terminal, the boost circuit boosts the second voltage to obtain a third voltage within a preset voltage range; the peripheral circuit operates using the third voltage.

[0028] In some embodiments, the boost circuit boosts the second voltage by: when there is no voltage output at the first output terminal, the switching circuit detects the state of the third switch, wherein when the third switch is in the open state, the electrical connection between the second output terminal and the boost circuit is disconnected, and when the third switch is in the closed state, the second output terminal is electrically connected to the boost circuit; if the third switch is in the open state, the switching circuit switches the third switch from the open state to the closed state after a predetermined delay; if the third switch is in the closed state, the switching circuit maintains the state of the third switch unchanged.

[0029] In some embodiments, the boost circuit further includes boosting the second voltage by: when there is a voltage output at the first output terminal, the switching circuit detects the state of the third switch; if the third switch is in the open state, the switching circuit maintains the state of the third switch unchanged; if the third switch is in the closed state, the switching circuit switches the third switch from the closed state to the open state after a predetermined delay.

[0030] In some embodiments, when the output voltage at the first output terminal is not within the preset voltage range, the detection circuit sends a trigger signal to the reset circuit; after receiving the trigger signal, the reset circuit sends a reset signal to the main control circuit; the main control circuit performs a reset operation according to the reset signal, and calculates the reset duration after completing the reset; the main control circuit compares the reset duration with the predetermined duration, and sends diagnostic information corresponding to the comparison result to the server.

[0031] In some embodiments, sending diagnostic information corresponding to the comparison result to the server includes: when the reset duration is less than a predetermined duration, the main control circuit sends first diagnostic information to the server to indicate that the first voltage conversion circuit has malfunctioned; when the reset duration is greater than or equal to the predetermined duration, the main control circuit sends second diagnostic information to the server to indicate that the first voltage conversion circuit is damaged.

[0032] In some embodiments, the main control circuit operates using the second voltage output from the second output terminal of the second voltage conversion circuit, which includes: the second output terminal inputting the second voltage into the third voltage conversion circuit so that the third voltage conversion circuit outputs a fourth voltage, wherein the fourth voltage is less than the second voltage; and the main control circuit operates using the second voltage and the fourth voltage.

[0033] Other features and advantages of this disclosure will become clear from the following detailed description of exemplary embodiments with reference to the accompanying drawings. Attached Figure Description

[0034] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0035] Figure 1 This is a schematic diagram of the structure of an IoT gateway according to an embodiment of the present disclosure;

[0036] Figure 2 This is a schematic diagram of the structure of an IoT gateway according to another embodiment of the present disclosure;

[0037] Figure 3 This is a schematic diagram of the structure of an IoT gateway according to yet another embodiment of this disclosure;

[0038] Figure 4 This is a schematic diagram of the structure of an IoT gateway according to yet another embodiment of this disclosure;

[0039] Figure 5 This is a schematic diagram of the structure of an IoT gateway according to yet another embodiment of this disclosure;

[0040] Figure 6 This is a schematic diagram of the structure of a building automation system according to an embodiment of the present disclosure;

[0041] Figure 7 This is a schematic flowchart of a power control method according to an embodiment of the present disclosure;

[0042] Figure 8 This is a schematic flowchart of a power control method according to another embodiment of the present disclosure. Detailed Implementation

[0043] The technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. The following description of at least one exemplary embodiment is merely illustrative and is in no way intended to limit this disclosure or its application or use. All other embodiments obtained by those skilled in the art based on the embodiments of this disclosure without creative effort are within the scope of protection of this disclosure.

[0044] Unless otherwise specifically stated, the relative arrangement, numerical expressions, and values ​​of the components and steps set forth in these embodiments do not limit the scope of this disclosure.

[0045] At the same time, it should be understood that, for ease of description, the dimensions of the various parts shown in the accompanying drawings are not drawn according to actual scale.

[0046] Techniques, methods, and equipment known to those skilled in the art may not be discussed in detail, but where appropriate, such techniques, methods, and equipment should be considered part of the specification.

[0047] In all examples shown and discussed herein, any specific values ​​should be interpreted as merely exemplary and not as limitations. Therefore, other examples of exemplary embodiments may have different values.

[0048] 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 discussed further in subsequent figures.

[0049] Figure 1 This is a schematic diagram of the structure of an IoT gateway according to an embodiment of this disclosure. Figure 1 As shown, the IoT gateway includes a first voltage conversion circuit 11, a second voltage conversion circuit 12, a detection circuit 13, a switching circuit 14, and a main control circuit 15.

[0050] The first input terminal of the first voltage conversion circuit 11 is electrically connected to the external power supply 10. When the first voltage conversion circuit 11 is in normal operating condition, the first voltage output from the first output terminal of the first voltage conversion circuit 11 is within a preset voltage range.

[0051] The second output terminal of the second voltage conversion circuit 12 is used to output the second voltage.

[0052] The detection circuit 13 is configured to detect the output voltage of the first output terminal of the first voltage conversion circuit 11 and send the detection result to the switching circuit 14.

[0053] The switching circuit 14 is configured to control the operating state of the second voltage conversion circuit based on the detection result. Specifically, if the detection result indicates that there is voltage output at the first output terminal of the first voltage conversion circuit 11, the second input terminal of the second voltage conversion circuit 12 is electrically connected to the first output terminal of the first voltage conversion circuit 11. If the detection result indicates that there is no voltage output at the first output terminal of the first voltage conversion circuit 11, the second input terminal of the second voltage conversion circuit 12 is electrically connected to the external power supply 10.

[0054] The main control circuit 15 is configured to operate using a second voltage output from the second output terminal of the second voltage conversion circuit 12. The first voltage is greater than the second voltage.

[0055] The IoT gateway described in the above embodiments can dynamically adjust the topology of the power supply circuit. Even when there is no voltage output at the first output terminal of the first voltage conversion circuit, the main control circuit 15 can still work normally, thereby improving the anti-interference capability and reliability of the IoT gateway.

[0056] For example, the voltage of the external power supply 10 is 24V, and the preset voltage range of the first voltage is 11V-13V. When the first voltage conversion circuit 11 is in normal working condition, the first voltage output from the first output terminal of the first voltage conversion circuit 11 can be 12V.

[0057] For example, when the voltage output by the first output terminal is 0V, 10V, or 15V, the output voltage of the first output terminal is not within the preset voltage range. When the voltage output by the first output terminal is 11V, 12V, or 13V, the output voltage of the first output terminal is within the preset voltage range.

[0058] It should be noted that the detection circuit 13 monitors the output voltage of the first output terminal of the first voltage conversion circuit 11 in real time and sends the detection result to the switching circuit. The detection result includes whether there is voltage output at the first output terminal or not. When the output voltage at the first output terminal changes, the switching circuit can respond promptly.

[0059] For example, when the voltage output from the first output terminal is 10V, 12V, or 15V, the detection result is that there is voltage output from the first output terminal. When the voltage output from the first output terminal is 0V, the detection result is that there is no voltage output from the first output terminal. If there is no voltage output from the first output terminal, it indicates that the first voltage conversion circuit 11 is damaged.

[0060] It should be noted that when there is voltage output from the first output terminal of the first voltage conversion circuit 11, the second input terminal of the second voltage conversion circuit 12 is electrically connected to the first output terminal of the first voltage conversion circuit 11, and the second voltage conversion circuit 12 converts the first voltage output from the first output terminal into a second voltage. When there is no voltage output from the first output terminal of the first voltage conversion circuit 11, the second input terminal of the second voltage conversion circuit 12 is directly electrically connected to the external power supply 10, and the external power supply 10 is directly converted into a second voltage.

[0061] For example, the second voltage can be 5V.

[0062] The IoT gateway described in the above embodiments can adjust the electrical connection state of the second voltage conversion circuit 12 in a timely manner according to the detection results of the detection circuit 13, so as to ensure the normal operation of the main control circuit 15.

[0063] Figure 2 This is a schematic diagram of the structure of an IoT gateway according to another embodiment of this disclosure. Figure 2As shown, the IoT gateway includes a first output terminal 112 of a first voltage conversion circuit, a second voltage conversion circuit 12, a detection circuit 13, a switching circuit 14, a first switch S1, and a second switch S2.

[0064] The second voltage conversion circuit 12 includes a second input terminal 121, a second output terminal 122, a voltage conversion chip 123, and a voltage divider network.

[0065] The switching circuit 14 includes a delay chip 141 and a supercapacitor 142.

[0066] In its first state, the first switch S1 electrically connects the second input terminal 121 of the second voltage conversion circuit to the first output terminal 112 of the first voltage conversion circuit. In its second state, the first switch S1 electrically connects the second input terminal 121 of the second voltage conversion circuit to the external power supply 10.

[0067] When the second switch S2 is open, it causes the voltage divider network of the second voltage conversion circuit 12 to have a first resistance value. When the second switch S2 is closed, it causes the voltage divider network of the second voltage conversion circuit 12 to have a second resistance value.

[0068] The IoT gateway described in the above embodiments can control the operating state of the second voltage conversion circuit 12 by controlling the first switch S1 and the second switch S2.

[0069] In some embodiments, the first switch S1 includes a first terminal, a second terminal, and a common terminal. The second switch S2 is located in the voltage divider network of the second voltage conversion circuit 12.

[0070] The first terminal of the first switch S1 is connected to the first output terminal 112 of the first voltage conversion circuit, the second terminal of the first switch S1 is connected to the external power supply 10, and the common terminal of the first switch S1 is connected to the second input terminal 121 of the second voltage conversion circuit 12. In the first state, the first terminal of the first switch S1 is electrically connected to the common terminal, so that the second input terminal 121 is electrically connected to the first output terminal 112. In the second state, the second terminal of the first switch S1 is electrically connected to the common terminal, so that the second input terminal 121 is electrically connected to the external power supply 10.

[0071] The voltage divider network of the second voltage conversion circuit 12 includes a first voltage divider branch and a second voltage divider branch connected in parallel with the first voltage divider branch. A first voltage divider resistor is provided on the first voltage divider branch, and a second voltage divider resistor and a second switch S2 are provided on the second voltage divider branch. When the second switch S2 is in the open state, it disconnects the second voltage divider branch, thus giving the voltage divider network a first resistance value. When the second switch S2 is in the closed state, it connects the second voltage divider resistor in parallel with the first voltage divider resistor, thus giving the voltage divider network a second resistance value.

[0072] The IoT gateway described in the above embodiments can change the input voltage of the second voltage conversion circuit 12 by controlling the first switch S1, and can adjust the resistance value of the voltage divider network of the second voltage conversion circuit 12 by controlling the second switch S2, thereby adjusting the input-output ratio of the second voltage conversion circuit 12 and thus controlling the working state of the second voltage conversion circuit 12.

[0073] It should be noted that the switching circuit 14 can control the operating state of the second voltage conversion circuit 12 by controlling the first switch S1 and the second switch S2.

[0074] For example, when there is voltage output at the first output terminal 112, the switching circuit 14 controls the first switch S1 to the first state, so that the second voltage conversion circuit 12 uses the output voltage of the first output terminal as the input voltage, and simultaneously controls the second switch S2 to the open state, so that the second voltage conversion circuit 12 can output a second voltage using a voltage divider network with a first resistance value. When there is no voltage output at the first output terminal 112, the switching circuit 14 controls the first switch S1 to the second state, so that the second voltage conversion circuit 12 uses the external power supply 10 as the input voltage, and simultaneously controls the second switch S2 to the closed state, so that the second voltage conversion circuit 12 can output a second voltage using a voltage divider network with a second resistance value.

[0075] For example, the first switch S1 can be a single-pole double-throw switch.

[0076] It should be noted that the voltage divider network of the second voltage conversion circuit 12 is used to adjust the input-output ratio of the second voltage conversion circuit 12, that is, the ratio of the input voltage to the output voltage. The switching circuit 14 changes the input voltage of the second voltage conversion circuit 12 by controlling the first switch S1. The switching circuit 14 can adjust the resistance value of the voltage divider network of the second voltage conversion circuit 12 by controlling the second switch S2, thereby adjusting the input-output ratio of the second voltage conversion circuit 12 so that the output voltage of the second voltage conversion circuit 12 is always maintained at the second voltage.

[0077] For example, when the second switch S2 is open, the input-output ratio of the second voltage conversion circuit 12 is 12:5, at which time the second voltage conversion circuit 12 can convert 12V voltage to a second voltage of 5V. When the second switch S2 is closed, the input-output ratio of the second voltage conversion circuit 12 is 24:5, at which time the second voltage conversion circuit 12 can convert 24V voltage to a second voltage of 5V.

[0078] For example, a voltage divider network includes a first resistor R1, a second resistor R2, a third resistor R3, and a first inductor L1.

[0079] It should be noted that the voltage conversion chip 123 of the second voltage conversion circuit 12 is used to convert the input voltage.

[0080] It should be noted that the delay chip 141 in the switching circuit 14 can send a control signal to the first switch S1 and the second switch S2 after a predetermined delay. The supercapacitor 142 can store electricity when there is voltage output at the first output terminal 112, so as to power the delay chip 141 when there is no voltage output at the first output terminal 112.

[0081] By controlling the first switch S1 and the second switch S2 through the delay chip 141, false triggering caused by signal jitter can be avoided, and the repeated opening and closing of the switch during signal fluctuations can be prevented, thereby avoiding the ping-pong effect.

[0082] In some embodiments, the switching circuit 14 is configured to detect the state of the first switch S1 and the second switch S2 when there is a voltage output at the first output terminal 112. If the first switch S1 is in the first state and the second switch S2 is in the open state, the states of the first switch S1 and the second switch S2 are kept unchanged.

[0083] The IoT gateway described in the above embodiments can control the second voltage conversion circuit 12 to maintain its working state when there is voltage output at the first output terminal 112, thus ensuring that the main control circuit 15 can work normally.

[0084] In some embodiments, the second voltage conversion circuit 12 is configured to convert the output voltage of the first output terminal 112 using a voltage divider network with a first resistance value when the first switch S1 is in the first state and the second switch S2 is in the open state, so that the second output terminal 122 outputs a second voltage.

[0085] The IoT gateway described in the above embodiments enables the second voltage conversion circuit 12 to convert the first voltage output from the first output terminal 112 into a second voltage using a voltage divider network with a first resistance value.

[0086] In some embodiments, the switching circuit 14 is configured to, if the first switch S1 is in the second state and the second switch S2 is in the closed state, switch the first switch S1 from the second state to the first state and switch the second switch S2 from the closed state to the open state after a predetermined delay.

[0087] The IoT gateway described in the above embodiments can control the second voltage conversion circuit 12 to switch its topology when there is voltage output at the first output terminal 112, enabling the second voltage conversion circuit 12 to output a second voltage and ensuring that the main control circuit 15 can operate normally. Simultaneously, the delay function of the switching circuit 14 can avoid the ping-pong effect, further improving the reliability of the IoT gateway.

[0088] In some embodiments, the switching circuit 14 is configured to detect the state of the first switch S1 and the second switch S2 when there is no voltage output at the first output terminal 112. If the first switch S1 is in the first state and the second switch S2 is in the open state, then after a predetermined delay, the first switch S1 is switched from the first state to the second state, and the second switch S2 is switched from the open state to the closed state.

[0089] The IoT gateway described in the above embodiments can dynamically adjust the topology of the power supply circuit. When there is no voltage output at the first output terminal 112, the second voltage conversion circuit 12 uses the external power supply 10 as its input voltage and outputs a second voltage, ensuring that the main control circuit 15 can operate normally, thereby improving the anti-interference capability and reliability of the IoT gateway. Simultaneously, the delay function of the switching circuit 14 can avoid the ping-pong effect, further improving the reliability of the IoT gateway.

[0090] In some embodiments, the second voltage conversion circuit 12 is configured to convert the external power supply 10 using a voltage divider network with a second resistance value when the first switch S1 is in the second state and the second switch S2 is in the closed state, so that the second output terminal 122 outputs a second voltage.

[0091] The IoT gateway described in the above embodiments enables the second voltage conversion circuit 12 to convert the external power supply 10 into a second voltage using a voltage divider network with a second resistance value.

[0092] In some embodiments, the switching circuit 14 is configured to maintain the states of the first switch S1 and the second switch S2 unchanged if the first switch S1 is in the second state and the second switch S2 is in the closed state.

[0093] The IoT gateway described in the above embodiments can control the second voltage conversion circuit 12 to maintain its working state when there is no voltage output at the first output terminal 112, so as to output the second voltage and ensure that the main control circuit 15 can work normally.

[0094] Figure 3 This is a schematic diagram of the structure of an IoT gateway according to yet another embodiment of this disclosure. Figure 3As shown, the IoT gateway includes a first voltage conversion circuit 11, a second voltage conversion circuit 12, a detection circuit 13, a switching circuit 14, a main control circuit 15, a boost circuit 16, and peripheral circuits.

[0095] The boost circuit 16 is configured to boost the second voltage when there is no voltage output at the first output terminal of the first voltage conversion circuit 11, so as to obtain a third voltage within a preset voltage range.

[0096] The peripheral circuit includes a first peripheral circuit 171 and a second peripheral circuit 172. The first peripheral circuit 171 is configured to operate using a first voltage when there is a voltage output at the first output terminal of the first voltage conversion circuit 11, and to operate using a third voltage when there is no voltage output at the first output terminal.

[0097] The IoT gateway described in the above embodiments can ensure power supply to the peripheral circuits regardless of whether there is voltage output at the first output terminal, thereby ensuring that the IoT gateway can realize its business functions and improving the reliability of the IoT gateway.

[0098] It should be noted that, due to the different power supply requirements of different components, the first peripheral circuit 171 operates using a first voltage, while the second peripheral circuit 172 operates using a second voltage. When there is no voltage output at the first output terminal of the first voltage conversion circuit 11, although the second voltage conversion circuit 12 can continue to output the second voltage through the switching circuit 14, allowing the second peripheral circuit 172 to operate normally, the first voltage within the preset voltage range is still lacking. Therefore, the first peripheral circuit 171 loses power and cannot operate normally. Thus, the second voltage output by the second voltage conversion circuit 12 needs to be boosted by the boost circuit 16 to obtain a third voltage within the preset voltage range, enabling the first peripheral circuit 171 to operate using the third voltage.

[0099] For example, the third input terminal of the boost circuit 16 is connected to the second output terminal of the second voltage conversion circuit 12, and the third output terminal of the boost circuit 16 is connected to the first peripheral circuit 171. The boost circuit 16 boosts the second voltage to obtain a third voltage within a preset voltage range, so that when there is no voltage output at the first output terminal, the third voltage can replace the first voltage to power the first peripheral circuit 171.

[0100] It should be noted that the third output terminal of the boost circuit 16 can also be connected to the first output terminal of the first voltage conversion circuit 11. In addition to powering the first peripheral circuit 171, the third voltage can also power the detection circuit 13 and the switching circuit 14.

[0101] In some embodiments, the IoT gateway further includes a third voltage conversion circuit 18.

[0102] The third voltage conversion circuit 18 is configured to convert the second voltage to output a fourth voltage, wherein the fourth voltage is less than the second voltage.

[0103] The main control circuit 15 is configured to operate using the second voltage and the fourth voltage.

[0104] The IoT gateway described in the above embodiments can provide multiple different voltages to the main control circuit and other devices to meet the power supply requirements of different devices.

[0105] For example, the second voltage is 5V, and the third voltage conversion circuit 18 converts the second voltage to a fourth voltage, which is 3.3V. The main control circuit 15 operates using both 5V and 3.3V voltages simultaneously.

[0106] It should be noted that IoT gateways can also include other voltage conversion circuits to output different voltages to meet the power supply needs of different devices.

[0107] Figure 4 This is a schematic diagram of the structure of an IoT gateway according to yet another embodiment of this disclosure. Figure 4 and Figure 2 The difference is that, for example Figure 4 As shown, the IoT gateway also includes a boost circuit 16 and a third switch S3.

[0108] When the third switch S3 is in the open state, it disconnects the electrical connection between the second output terminal 122 of the second voltage conversion circuit 12 and the boost circuit 16. When the third switch S3 is in the closed state, it connects the second output terminal 122 of the second voltage conversion circuit 12 to the boost circuit 16.

[0109] The IoT gateway described in the above embodiments can control the boost circuit 16 to boost the second voltage by controlling the third switch S3.

[0110] It should be noted that, based on the detection result sent by the detection circuit 13, the switching circuit 14 can control the boost circuit 16 to boost the second voltage by controlling the third switch S3.

[0111] In some embodiments, the switching circuit 14 is configured to detect the state of the third switch S3 when there is no voltage output at the first output terminal 112. If the third switch S3 is in the open state, it is switched from the open state to the closed state after a predetermined delay. If the third switch S3 is in the closed state, its state is maintained unchanged.

[0112] The IoT gateway described in the above embodiments can control the third switch S3 when there is no voltage output at the first output terminal 112, so that the boost circuit 16 boosts the second voltage, thereby ensuring power supply to the peripheral circuit and improving the reliability of the IoT gateway.

[0113] In some embodiments, the switching circuit 14 is configured to detect the state of the third switch S3 when there is a voltage output at the first output terminal 112. If the third switch S3 is in the open state, the state of the third switch S3 is maintained unchanged; if the third switch S3 is in the closed state, the third switch S3 is switched from the closed state to the open state after a predetermined delay.

[0114] The IoT gateway described in the above embodiments can control the third switch S3 when there is voltage output at the first output terminal 112, so that the boost circuit 16 is disconnected from the second output terminal 122, thereby avoiding a conflict between the voltage output by the first voltage conversion circuit 11 and the voltage output by the boost circuit 16.

[0115] It should be noted that the switching circuit 14 controls the first switch S1, the second switch S2, and the third switch S3 synchronously based on the detection results sent by the detection circuit 13.

[0116] For example, when there is no voltage output at the first output terminal 112, the switching circuit 14 controls the first switch S1 to be in the second state and controls the second switch S2 to be in the closed state, so that the second voltage conversion circuit 12 converts the external power supply 10 into the second voltage. At the same time, the switching circuit 14 controls the third switch S3 to be in the closed state, so that the boost circuit 16 converts the second voltage output by the second voltage conversion circuit 12 into the third voltage.

[0117] By controlling the second voltage conversion circuit 12 and the boost circuit 16 to work together through the switching circuit 14, the normal function of the IoT gateway can be maintained.

[0118] Figure 5 This is a schematic diagram of the structure of an IoT gateway according to yet another embodiment of this disclosure. Figure 5 As shown, the IoT gateway includes a first voltage conversion circuit 11, a second voltage conversion circuit 12, a detection circuit 13, a switching circuit 14, a main control circuit 15, and a reset circuit 19.

[0119] The detection circuit 13 is configured to send a trigger signal to the reset circuit 19 when the output voltage of the first output terminal of the first voltage conversion circuit 11 is not within the preset voltage range.

[0120] The reset circuit 19 is configured to send a reset signal to the main control circuit 15 after receiving a trigger signal.

[0121] The main control circuit 15 is configured to perform a reset operation based on a reset signal, calculate the reset duration after the reset is completed, compare the reset duration with a predetermined duration, and send diagnostic information corresponding to the comparison result to the server 20.

[0122] The IoT gateway described in the above embodiments can diagnose the fault type of the first voltage conversion circuit 11 and feed it back to the server 20 by calculating the reset time of the main control circuit when the output voltage of the first output terminal of the first voltage conversion circuit 11 is not within the preset voltage range. This enables the server 20 to determine whether the IoT gateway needs to be repaired, thereby further improving the anti-interference capability and reliability of the IoT gateway.

[0123] It should be noted that server 20 can be a server located in the cloud.

[0124] It should be noted that the output voltage of the first output terminal of the first voltage conversion circuit 11 is not within the preset voltage range, including the case where there is no output voltage at the first output terminal.

[0125] For example, suppose the preset voltage range of the first voltage is 11V-13V. When the output voltage of the first output terminal is 0V, there is no output voltage at the first output terminal, and the output voltage of the first output terminal is not within the preset voltage range.

[0126] For example, when the output voltage of the first output terminal is 10V, the first output terminal has an output voltage, but the output voltage of the first output terminal is not within the preset voltage range.

[0127] For example, when the output voltage of the first output terminal is 15V, the first output terminal has an output voltage, but the output voltage of the first output terminal is not within the preset voltage range.

[0128] For example, when the output voltage of the first output terminal is 12V, the first output terminal has an output voltage, and the output voltage of the first output terminal is within the preset voltage range.

[0129] It should be noted that the predetermined duration is the time required for the main control circuit 15 to restart when it is operating using the second voltage.

[0130] In some embodiments, the main control circuit 15 is configured to send first diagnostic information to the server 20 indicating an abnormality in the first voltage conversion circuit 11 if the reset duration is less than a predetermined duration. If the reset duration is greater than or equal to the predetermined duration, it sends second diagnostic information to the server 20 indicating damage to the first voltage conversion circuit 11.

[0131] The IoT gateway described in the above embodiments can accurately diagnose abnormalities in the first voltage conversion circuit 11 and report them to the server 20, so that the server 20 can determine whether the IoT gateway needs to be repaired, thereby improving the reliability of the IoT gateway.

[0132] It should be noted that when the output voltage of the first output terminal of the first voltage conversion circuit 11 is not within the preset voltage range, the detection circuit 13 sends a trigger signal to the reset circuit 19, thereby controlling the main control circuit 15 to reset. There are two possibilities when the output voltage of the first output terminal is not within the preset voltage range: no voltage output at the first output terminal, or voltage output at the first output terminal.

[0133] For example, if the preset voltage range of the first voltage is 11V-13V, then the output voltage of the first output terminal not falling within the preset voltage range includes output voltages greater than 13V or output voltages less than 11V. Specifically, if the output voltage of the first output terminal is 0V, then there is no voltage output from the first output terminal. If the output voltage of the first output terminal is not 0V, then there is voltage output from the first output terminal.

[0134] It should be noted that when the output voltage of the first output terminal of the first voltage conversion circuit 11 is not within the preset voltage range, and there is no voltage output at the first output terminal, the detection circuit 13 sends a detection result to the switching circuit 14 so that the switching circuit 14 controls the second voltage conversion circuit 12 to switch its topology. Simultaneously, the detection circuit 13 sends a trigger signal to the reset circuit 19 to control the main control circuit 15 to reset. Since the switching circuit 14 needs a predetermined delay before switching the states of the first switch S1 and the second switch S2, the second voltage conversion circuit 12 needs a certain amount of time to complete the topology switching. After receiving the reset signal, the main control circuit 15 must wait for the second voltage conversion circuit 12 to complete the topology switching and for power to be restored before resetting. At this time, the reset time of the main control circuit 15 will be greater than or equal to the predetermined time.

[0135] It should be noted that when the output voltage of the first output terminal of the first voltage conversion circuit 11 is outside the preset voltage range, and there is voltage output at the first output terminal, the detection circuit 13 sends the detection result to the switching circuit 14. Simultaneously, the detection circuit 13 sends a trigger signal to the reset circuit 19. Since there is voltage output at the first output terminal, the second output terminal of the second voltage conversion circuit 12 can also have voltage output. Therefore, the main control circuit 15 can directly reset after receiving the reset signal. In this case, the reset time of the main control circuit 15 will be less than the predetermined time.

[0136] It should be noted that if there is no voltage output at the first output terminal, i.e., the output voltage at the first output terminal is 0V, it indicates that the first voltage conversion circuit 11 is damaged. If there is voltage output at the first output terminal, i.e., the output voltage at the first output terminal is not 0V, but the output voltage at the first output terminal is not within the preset voltage range, it indicates that the first voltage conversion circuit 11 is malfunctioning. Therefore, by comparing the reset time of the main control circuit 15 with the preset time, the fault condition of the first voltage conversion circuit 11 can be diagnosed.

[0137] It should be noted that the subsequent repair plan proposed by the server 20 will vary depending on the specific fault condition of the first voltage conversion circuit 11. If the first voltage conversion circuit 11 only exhibits an abnormality, the repair requirement is not high and repair can be postponed. If the first voltage conversion circuit 11 is damaged, it needs to be repaired as soon as possible to restore the full functionality of the IoT gateway.

[0138] Figure 6 This is a schematic diagram of the structure of a building automation system according to an embodiment of this disclosure. Figure 6 As shown, the building automation system includes multiple IoT gateways 611, 612, ..., 61n and a server 62.

[0139] Each of the multiple IoT gateways 611, 612, ..., 61n is an IoT gateway for... Figures 1 to 5 The IoT gateway shown in any of the embodiments.

[0140] Server 62 is configured to receive diagnostic information corresponding to the comparison results sent by multiple IoT gateways 611, 612, ..., 61n.

[0141] The building automation system described in the above embodiments can dynamically adjust the topology of the power circuit in the IoT gateway, thereby improving the gateway's anti-interference capability and reliability. Simultaneously, it can promptly diagnose power circuit faults and report them to the server for maintenance of the IoT gateway.

[0142] It should be noted that server 62 can be a server located in the cloud.

[0143] It should be noted that, based on the diagnostic information sent by multiple IoT gateways 611, 612, ..., 61n, the server 62 can determine a maintenance plan for each IoT gateway so that the IoT gateway can work properly.

[0144] Figure 7 This is a schematic flowchart illustrating a power control method according to an embodiment of the present disclosure. In some embodiments, the following power control method is used for... Figures 1 to 5 The IoT gateway shown in any of the embodiments includes steps 71-73.

[0145] In step 71, the detection circuit detects the output voltage of the first output terminal of the first voltage conversion circuit and sends the detection result to the switching circuit. The first input terminal of the first voltage conversion circuit is electrically connected to an external power supply. When the first voltage conversion circuit is in normal operating condition, the first voltage output from the first output terminal is within a preset voltage range.

[0146] For example, the external power supply voltage is 24V, and the preset voltage range of the first voltage is 11V-13V. When the first voltage conversion circuit is in normal working condition, the first voltage output from the first output terminal of the first voltage conversion circuit can be 12V.

[0147] For example, when the voltage output by the first output terminal is 0V, 10V, or 15V, the output voltage of the first output terminal is not within the preset voltage range. When the voltage output by the first output terminal is 11V, 12V, or 13V, the output voltage of the first output terminal is within the preset voltage range.

[0148] It should be noted that the detection circuit monitors the output voltage of the first output terminal of the first voltage conversion circuit in real time and sends the detection result to the switching circuit. The detection result includes whether there is voltage output at the first output terminal or not. When the output voltage at the first output terminal changes, the switching circuit can respond promptly.

[0149] For example, when the voltage output from the first output terminal is 10V, 12V, or 15V, the detection result is that there is voltage output from the first output terminal. When the voltage output from the first output terminal is 0V, the detection result is that there is no voltage output from the first output terminal. If there is no voltage output from the first output terminal, it indicates that the first voltage conversion circuit is damaged.

[0150] In step 72, the switching circuit controls the operating state of the second voltage conversion circuit based on the detection result. Specifically, if the detection result indicates that there is voltage output at the first output terminal, the second input terminal of the second voltage conversion circuit is electrically connected to the first output terminal. If the detection result indicates that there is no voltage output at the first output terminal, the second input terminal is electrically connected to an external power supply.

[0151] It should be noted that when the first output terminal of the first voltage conversion circuit has a voltage output, the second input terminal of the second voltage conversion circuit is electrically connected to the first output terminal of the first voltage conversion circuit, and the second voltage conversion circuit converts the first voltage output from the first output terminal into a second voltage. When the first output terminal of the first voltage conversion circuit does not have a voltage output, the second input terminal of the second voltage conversion circuit is directly electrically connected to an external power supply, and directly converts the external power supply into a second voltage.

[0152] For example, the second voltage can be 5V.

[0153] In some embodiments, the switching circuit via Figure 8 The method shown controls the first and second switches to control the operating state of the second voltage conversion circuit.

[0154] The method described in the above embodiments enables control of the operating state of the second voltage conversion circuit by controlling the first switch and the second switch.

[0155] Figure 8 This is a schematic flowchart illustrating a power control method according to another embodiment of the present disclosure. In some embodiments, the following power control method is used for... Figures 1 to 5 The IoT gateway shown in any of the embodiments includes steps 801-807.

[0156] In step 801, it is determined whether there is voltage output at the first output terminal.

[0157] If there is a voltage output at the first output terminal, proceed to step 802.

[0158] In step 802, the switching circuit detects the state of the first switch and the second switch.

[0159] Under condition one, proceed to step 803. Condition one is that the first switch is in the first state and the second switch is in the open state. Specifically, in the first state, the first switch electrically connects the second input terminal to the first output terminal; in the open state, the voltage divider network of the second voltage conversion circuit has a first resistance value.

[0160] In step 803, the switching circuit maintains the states of the first switch and the second switch unchanged.

[0161] The method described in the above embodiments enables the second voltage conversion circuit to maintain its working state when there is voltage output at the first output terminal, thus ensuring that the main control circuit can work normally.

[0162] In some embodiments, when the first switch is in the first state and the second switch is in the open state, the second voltage conversion circuit uses a voltage divider network with a first resistance value to convert the output voltage of the first output terminal so that the second output terminal outputs a second voltage.

[0163] The IoT gateway described in the above embodiments enables the second voltage conversion circuit to convert the first voltage output from the first output terminal into a second voltage using a voltage divider network with a first resistance value.

[0164] Under condition two, proceed to step 804. Condition two is that the first switch is in the second state and the second switch is in the closed state. Specifically, in the second state, the first switch electrically connects the second input terminal to the external power supply, and in the closed state, the voltage divider network of the second voltage conversion circuit has a second resistance value.

[0165] In step 804, after a predetermined delay, the switching circuit switches the first switch from the second state to the first state and the second switch from the closed state to the open state.

[0166] The method described in the above embodiments enables the second voltage conversion circuit to switch its topology when there is voltage output at the first output terminal, allowing the second voltage conversion circuit to output a second voltage and ensuring the normal operation of the main control circuit. Simultaneously, the delay function of the switching circuit avoids the ping-pong effect, further improving the reliability of the IoT gateway.

[0167] For example, when there is voltage output at the first output terminal, the switching circuit controls the first switch to the first state, so that the second voltage conversion circuit uses the output voltage of the first output terminal as the input voltage, and simultaneously controls the second switch to the open state, so that the second voltage conversion circuit can output the second voltage. When there is no voltage output at the first output terminal, the switching circuit controls the first switch to the second state, so that the second voltage conversion circuit uses an external power supply as the input voltage, and simultaneously controls the second switch to the closed state, so that the second voltage conversion circuit can output the second voltage.

[0168] For example, the first switch could be a single-pole double-throw switch.

[0169] It should be noted that the voltage divider network of the second voltage conversion circuit is used to adjust the input-output ratio of the second voltage conversion circuit, that is, the ratio of the input voltage to the output voltage. The switching circuit changes the input voltage of the second voltage conversion circuit by controlling the first switch. The switching circuit adjusts the input-output ratio of the second voltage conversion circuit by controlling the second switch, so that the output voltage of the second voltage conversion circuit is the second voltage.

[0170] It should be noted that the delay chip in the switching circuit can send a control signal to the first and second switches after a predetermined delay. The supercapacitor can store electricity when there is voltage output at the first output terminal, so as to power the delay chip when there is no voltage output at the first output terminal.

[0171] By controlling the first and second switches with a delay chip, false triggering caused by signal jitter can be avoided, and the repeated opening and closing of the switch during signal fluctuations can be prevented, thus avoiding the ping-pong effect.

[0172] If there is no voltage output at the first output terminal, proceed to step 805.

[0173] In step 805, the switching circuit detects the state of the first switch and the second switch.

[0174] Under condition one, proceed to step 806. Condition one is that the first switch is in the first state and the second switch is in the open state.

[0175] In step 806, after a predetermined delay, the switching circuit switches the first switch from the first state to the second state and the second switch from the open state to the closed state.

[0176] The method described in the above embodiments can dynamically adjust the topology of the power supply circuit. When there is no voltage output at the first output terminal, the second voltage conversion circuit can use the external power supply as the input voltage and output the second voltage, ensuring that the main control circuit can work normally, thereby improving the anti-interference capability and reliability of the IoT gateway.

[0177] In some implementations, when the first switch is in the second state and the second switch is in the closed state, the second voltage conversion circuit uses a voltage divider network with a second resistance value to convert the external power supply so that the second output terminal outputs a second voltage.

[0178] The method described in the above embodiments enables the second voltage conversion circuit to convert external power supply into a second voltage using a voltage divider network with a second resistance value.

[0179] Under condition two, proceed to step 807. Condition two is that the first switch is in the second state and the second switch is in the closed state.

[0180] In step 807, the switching circuit maintains the states of the first switch and the second switch unchanged.

[0181] The method described in the above embodiments enables the second voltage conversion circuit to maintain its working state even when there is no voltage output at the first output terminal, so as to output a second voltage and ensure that the main control circuit can work normally.

[0182] In step 73, the main control circuit operates using the second voltage output from the second output terminal of the second voltage conversion circuit. The first voltage is greater than the second voltage.

[0183] The IoT gateway described in the above embodiments can dynamically adjust the topology of the power circuit to ensure that the main control circuit can work normally, thereby improving the anti-interference capability and reliability of the IoT gateway.

[0184] In some embodiments, the second output terminal inputs the second voltage to the third voltage conversion circuit, so that the third voltage conversion circuit outputs a fourth voltage. The fourth voltage is less than the second voltage. The main control circuit operates using both the second and fourth voltages.

[0185] The methods described in the above embodiments can provide multiple different voltages to the main control circuit and other devices to meet the power supply requirements of different devices.

[0186] For example, the second voltage is 5V, and the third voltage conversion circuit converts the second voltage to a fourth voltage, which is 3.3V. The main control circuit operates using both 5V and 3.3V voltages simultaneously.

[0187] It should be noted that different voltages can also be output through other voltage conversion circuits to meet the power supply requirements of different devices.

[0188] In some embodiments, when there is a voltage output at the first output terminal, the peripheral circuit operates using the first voltage. When there is no voltage output at the first output terminal, the boost circuit boosts the second voltage to obtain a third voltage within a preset voltage range. The peripheral circuit operates using the third voltage.

[0189] The method described in the above embodiments ensures power supply to the peripheral circuits regardless of whether there is voltage output at the first output terminal, thereby ensuring that the IoT gateway can perform its business functions and improving the reliability of the IoT gateway.

[0190] It should be noted that, due to the different power supply requirements of different components, the first peripheral circuit operates using a first voltage, while the second peripheral circuit operates using a second voltage. Even when there is no voltage output at the first output terminal of the first voltage conversion circuit, although the second voltage conversion circuit can continue to output the second voltage by controlling it through a switching circuit, allowing the second peripheral circuit to operate normally, the first voltage within the preset voltage range is still lacking. Consequently, the first peripheral circuit loses power and cannot operate normally. Therefore, a boost circuit is needed to boost the second voltage output by the second voltage conversion circuit to obtain a third voltage within the preset voltage range, enabling the first peripheral circuit to operate using the third voltage.

[0191] For example, the third input terminal of the boost circuit is connected to the second output terminal of the second voltage conversion circuit, and the third output terminal of the boost circuit is connected to the first peripheral circuit. The boost circuit boosts the second voltage to obtain a third voltage within a preset voltage range, so that when there is no voltage output at the first output terminal, the third voltage can replace the first voltage to power the first peripheral circuit.

[0192] It should be noted that the third output terminal of the boost circuit can also be connected to the first output terminal of the first voltage conversion circuit. Besides powering the first peripheral circuit, the third voltage can also power the detection circuit and the switching circuit.

[0193] It should be noted that the switching circuit can control the boost circuit to boost the second voltage by controlling the third switch.

[0194] In some embodiments, when there is no voltage output at the first output terminal, the switching circuit detects the state of the third switch. When the third switch is in the open state, it disconnects the electrical connection between the second output terminal and the boost circuit; when the third switch is in the closed state, it connects the second output terminal to the boost circuit. If the third switch is in the open state, the switching circuit switches the third switch from the open state to the closed state after a predetermined delay. If the third switch is in the closed state, the switching circuit maintains the state of the third switch unchanged.

[0195] The method described in the above embodiments enables the control of the third switch when there is no voltage output at the first output terminal, so that the boost circuit boosts the second voltage, thereby ensuring the power supply to the peripheral circuit and improving the reliability of the IoT gateway.

[0196] In some embodiments, when there is a voltage output at the first output terminal, the switching circuit detects the state of the third switch. If the third switch is in the open state, the switching circuit maintains the state of the third switch unchanged. If the third switch is in the closed state, the switching circuit switches the third switch from the closed state to the open state after a predetermined delay.

[0197] The method described in the above embodiments enables the control of the third switch when there is voltage output at the first output terminal, thereby disconnecting the boost circuit from the second output terminal and preventing a conflict between the voltage output by the first voltage conversion circuit and the voltage output by the boost circuit.

[0198] It should be noted that the switching circuit synchronously controls the first switch, the second switch, and the third switch based on the detection results sent by the detection circuit.

[0199] For example, when there is no voltage output at the first output terminal, the switching circuit controls the first switch to the second state and controls the second switch to the closed state so that the second voltage conversion circuit can convert the external power supply into the second voltage. At the same time, the switching circuit controls the third switch to the closed state so that the boost circuit can convert the second voltage output by the second voltage conversion circuit into the third voltage.

[0200] By switching the circuit to control the second voltage conversion circuit to work in conjunction with the boost circuit, the normal function of the IoT gateway can be maintained.

[0201] In some embodiments, the method by which the main control circuit diagnoses the fault condition of the first voltage conversion circuit and reports it to the server includes the following steps S1-S4.

[0202] In step S1, if the output voltage at the first output terminal is not within the preset voltage range, the detection circuit sends a trigger signal to the reset circuit.

[0203] In step S2, after receiving the trigger signal, the reset circuit sends a reset signal to the main control circuit.

[0204] In step S3, the main control circuit performs a reset operation based on the reset signal and calculates the reset duration after the reset is completed.

[0205] In step S4, the main control circuit compares the reset duration with the predetermined duration and sends diagnostic information corresponding to the comparison result to the server.

[0206] By using the method described in the above embodiments, when the output voltage of the first output terminal of the first voltage conversion circuit is not within the preset voltage range, the fault type of the first voltage conversion circuit can be diagnosed and fed back to the server by calculating the reset time of the main control circuit, thereby realizing the reporting function of circuit faults. This facilitates the server in determining whether the IoT gateway needs to be repaired, and further improves the anti-interference capability and reliability of the IoT gateway.

[0207] It should be noted that the server can be a server located in the cloud.

[0208] It should be noted that the output voltage of the first output terminal of the first voltage conversion circuit is not within the preset voltage range, including the case where there is no output voltage at the first output terminal.

[0209] For example, suppose the preset voltage range of the first voltage is 11V-13V. When the output voltage of the first output terminal is 0V, there is no output voltage at the first output terminal, and the output voltage of the first output terminal is not within the preset voltage range.

[0210] For example, when the output voltage of the first output terminal is 10V, the first output terminal has an output voltage, but the output voltage of the first output terminal is not within the preset voltage range.

[0211] For example, when the output voltage of the first output terminal is 15V, the first output terminal has an output voltage, but the output voltage of the first output terminal is not within the preset voltage range.

[0212] For example, when the output voltage of the first output terminal is 12V, the first output terminal has an output voltage, and the output voltage of the first output terminal is within the preset voltage range.

[0213] It should be noted that the preset duration is the time required for the main control circuit to restart when it is operating using the second voltage.

[0214] In some embodiments, if the reset time is less than a predetermined time, the main control circuit sends first diagnostic information to the server indicating an abnormality in the first voltage conversion circuit. If the reset time is greater than or equal to the predetermined time, the main control circuit sends second diagnostic information to the server indicating damage to the first voltage conversion circuit.

[0215] The method described in the above embodiments can accurately diagnose abnormalities in the first voltage conversion circuit and report them to the server so that the server can determine whether the IoT gateway needs to be repaired, thereby improving the reliability of the IoT gateway.

[0216] It should be noted that when the output voltage at the first output terminal of the first voltage conversion circuit is outside the preset voltage range, the detection circuit sends a trigger signal to the reset circuit, thereby controlling the main control circuit to reset. There are two scenarios when the output voltage at the first output terminal is outside the preset voltage range: no voltage output at the first output terminal, or voltage output at the first output terminal.

[0217] For example, if the preset voltage range of the first voltage is 11V-13V, then the output voltage of the first output terminal not falling within the preset voltage range includes output voltages greater than 13V or output voltages less than 11V. Specifically, if the output voltage of the first output terminal is 0V, then there is no voltage output from the first output terminal. If the output voltage of the first output terminal is not 0V, then there is voltage output from the first output terminal.

[0218] It should be noted that when the output voltage of the first output terminal of the first voltage conversion circuit is outside the preset voltage range, and there is no voltage output at the first output terminal, the detection circuit sends a detection result to the switching circuit. This allows the switching circuit to control the second voltage conversion circuit to switch its topology. Simultaneously, the detection circuit sends a trigger signal to the reset circuit to control the main control circuit to reset. Since the switching circuit requires a predetermined delay before switching the states of the first and second switches, the second voltage conversion circuit's topology switching requires a certain amount of time to complete. After receiving the reset signal, the main control circuit must wait for the second voltage conversion circuit's topology switching to complete and power supply to be restored before resetting. In this case, the reset time of the main control circuit will be greater than or equal to the predetermined time.

[0219] It should be noted that when the output voltage of the first output terminal of the first voltage conversion circuit is outside the preset voltage range, the detection circuit sends the detection result to the switching circuit while there is voltage output at the first output terminal. Simultaneously, the detection circuit sends a trigger signal to the reset circuit. Since there is voltage output at the first output terminal, the second output terminal of the second voltage conversion circuit can also have voltage output. Therefore, the main control circuit can directly reset upon receiving the reset signal. In this case, the reset time of the main control circuit will be less than the predetermined time.

[0220] It should be noted that if there is no voltage output at the first output terminal, i.e., the output voltage at the first output terminal is 0V, it indicates that the first voltage conversion circuit is damaged. If there is voltage output at the first output terminal, i.e., the output voltage at the first output terminal is not 0V, but the output voltage at the first output terminal is outside the preset voltage range, it indicates that the first voltage conversion circuit is malfunctioning. Therefore, by comparing the reset time of the main control circuit with the preset time, the fault condition of the first voltage conversion circuit can be diagnosed.

[0221] It's important to note that the subsequent repair plan proposed by the server will vary depending on the specific fault condition of the first voltage conversion circuit. If the first voltage conversion circuit only exhibits a minor malfunction, the repair requirement is low and can be postponed. However, if the first voltage conversion circuit is damaged, it needs to be repaired as soon as possible to restore the full functionality of the IoT gateway.

[0222] In some embodiments, the functional units described above may be implemented as general-purpose processors, programmable logic controllers (PLCs), digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or any suitable combination thereof for performing the functions described herein.

[0223] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.

[0224] The description in this disclosure is provided for illustrative and descriptive purposes only and is not intended to be exhaustive or to limit the disclosure to its forms. Many modifications and variations will be apparent to those skilled in the art. The embodiments were chosen and described in order to better illustrate the principles and practical application of this disclosure and to enable those skilled in the art to understand this disclosure and to design various embodiments with various modifications suitable for a particular purpose.

Claims

1. An Internet of Things (IoT) gateway, comprising: A first voltage conversion circuit and a second voltage conversion circuit, wherein the first input terminal of the first voltage conversion circuit is electrically connected to an external power supply, and when the first voltage conversion circuit is in normal working condition, the first voltage output by the first output terminal of the first voltage conversion circuit is within a preset voltage range. The detection circuit is configured to detect the output voltage of the first output terminal and send the detection result to the switching circuit. The switching circuit is configured to control the operating state of the second voltage conversion circuit according to the detection result, wherein if the detection result is that there is voltage output at the first output terminal, the second input terminal of the second voltage conversion circuit is electrically connected to the first output terminal; if the detection result is that there is no voltage output at the first output terminal, the second input terminal is electrically connected to the external power supply. The main control circuit is configured to operate using a second voltage output from the second output terminal, wherein the first voltage is greater than the second voltage.

2. The IoT gateway according to claim 1 further includes a first switch and a second switch, wherein, The first switch is configured to electrically connect the second input terminal to the first output terminal in a first state; The second switch is configured to, when in the off state, cause the voltage divider network of the second voltage conversion circuit to have a first resistance value; The switching circuit is configured to control the operating state of the second voltage conversion circuit by controlling the states of the first switch and the second switch. When there is a voltage output at the first output terminal, the states of the first switch and the second switch are detected. If the first switch is in the first state and the second switch is in the open state, the states of the first switch and the second switch are kept unchanged.

3. The IoT gateway according to claim 2, wherein, The second voltage conversion circuit is configured to convert the output voltage of the first output terminal using a voltage divider network having the first resistance value when the first switch is in the first state and the second switch is in the open state, so that the second output terminal outputs the second voltage.

4. The IoT gateway according to claim 2, wherein, The first switch is configured to, in the second state, electrically connect the second input terminal to the external power supply; The second switch is configured to, when closed, give the voltage divider network of the second voltage conversion circuit a second resistance value; The switching circuit is configured such that if the first switch is in the second state and the second switch is in the closed state, after a predetermined delay, the first switch is switched from the second state to the first state, and the second switch is switched from the closed state to the open state.

5. The IoT gateway according to claim 4, wherein, The switching circuit is configured to detect the state of the first switch and the second switch when there is no voltage output at the first output terminal. If the first switch is in the first state and the second switch is in the open state, then after the predetermined delay, the first switch is switched from the first state to the second state, and the second switch is switched from the open state to the closed state.

6. The IoT gateway according to claim 5, wherein, The second voltage conversion circuit is configured to convert the external power supply using a voltage divider network with the second resistance value when the first switch is in the second state and the second switch is in the closed state, so that the second output terminal outputs the second voltage.

7. The IoT gateway according to claim 5, wherein, The switching circuit is configured to maintain the states of the first switch and the second switch unchanged if the first switch is in the second state and the second switch is in the closed state.

8. The IoT gateway according to claim 7, wherein, The first terminal of the first switch is connected to the first output terminal of the first voltage conversion circuit, the second terminal of the first switch is connected to the external power supply, and the common terminal of the first switch is connected to the second input terminal of the second voltage conversion circuit. In a first state, the first terminal of the first switch is electrically connected to the common terminal so that the second input terminal is electrically connected to the first output terminal. In a second state, the second terminal of the first switch is electrically connected to the common terminal so that the second input terminal is electrically connected to the external power supply. The voltage divider network of the second voltage conversion circuit includes a first voltage divider branch and a second voltage divider branch connected in parallel with the first voltage divider branch. A first voltage divider resistor is provided on the first voltage divider branch, and a second voltage divider resistor and a second switch are provided on the second voltage divider branch. When the second switch is in the open state, the second voltage divider branch is disconnected so that the voltage divider network has a first resistance value. When the second switch is in the closed state, the second voltage divider resistor is connected in parallel with the first voltage divider resistor so that the voltage divider network has a second resistance value.

9. The IoT gateway according to claim 1 further includes a boost circuit and peripheral circuits, wherein, The boost circuit is configured to boost the second voltage when there is no voltage output at the first output terminal, so as to obtain a third voltage within the preset voltage range; The peripheral circuit is configured to operate using the first voltage when there is a voltage output at the first output terminal, and to operate using the third voltage when there is no voltage output at the first output terminal.

10. The IoT gateway according to claim 9, further comprising a third switch, wherein, When the third switch is in the open state, it disconnects the electrical connection between the second output terminal and the boost circuit; when the third switch is in the closed state, it connects the second output terminal to the boost circuit. The switching circuit is configured to detect the state of the third switch when there is no voltage output at the first output terminal. If the third switch is in the open state, the circuit switches the third switch from the open state to the closed state after a predetermined delay. If the third switch is in the closed state, the circuit maintains the state of the third switch unchanged.

11. The IoT gateway according to claim 10, wherein, The switching circuit is configured to detect the state of the third switch when there is a voltage output at the first output terminal. If the third switch is in the open state, the state of the third switch is maintained unchanged. If the third switch is in the closed state, the third switch is switched from the closed state to the open state after the predetermined delay.

12. The IoT gateway according to claim 1 further includes a reset circuit, wherein, The detection circuit is configured to send a trigger signal to the reset circuit when the output voltage at the first output terminal is not within the preset voltage range. The reset circuit is configured to send a reset signal to the main control circuit after receiving the trigger signal; The main control circuit is configured to perform a reset operation based on the reset signal, calculate the reset duration after the reset is completed, compare the reset duration with a predetermined duration, and send diagnostic information corresponding to the comparison result to the server.

13. The IoT gateway according to claim 12, wherein, The main control circuit is configured to send first diagnostic information to the server indicating an abnormality in the first voltage conversion circuit when the reset duration is less than the predetermined duration, and to send second diagnostic information to the server indicating damage to the first voltage conversion circuit when the reset duration is greater than or equal to the predetermined duration.

14. A building automation system, comprising: Multiple IoT gateways as described in any one of claims 1-13; The server is configured to receive diagnostic information corresponding to the comparison results sent by the plurality of IoT gateways.

15. A power supply control method, comprising: The detection circuit detects the output voltage of the first output terminal of the first voltage conversion circuit and sends the detection result to the switching circuit. The first input terminal of the first voltage conversion circuit is electrically connected to an external power supply. When the first voltage conversion circuit is in normal working condition, the first voltage output by the first output terminal is within a preset voltage range. The switching circuit controls the operating state of the second voltage conversion circuit according to the detection result. If the detection result is that there is voltage output at the first output terminal, the second input terminal of the second voltage conversion circuit is electrically connected to the first output terminal. If the detection result is that there is no voltage output at the first output terminal, the second input terminal is electrically connected to the external power supply. The main control circuit operates using the second voltage output from the second output terminal of the second voltage conversion circuit, wherein the first voltage is greater than the second voltage.

16. The power control method according to claim 15, wherein, The operating states of the control second voltage conversion circuit include: When there is voltage output at the first output terminal, the switching circuit detects the state of the first switch and the second switch; If the first switch is in the first state and the second switch is in the open state, the switching circuit maintains the states of the first switch and the second switch unchanged. In the first state, the first switch electrically connects the second input terminal to the first output terminal, and in the open state, the second switch causes the voltage divider network of the second voltage conversion circuit to have a first resistance value.

17. The power control method according to claim 16, wherein, The control of the second voltage conversion circuit's operating state also includes: If the first switch is in the second state and the second switch is in the closed state, the switching circuit will switch the first switch from the second state to the first state and switch the second switch from the closed state to the open state after a predetermined delay. In the second state, the first switch connects the second input terminal to the external power supply. In the closed state, the second switch causes the voltage divider network of the second voltage conversion circuit to have a second resistance value.

18. The power control method according to claim 17, wherein, The control of the second voltage conversion circuit's operating state also includes: When there is no voltage output at the first output terminal, the switching circuit detects the state of the first switch and the second switch; If the first switch is in the first state and the second switch is in the open state, then after the predetermined delay, the switching circuit switches the first switch from the first state to the second state and switches the second switch from the open state to the closed state.

19. The power control method according to claim 15, further comprising: When there is a voltage output at the first output terminal, the peripheral circuit operates using the first voltage. When there is no voltage output at the first output terminal, the boost circuit boosts the second voltage to obtain a third voltage within the preset voltage range; The peripheral circuit operates using the third voltage.

20. The power control method according to claim 15, further comprising: If the output voltage at the first output terminal is not within the preset voltage range, the detection circuit sends a trigger signal to the reset circuit. Upon receiving the trigger signal, the reset circuit sends a reset signal to the main control circuit. The main control circuit performs a reset operation according to the reset signal, and calculates the reset duration after the reset is completed; The main control circuit compares the reset duration with the predetermined duration and sends diagnostic information corresponding to the comparison result to the server.