Gateway device
By designing a gateway device that includes a main control circuit, communication interface, switching components, and voltage detection circuit, the problem of needing to know the interface and protocol in advance during the access process of traditional bus communication devices is solved, achieving adaptive identification and fast connection, thus improving convenience.
Patent Information
- Application Number
- CN202520502585.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-20
- Publication Date
- 2026-03-03
- Estimated Expiration
- 2035-03-20
AI Technical Summary
Traditional bus communication devices require prior knowledge of the device's interface type and communication protocol during the connection process, which necessitates the selection of a corresponding bus connector by the adapter, resulting in poor convenience.
Design a gateway device comprising a main control circuit, a communication interface, a switching component, a voltage detection circuit, and a gateway module. The device identifies the communication type through a voltage detection signal and controls the switching component to conduct the corresponding path, thereby achieving adaptive identification and connection.
It enables gateway devices to quickly and accurately adaptively identify access communication devices, improving the convenience of accessing bus communication devices.
Smart Images

Figure CN223967874U_ABST
Abstract
Description
Technical Field
[0001] This utility model relates to the field of bus communication technology, and in particular to a gateway device. Background Technology
[0002] For ease of management, electricity meters, water meters, and air conditioners are typically connected to a cloud platform via bus communication for visualized monitoring and management. However, traditional connection methods for water meters, electricity meters, and air conditioners generally use gateways specific to their corresponding bus interfaces for data forwarding and uploading to the cloud platform. In the traditional bus communication device connection process, it's necessary to know the device's interface type, communication parameters, and communication protocol in advance. Furthermore, due to differences in bus interfaces and protocols between devices from different manufacturers, the adapter must select a bus connector corresponding to the bus communication device to connect it to the system, resulting in inconvenience. Utility Model Content
[0003] The main objective of this invention is to provide a gateway device that improves the adaptive capability of the gateway device.
[0004] To achieve the above objectives, the present invention proposes a gateway device, which includes:
[0005] The main control circuit has multiple communication transceiver terminals for transmitting and receiving communication signals of at least two communication types;
[0006] A communication device with multiple communication interfaces, wherein the multiple communication interfaces are used to access communication signals of at least two communication types;
[0007] A communication bus, which is electrically connected to a plurality of the communication interfaces;
[0008] A switching assembly, wherein the switching assembly is electrically connected to the plurality of the communication transceivers, the communication bus, and the main control circuit respectively;
[0009] A voltage detection circuit, wherein the input terminal of the voltage detection circuit is electrically connected to the communication bus, and the output terminal of the voltage detection circuit is electrically connected to the main control circuit; the voltage detection circuit is used to detect the voltage of the communication bus and output a voltage detection signal.
[0010] A gateway module, which is electrically connected to the main control circuit; the gateway module is used for communication connection between the main control circuit and the cloud.
[0011] The main control circuit is used to control the switching component to conduct the path between the communication bus and the corresponding communication transceiver terminal according to the voltage detection signal.
[0012] In one embodiment, the main control circuit further includes a main controller and a plurality of bus transceiver circuits, wherein a first terminal of the plurality of bus transceiver circuits is electrically connected to the main controller, and a second terminal of the plurality of bus transceiver circuits is electrically connected to the switching assembly; wherein the plurality of communication transceiver terminals include the second terminals of the plurality of bus transceiver circuits.
[0013] In one embodiment, the switching assembly includes a plurality of first switching circuits, the first terminals of the plurality of first switching circuits being electrically connected to the communication bus, and the second terminals of the plurality of first switching circuits being electrically connected to the second terminals of the plurality of bus transceiver circuits in a one-to-one correspondence.
[0014] In one embodiment, the first switching circuit includes a first resistor, a second resistor, a first switching transistor, a first switching element, a first diode, a first power supply terminal, and a second power supply terminal;
[0015] Wherein, the first end of the first resistor is electrically connected to the first power supply terminal, and the second end of the first resistor is electrically connected to the main controller and the second end of the second resistor; the first end of the second resistor is electrically connected to the controlled terminal of the first switching transistor; the first end of the first switching transistor is electrically connected to the ground terminal, and the second end of the first switching transistor is electrically connected to the sixth terminal of the first switching element and the anode of the first diode; the cathode of the first diode is electrically connected to the second power supply terminal and the first end of the first switching element; the second end of the first switching element is electrically connected to the first end of the communication bus, the third end of the first switching element is electrically connected to the first end of the bus transceiver circuit, the fourth end of the first switching element is electrically connected to the second end of the bus transceiver circuit, and the fifth end of the first switching element is electrically connected to the second end of the communication bus;
[0016] Furthermore, the first terminal of the first switching circuit includes the second and fifth terminals of the first switching element; the second terminal of the first switching circuit includes the third and fourth terminals of the first switching element.
[0017] In one embodiment, the voltage detection circuit includes:
[0018] The second switching circuit has a first terminal electrically connected to the communication bus and a controlled terminal electrically connected to the main control circuit.
[0019] A voltage divider detection circuit is provided, wherein the input terminal of the voltage divider detection circuit is electrically connected to the second terminal of the second switching circuit; the voltage divider detection circuit is used to detect the voltage of the communication bus and output a corresponding voltage signal.
[0020] An analog-to-digital converter circuit is provided, wherein the input terminal of the analog-to-digital converter circuit is electrically connected to the output terminal of the voltage divider detection circuit, and the output terminal of the analog-to-digital converter circuit is electrically connected to the main control circuit; the analog-to-digital converter circuit is used to convert the input voltage signal into an analog-to-digital signal and output a corresponding voltage detection signal.
[0021] The second switching circuit is used to receive the second switching control signal output by the main control circuit and to connect the communication bus and the voltage divider detection circuit.
[0022] In one embodiment, the second switching circuit includes a third resistor, a fourth resistor, a second switching transistor, a second diode, a second switching element, a first power supply terminal, and a second power supply terminal; the voltage divider detection circuit includes a fifth resistor, a sixth resistor, a seventh resistor, and an eighth resistor.
[0023] Wherein, the first end of the third resistor is electrically connected to the first power supply terminal, and the second end of the third resistor is electrically connected to the main controller and the second end of the fourth resistor; the first end of the fourth resistor is electrically connected to the controlled terminal of the second switching transistor; the first end of the second switching transistor is electrically connected to the ground terminal, and the second end of the second switching transistor is electrically connected to the sixth terminal of the second switching element and the anode of the second diode; the cathode of the second diode is electrically connected to the second power supply terminal and the first end of the second switching element; the second end of the second switching element is electrically connected to the first end of the communication bus, the third end of the second switching element is electrically connected to the second end of the fifth resistor, the fourth end of the second switching element is electrically connected to the second end of the seventh resistor, and the fifth end of the second switching element is electrically connected to the second end of the communication bus; the first end of the fifth resistor is electrically connected to the second end of the sixth resistor and the first end of the analog-to-digital conversion circuit; the first end of the sixth resistor is electrically connected to the ground terminal; the second end of the seventh resistor is electrically connected to the second end of the eighth resistor and the second end of the analog-to-digital conversion circuit; and the first end of the eighth resistor is electrically connected to the ground terminal.
[0024] Furthermore, the first terminal of the second switching circuit includes the second terminal and the fifth terminal of the second switching element; the second terminal of the second switching circuit includes the third terminal and the fourth terminal of the second switching element.
[0025] In one embodiment, the gateway device includes a power circuit and a power input interface, wherein the input terminal of the power circuit is electrically connected to the power input interface; the power circuit is used to convert the first voltage input to the power input interface into a plurality of voltages with different voltage values and output them.
[0026] In one embodiment, the power supply circuit includes:
[0027] A first voltage conversion circuit, wherein a first terminal of the first voltage conversion circuit is electrically connected to the power input interface; the first voltage conversion circuit is used to convert the first voltage input to the power input interface into a second voltage and output it.
[0028] A second voltage conversion circuit, wherein a first terminal of the second voltage conversion circuit is electrically connected to the output terminal of the first voltage conversion circuit; the second voltage conversion circuit is used to convert the second voltage output by the first voltage conversion circuit into a third voltage and output it.
[0029] A third voltage conversion circuit, wherein the first terminal of the third voltage conversion circuit is electrically connected to the output terminal of the second voltage conversion circuit; the third voltage conversion circuit is used to convert the third voltage output by the second voltage conversion circuit into a fourth voltage and output it.
[0030] In one embodiment, the gateway device further includes a communication storage circuit, which is electrically connected to the main control circuit.
[0031] In one embodiment, the gateway device further includes a wired communication interface, and the gateway module includes:
[0032] A wired communication circuit, wherein a first end of the wired communication circuit is electrically connected to a wired communication interface, and a second end of the wired communication circuit is electrically connected to the main control circuit; the wired communication circuit is used to establish a wired communication connection between the main control circuit and the cloud.
[0033] A wireless communication circuit is electrically connected to the main control circuit; the wireless communication circuit is used to establish a wireless communication connection between the main control circuit and the cloud.
[0034] This invention employs a communication bus electrically connected to the communication interfaces of multiple communication devices that accept at least two types of communication signals. This effectively allows various communication signals to be input to the switching assembly via the communication interfaces. Specifically, a voltage detection circuit detects the voltage on the communication bus and outputs a voltage detection signal to the main control circuit. The main control circuit receives this voltage detection signal, confirms the range of the corresponding voltage value, and thus determines the type of communication signal on the communication bus. This, in turn, controls the switching assembly to establish a connection between the communication bus and the corresponding transceiver, enabling the gateway device to quickly and accurately identify the communication type of the access communication device. Attached Figure Description
[0035] To more clearly illustrate the technical solutions in the embodiments of this utility model 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 utility model. For those skilled in the art, other drawings can be obtained based on the structures shown in these drawings without creative effort.
[0036] Figure 1 This is a schematic diagram of the gateway device of this utility model;
[0037] Figure 2 This is a schematic diagram of a module of an embodiment of the gateway device of this utility model;
[0038] Figure 3 This is a circuit diagram of an embodiment of the gateway device of this utility model;
[0039] Figure 4 This is a circuit diagram of another embodiment of the gateway device of this utility model;
[0040] Figure 5 This is a circuit diagram of another embodiment of the gateway device of this utility model.
[0041] Explanation of icon numbers:
[0042] 10. Main control circuit; 20. Communication interface; 30. Switching assembly; 31. First switching circuit; 40. Voltage detection circuit; 41. Second switching circuit; 42. Voltage divider detection circuit; 50. Gateway module; 61. First voltage conversion circuit; 62. Second voltage conversion circuit; 63. Third voltage conversion circuit; R1-R8, First resistor-Eighth resistor; D1-D2, First diode-Second diode; Q1-Q2, First switching transistor-Second switching transistor; K1-K2, First switching element-Second switching element.
[0043] The realization of the purpose, functional features and advantages of this utility model will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0044] The technical solutions of the present utility model will be clearly and completely described below with reference to the accompanying drawings of the embodiments. Obviously, the described embodiments are only some embodiments of the present utility model, and not all embodiments. Based on the embodiments of the present utility model, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of the present utility model.
[0045] It should be noted that all directional indicators (such as up, down, left, right, front, back, etc.) in this utility model embodiment are only used to explain the relative positional relationship and movement of each component in a certain specific posture (as shown in the figure). If the specific posture changes, the directional indicator will also change accordingly.
[0046] Furthermore, the use of terms such as "first" and "second" in this utility model is for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. Additionally, the technical solutions of the various embodiments can be combined with each other, but only on the basis of being achievable by those skilled in the art. When the combination of technical solutions is contradictory or impossible to implement, such a combination of technical solutions should be considered non-existent and not within the scope of protection claimed by this utility model.
[0047] For ease of management, electricity meters, water meters, and air conditioners are typically connected to a cloud platform via bus communication for visualized monitoring and management. However, traditional connection methods for water meters, electricity meters, and air conditioners generally use gateways specific to their corresponding bus interfaces for data forwarding and uploading to the cloud platform. In the traditional bus communication device connection process, it's necessary to know the device's interface type, communication parameters, and communication protocol in advance. Furthermore, due to differences in bus interfaces and protocols between devices from different manufacturers, the adapter must select a bus connector corresponding to the bus communication device to connect it to the system, resulting in inconvenience.
[0048] Therefore, in order to solve the above problems, refer to Figures 1 to 5 This utility model proposes a gateway device, the gateway device comprising:
[0049] The main control circuit 10 has multiple communication transceiver terminals for transmitting and receiving communication signals of at least two communication types.
[0050] A plurality of communication interfaces 20, wherein the plurality of communication interfaces 20 are used to access communication signals of at least two communication types;
[0051] A communication bus, which is electrically connected to the plurality of the communication interfaces 20;
[0052] The switch assembly 30 is electrically connected to the plurality of the communication transceivers, the communication bus, and the main control circuit 10, respectively.
[0053] A voltage detection circuit 40 is provided, the input terminal of which is electrically connected to the communication bus, and the output terminal of which is electrically connected to the main control circuit 10; the voltage detection circuit 40 is used to detect the voltage of the communication bus and output a voltage detection signal.
[0054] Gateway module 50, which is electrically connected to the main control circuit 10; gateway module 50 is used for communication connection between the main control circuit 10 and the cloud.
[0055] The main control circuit 10 is used to control the switching component 30 to conduct the path between the communication bus and the corresponding communication transceiver terminal according to the voltage detection signal.
[0056] In this embodiment, the main control circuit 10 can be implemented using a PLC (Programmable Logic Controller), MCU (Microcontroller Unit), DSP (Digital Signal Processor), FPGA (Field Programmable Gate Array), or SOC (System-on-Chip). The main control circuit 10 obtains the voltage value of the communication signal on the communication bus through the voltage detection circuit 40. By comparing the voltage value of the communication signal with communication signals corresponding to different voltage ranges, it confirms the communication type of the communication device connected to the communication interface 20. Furthermore, after confirming the communication type of the communication device connected to the communication interface 20, the main control circuit 10 outputs a corresponding control signal to the switching component 30, causing the switching component 30 to open the path between the corresponding communication transceiver and the communication bus. This allows the communication signal input from the communication device to be uploaded to the cloud via the main control circuit 10, or the cloud to send the communication signal to the communication device via the main control circuit 10.
[0057] In this embodiment, the communication interface 20 can be implemented using an RS485 communication interface, an RS232 communication interface, a CAN communication interface, or an MBUS communication interface. It is understood that RS485, RS232, MBUS, and CAN buses execute different communication standards, and they have different specifications and requirements at the physical layer and data link layer. Therefore, the RS485, RS232, CAN, and MBUS communication interfaces are not the same. In practical applications, to meet the communication connection needs of different communication devices, the communication interface 20 on the gateway device typically needs to be configured with multiple communication interfaces corresponding to different communication types.
[0058] In this embodiment, the communication bus can be implemented using a first communication line and a second communication line. The first and second communication lines are respectively a signal receiving line and a signal transmitting line. Furthermore, the communication bus may also include other communication lines, such as grounding lines, power lines, etc. More specifically, the first and second communication lines are electrically connected to multiple communication interfaces 20, thereby receiving corresponding communication signals from or sending corresponding communication signals to the communication device. It is understood that in this embodiment, when multiple communication interfaces 20 are electrically connected to the communication interface 20 of the gateway device, they all use the same communication bus to send or receive communication signals.
[0059] In this embodiment, the switching component 30 can be implemented using at least one switching transistor, such as a MOSFET, IGBT, thyristor, transistor, or power transistor, and / or using at least one switching device, such as a contactor, circuit breaker, or relay. The first terminal of the switching component 30 is electrically connected to the communication bus, the second terminal is electrically connected to multiple communication interfaces 20, and the controlled terminal is electrically connected to the main control circuit 10. The switching component 30 receives corresponding control signals output by the main control circuit 10, thereby establishing a connection between the communication bus and the corresponding communication transceiver, enabling the communication device to receive the corresponding communication signal or enabling the main control circuit 10 to receive the corresponding communication signal.
[0060] In this embodiment, the voltage detection circuit 40 can be implemented using a voltage divider circuit, a differential amplifier circuit, a comparator circuit, etc. The input terminal of the voltage detection circuit 40 is electrically connected to the communication bus, thereby detecting the voltage signal on the communication bus and outputting the corresponding voltage detection signal to the main control circuit 10. It is understood that the voltage range corresponding to the communication signals of different communication types is also different. Taking CAN bus communication and RS232 bus communication as examples: The logic states of CAN bus communication include dominant bits and recessive bits, representing logic "0" and logic "1" respectively. When the logic state is dominant, the voltage difference between the differential signal lines CAN_H and CAN_L is approximately 2V. Specifically, CAN_H is approximately 3.5V, and CAN_L is approximately 1.5V. When the logic state is recessive, the voltage difference between the differential signal lines CAN_H and CAN_L is close to 0V. Normally, both lines are at a common-mode voltage level of approximately 2.5V. The logic states of RS232 bus communication include logic "0", logic "1", and an idle state. The voltage range for logic "0" is typically between +3V and +15V; the voltage range for logic "1" is between -3V and -15V; the idle state is typically a negative voltage, indicating no data transmission. Therefore, the voltage detection circuit 40 can detect the voltage output from the communication bus and output a corresponding voltage detection signal, so that the main control circuit 10 can determine the communication type of the connected communication device based on the voltage detection signal.
[0061] Understandably, gateway devices typically establish a communication connection with the cloud to upload communication signals from communication devices to the cloud or send communication signals output from the cloud to communication devices. Gateway module 50 can be implemented using wired communication circuits, wireless communication circuits, etc. Specifically, the wired communication circuit has its first end electrically connected to a wired communication interface and its second end electrically connected to the main control circuit 10; this wired communication circuit is used to establish a wired communication connection between the main control circuit 10 and the cloud. The wireless communication circuit is electrically connected to the main control circuit 10; this wireless communication circuit is used to establish a wireless communication connection between the main control circuit 10 and the cloud. Furthermore, the wired communication circuit can be implemented using, for example, an Ethernet communication circuit, with the other end of the wired communication interface used to connect to a broadband modem or router, while the wireless communication circuit can be implemented using, for example, a 4G communication circuit or a 5G communication circuit. By employing both wired and wireless communication circuits, gateway module 50 can meet diverse communication needs.
[0062] This embodiment utilizes a communication bus electrically connected to the communication interfaces 20 of multiple communication devices that accept at least two types of communication signals. This effectively allows various communication signals to be input to the switching assembly 30 via the communication interfaces 20. The voltage detection circuit 40 detects the voltage on the communication bus and outputs a voltage detection signal to the main control circuit 10. The main control circuit 10 receives this voltage detection signal and confirms the range of the corresponding voltage value, thereby determining the type of communication signal on the communication bus. It then controls the switching assembly 30 to open the path between the communication bus and the corresponding communication transceiver, quickly and accurately enabling the gateway device to adaptively identify the communication type of the access communication device.
[0063] In one embodiment of the present invention, the main control circuit 10 further includes a main controller and a plurality of bus transceiver circuits. The first terminals of the plurality of bus transceiver circuits are electrically connected to the main controller, and the second terminals of the plurality of bus transceiver circuits are electrically connected to the switching assembly 30. The plurality of communication transceiver terminals include the second terminals of the plurality of bus transceiver circuits.
[0064] It is understandable that different communication types and methods differ significantly in terms of physical layer design goals, electrical characteristics, and application scenarios. Therefore, different transceiver circuits are typically required for different communication types to ensure that the main control circuit 10 and the communication device can effectively and stably receive the corresponding communication signals. Specifically, the first terminals of multiple bus transceiver circuits are electrically connected to the main controller, and the second terminals are electrically connected to the switching component 30. That is, the communication transceiver terminals are electrically connected to the switching component 30, thereby receiving communication signals output by the main controller or the switching component 30, and sending them to the switching component 30 or the main controller. This enables the reception and transmission of communication signals, allowing the main controller to further process the communication signals.
[0065] refer to Figure 2 and Figure 3 In one embodiment of the present invention, the switch assembly 30 includes a plurality of first switch circuits 31, the first ends of the plurality of first switch circuits 31 are electrically connected to the communication bus, the second ends of the plurality of first switch circuits 31 are electrically connected to the second ends of the plurality of bus transceiver circuits in a one-to-one correspondence, and the controlled ends of the plurality of first switch circuits 31 are electrically connected to the main controller.
[0066] In this embodiment, the switching assembly 30 is implemented using multiple first switching circuits 31. Each first switching circuit 31 can be implemented using at least one switching transistor, such as a MOSFET, IGBT, thyristor, transistor, or power transistor, and / or using at least one switching device, such as a contactor, circuit breaker, or relay. It is understood that the number of first switching circuits 31 corresponds to the number of bus transceiver circuits, thereby stably connecting or disconnecting the path between each bus transceiver circuit and the communication bus under the control of the main controller. Furthermore, the first switching circuit 31 is normally open, and upon receiving a control signal output by the main controller, closes the path between the second terminal of the corresponding bus transceiver circuit and the communication bus.
[0067] Optionally, the first switching circuit 31 includes a first resistor R1, a second resistor R2, a first switching transistor Q1, a first switching element K1, a first diode D1, a first power supply terminal, and a second power supply terminal; wherein, the first end of the first resistor R1 is electrically connected to the first power supply terminal, the second end of the first resistor R1 is electrically connected to the main controller and the second end of the second resistor R2; the first end of the second resistor R2 is electrically connected to the controlled terminal of the first switching transistor Q1; the first end of the first switching transistor Q1 is electrically connected to the ground terminal, and the second end of the first switching transistor Q1 is electrically connected to the sixth terminal of the first switching element K1 and the anode of the first diode D1; The cathode of the first diode D1 is electrically connected to the second power supply terminal and the first terminal of the first switch K1; the second terminal of the first switch K1 is electrically connected to the first terminal of the communication bus, the third terminal of the first switch K1 is electrically connected to the first terminal of the bus transceiver circuit, the fourth terminal of the first switch K1 is electrically connected to the second terminal of the bus transceiver circuit, and the fifth terminal of the first switch K1 is electrically connected to the second terminal of the communication bus; and the first terminal of the first switch circuit 31 includes the second and fifth terminals of the first switch K1; the second terminal of the first switch circuit 31 includes the third and fourth terminals of the first switch K1. The first switch Q1 can be implemented using a MOSFET, IGBT, thyristor, transistor, power transistor, etc., and the first switch K1 can be implemented using a contactor, circuit breaker, or relay, etc. Furthermore, the first resistor R1 and the first power supply terminal form a pull-up circuit, stabilizing the conduction state of the first switch Q1 when the main controller outputs a high-level signal. Therefore, the first switch Q1 can be implemented using an NPN transistor.
[0068] refer to Figure 4 In one embodiment of this utility model, the voltage detection circuit 40 includes:
[0069] The second switching circuit 41 has a first terminal electrically connected to the communication bus and a controlled terminal electrically connected to the main control circuit 10.
[0070] Voltage divider detection circuit 42, the input terminal of which is electrically connected to the second terminal of the second switching circuit 41; the voltage divider detection circuit 42 is used to detect the voltage of the communication bus and output a corresponding voltage signal;
[0071] An analog-to-digital converter (ADC) circuit is provided, wherein the input terminal of the ADC circuit is electrically connected to the output terminal of the voltage divider detection circuit 42, and the output terminal of the ADC circuit is electrically connected to the main control circuit 10; the ADC circuit is used to convert the input voltage signal into an analog-to-digital signal and output a corresponding voltage detection signal.
[0072] The second switching circuit 41 is used to receive the second switching control signal output by the main control circuit 10 and to connect the communication bus and the voltage divider detection circuit 42.
[0073] In this embodiment, the second switching circuit 41 can be implemented using at least one switching transistor, such as a MOSFET, IGBT, thyristor, transistor, or power transistor, and / or using at least one switching device, such as a contactor, circuit breaker, or relay. The first terminal of the second switching circuit 41 is electrically connected to the communication bus, the second terminal is electrically connected to the input terminal of the voltage divider detection circuit 42, and the controlled terminal is electrically connected to the main control circuit 10. When the main control circuit 10 outputs a second switch control signal to the second switching circuit 41, the second switching circuit 41 will conduct the path between the communication bus and the voltage divider detection circuit 42, thereby enabling voltage detection. It is understood that the voltage detection circuit 40 will not be in a continuous voltage detection state; voltage detection will only occur after the main control circuit 10 outputs a second switch control signal to the second switching circuit 41, causing the second switching circuit 41 to conduct. Therefore, by setting the second switching circuit 41, this invention can effectively avoid the continuous operation of the voltage detection circuit 40, reducing both power consumption and the computational load on the main controller.
[0074] In this embodiment, the voltage divider detection circuit 42 can divide the voltage by connecting two or more resistors in series, proportionally reducing the voltage to be measured to a range suitable for the input of the measuring instrument (such as an ADC). For example, by using two resistors in series, with the measurement point located between the two resistors, the voltage drop calculated using Ohm's law is a portion of the voltage to be measured.
[0075] It's important to understand that the processing units within the main control circuit 10 are generally designed based on digital logic. Therefore, the main control circuit 10 can only understand and process binary digital signals, i.e., logic "0" and logic "1". However, many detected physical quantities exist in the form of continuously changing analog signals. In order for the main control circuit 10 to process these analog signals, they must first be converted into digital signals. Therefore, an analog-to-digital converter (ADC) is needed to convert the analog signals into digital signals.
[0076] Optionally, the second switching circuit 41 includes a third resistor R3, a fourth resistor R4, a second switching transistor Q2, a second diode D2, a second switching element K2, a first power supply terminal, and a second power supply terminal; the voltage divider detection circuit 42 includes a fifth resistor R5, a sixth resistor R6, a seventh resistor R7, and an eighth resistor R8; wherein, the first end of the third resistor R3 is electrically connected to the first power supply terminal, the second end of the third resistor R3 is electrically connected to the main controller and the second end of the fourth resistor R4; the first end of the fourth resistor R4 is electrically connected to the controlled terminal of the second switching transistor Q2; the first end of the second switching transistor Q2 is electrically connected to the ground terminal, the second end of the second switching transistor Q2 is electrically connected to the sixth terminal of the second switching element K2 and the anode of the second diode D2; the cathode of the second diode D2 is electrically connected to the second power supply terminal and the first end of the second switching element K2; the second The second terminal of switch K2 is electrically connected to the first terminal of the communication bus; the third terminal of switch K2 is electrically connected to the second terminal of the fifth resistor R5; the fourth terminal of switch K2 is electrically connected to the second terminal of the seventh resistor R7; and the fifth terminal of switch K2 is electrically connected to the second terminal of the communication bus. The first terminal of the fifth resistor R5 is electrically connected to the second terminal of the sixth resistor R6 and the first terminal of the analog-to-digital converter circuit. The first terminal of the sixth resistor R6 is electrically connected to the ground terminal. The second terminal of the seventh resistor R7 is electrically connected to the second terminal of the eighth resistor R8 and the second terminal of the analog-to-digital converter circuit. The first terminal of the eighth resistor R8 is electrically connected to the ground terminal. The first terminal of the second switching circuit 41 includes the second and fifth terminals of switch K2; the second terminal of the second switching circuit 41 includes the third and fourth terminals of switch K2. The first switching transistor Q1 can be implemented using a MOSFET, IGBT, thyristor, transistor, power transistor, etc., and the first switching element K1 can be implemented using a contactor, circuit breaker, or relay, etc. Furthermore, the first resistor R1 and the first power supply terminal form a pull-up circuit, which stabilizes the conduction state of the first switching transistor Q1 when the main controller outputs a high-level signal. Therefore, the first switching transistor Q1 can be implemented using an NPN transistor. The fifth resistor R5, the sixth resistor R6, the seventh resistor R7, and the eighth resistor R8 are respectively the voltage divider detection circuits 40 on the first communication line and the second communication line.
[0077] refer to Figure 5 In one embodiment of the present invention, the gateway device includes a power supply circuit and a power input interface, wherein the input terminal of the power supply circuit is electrically connected to the power input interface; the power supply circuit is used to convert the first voltage input to the power input interface into a plurality of voltages with different voltage values and output them.
[0078] In this embodiment, the gateway device is electrically connected to an external power source via a power input interface, thereby enabling the external power source to supply power to the gateway device. The voltage input from the external power source is typically different from the voltage required by the electrical loads within the gateway device. Therefore, a corresponding power supply circuit is required in the gateway device to convert the input voltage. This power supply circuit can be implemented using an AC / DC voltage converter or a DC / DC voltage converter to convert the voltage input from the power input interface into the DC power required by the electrical loads.
[0079] Optionally, the power supply circuit includes:
[0080] A first voltage conversion circuit 61, the first terminal of which is electrically connected to the power input interface; the first voltage conversion circuit 61 is used to convert the first voltage input to the power input interface into a second voltage and output it.
[0081] The second voltage conversion circuit 62 has a first terminal electrically connected to the output terminal of the first voltage conversion circuit 61; the second voltage conversion circuit 62 is used to convert the second voltage output by the first voltage conversion circuit 61 into a third voltage and output it.
[0082] A third voltage conversion circuit 63, wherein the first terminal of the third voltage conversion circuit 63 is electrically connected to the output terminal of the second voltage conversion circuit 62; the third voltage conversion circuit 63 is used to convert the third voltage output by the third voltage conversion circuit 63 into a fourth voltage and output it.
[0083] In this embodiment, the power supply circuit can convert the input voltage into a second voltage, a third voltage, and a fourth voltage through a first voltage conversion circuit 61, a second voltage conversion circuit 62, and a third voltage conversion circuit 63, and then output them. The first voltage conversion circuit 61, the second voltage conversion circuit 62, and the third voltage conversion circuit 63 can be implemented using AC / DC voltage conversion circuits, buck converters (the average output voltage is always lower than the average input voltage), boost / buck converters (the average output voltage can be either lower or higher than the average input voltage), boost converters (the average output voltage is always higher than the average input voltage), and Chuck circuits (both input and output currents are continuous, and the harmonic components are small). For example, the first voltage conversion circuit 61, the second voltage conversion circuit 62, and the third voltage conversion circuit 63 are all buck converters, and the input voltage is 26V to 40V. The first voltage conversion circuit 61 receives the 26V to 40V voltage output from the power input interface, steps it down to 24V, and outputs it to power loads that require 24V. The second voltage conversion circuit 62 receives the 24V voltage output from the first voltage conversion circuit 61, steps it down to 5V, and outputs it to power loads that require 5V. The third voltage conversion circuit 63 receives the 5V voltage output from the second voltage conversion circuit 62, steps it down to 3.3V, and outputs it to power loads that require 3.3V.
[0084] In one embodiment of the present invention, the gateway device further includes a communication storage circuit, which is electrically connected to the main control circuit 10.
[0085] In this embodiment, the communication storage circuit can be implemented using static random access memory (SRAM) or dynamic random access memory (DRAM). It is understood that the gateway device needs to store the processing methods for communication signals corresponding to different communication types in order to accurately process these signals. Therefore, the communication storage circuit is electrically connected to the main control circuit 10 to meet the storage requirements of the main control circuit 10.
[0086] The above description is merely an exemplary embodiment of the present utility model and does not limit the patent scope of the present utility model. Any equivalent structural transformations made based on the technical concept of the present utility model and the contents of the present utility model specification and drawings, or direct / indirect applications in other related technical fields, are included within the patent protection scope of the present utility model.
Claims
1. A gateway device, characterized by The gateway device comprises: a master control circuit having a plurality of communication transceivers for transceiving communication signals of at least two communication types; a plurality of communication interfaces for accessing communication devices of at least two communication types; a communication bus electrically connected with the plurality of communication interfaces; a switch assembly electrically connected with the plurality of communication transceivers, the communication bus, and the master control circuit; a voltage detection circuit having an input electrically connected with the communication bus and an output electrically connected with the master control circuit, the voltage detection circuit being configured to detect a voltage of the communication bus and output a voltage detection signal; a gateway module electrically connected with the master control circuit, the gateway module being configured to establish a communication connection between the master control circuit and a cloud server; wherein the master control circuit is configured to control the switch assembly to turn on a path between the communication bus and a corresponding communication transceiver according to the voltage detection signal.
2. The gateway device of claim 1, wherein, The master control circuit further comprises a master controller and a plurality of bus transceiver circuits, a first end of each of the plurality of bus transceiver circuits being electrically connected with the master controller, and a second end of each of the plurality of bus transceiver circuits being electrically connected with the switch assembly; wherein the plurality of communication transceivers comprises the second ends of the plurality of bus transceiver circuits.
3. The gateway device of claim 2, wherein, The switch assembly comprises a plurality of first switch circuits, a first end of each of the plurality of first switch circuits being electrically connected with the communication bus, and a second end of each of the plurality of first switch circuits being electrically connected with a corresponding second end of the plurality of bus transceiver circuits.
4. The gateway device of claim 3, wherein, The first switch circuit comprises a first resistor, a second resistor, a first switch tube, a first switch piece, a first diode, a first power supply end, and a second power supply end. The first end of the first resistor is electrically connected with the first power supply end, the second end of the first resistor is electrically connected with the master controller and the second end of the second resistor; the first end of the second resistor is electrically connected with the controlled end of the first switch tube; the first end of the first switch tube is electrically connected with a ground end, the second end of the first switch tube is electrically connected with the sixth end of the first switch piece and the anode of the first diode; the cathode of the first diode is electrically connected with the second power supply end and the first end of the first switch piece; the second end of the first switch piece is electrically connected with the first end of the communication bus, the third end of the first switch piece is electrically connected with the first end of the bus transceiver circuit, the fourth end of the first switch piece is electrically connected with the second end of the bus transceiver circuit, and the fifth end of the first switch piece is electrically connected with the second end of the communication bus. The first end of the first switch circuit comprises the second end and the fifth end of the first switch piece, and the second end of the first switch circuit comprises the third end and the fourth end of the first switch piece.
5. The gateway device of claim 1, wherein, The voltage detection circuit comprises: a second switch circuit having a first end electrically connected with the communication bus and a controlled end electrically connected with the master control circuit. A voltage division detection circuit, an input end of the voltage division detection circuit is electrically connected with a second end of the second switch circuit; the voltage division detection circuit is used for detecting a voltage of the communication bus and outputting a corresponding voltage signal; An analog-digital conversion circuit, an input end of the analog-digital conversion circuit is electrically connected with an output end of the voltage division detection circuit, and an output end of the analog-digital conversion circuit is electrically connected with the master control circuit; the analog-digital conversion circuit is used for outputting a corresponding voltage detection signal after analog-digital conversion of the input voltage signal. The second switch circuit is used for receiving a second switch control signal output by the master control circuit, and turning on a passageway between the communication bus and the voltage division detection circuit.
6. The gateway device of claim 5, wherein, The second switch circuit comprises a third resistor, a fourth resistor, a second switch tube, a second diode, a second switch piece, a first power supply end and a second power supply end; the voltage division detection circuit comprises a fifth resistor, a sixth resistor, a seventh resistor and an eighth resistor; The first end of the third resistor is electrically connected with the first power supply end, the second end of the third resistor is electrically connected with the master control circuit and the second end of the fourth resistor; the first end of the second switch tube is electrically connected with a ground end, the second end of the second switch tube is electrically connected with the sixth end of the second switch piece and the anode of the second diode; the cathode of the second diode is electrically connected with the second power supply end and the first end of the second switch piece; the second end of the second switch piece is electrically connected with the first end of the communication bus, the third end of the second switch piece is electrically connected with the second end of the fifth resistor, the fourth end of the second switch piece is electrically connected with the second end of the seventh resistor, and the fifth end of the second switch piece is electrically connected with the second end of the communication bus; the first end of the fifth resistor is electrically connected with the second end of the sixth resistor and the first end of the analog-digital conversion circuit; the first end of the sixth resistor is electrically connected with a ground end; the second end of the seventh resistor is electrically connected with the second end of the eighth resistor and the second end of the analog-digital conversion circuit; the first end of the eighth resistor is electrically connected with a ground end; The first end of the second switch circuit comprises the second end and the fifth end of the second switch piece, and the second end of the second switch circuit comprises the third end and the fourth end of the second switch piece.
7. The gateway device of any one of claims 1 to 6, wherein, The gateway device comprises a power supply circuit and a power supply input interface, an input end of the power supply circuit is electrically connected with the power supply input interface; the power supply circuit is used for converting a first voltage input by the power supply input interface into voltages with multiple different voltage values and outputting the voltages.
8. The gateway device of claim 7, wherein, The power supply circuit comprises: A first voltage conversion circuit, a first end of the first voltage conversion circuit is electrically connected with the power supply input interface; the first voltage conversion circuit is used for converting the first voltage input by the power supply input interface into a second voltage and outputting the second voltage; A second voltage conversion circuit, a first end of the second voltage conversion circuit is electrically connected with an output end of the first voltage conversion circuit; the second voltage conversion circuit is used for converting the second voltage output by the first voltage conversion circuit into a third voltage and outputting; A third voltage conversion circuit, a first end of the third voltage conversion circuit is electrically connected with an output end of the second voltage conversion circuit; the third voltage conversion circuit is used for converting the third voltage output by the second voltage conversion circuit into a fourth voltage and outputting.
9. The gateway device of any of claims 1 to 6, wherein, The gateway device further comprises a communication storage circuit, which is electrically connected with the master control circuit.
10. The gateway device of any one of claims 1 to 6, wherein, The gateway device further comprises a wired communication interface, and the gateway module comprises: A wired communication circuit, a first end of the wired communication circuit is electrically connected with the wired communication interface, and a second end of the wired communication circuit is electrically connected with the master control circuit; the wired communication circuit is used for establishing a wired communication connection between the master control circuit and the cloud; A wireless communication circuit, which is electrically connected with the master control circuit; the wireless communication circuit is used for establishing a wireless communication connection between the master control circuit and the cloud.