BA gateway circuit for redundant synchronous RTC time

By introducing redundant network and GPS modules into the BA gateway circuit, the dual synchronization of RTC time is achieved, which solves the problem of RTC time deviation when the network is unstable in traditional BA gateways, and improves the accuracy and reliability of system information.

CN222802884UActive Publication Date: 2025-04-25SHENZHEN XINGHAI IOT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202421782494.9
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2025-04-25
Estimated Expiration
2034-07-25

AI Technical Summary

Technical Problem

When there is a network problem in traditional building BA gateways, they cannot synchronize UTC time in time, resulting in RTC time deviation, affecting the information accuracy and reliability of the entire building equipment automatic control system.

Method used

Design a BA gateway circuit with redundant synchronous RTC time, including the main control module, network module, GPS module and RTC module. By detecting the stability of the network module, when the network module is stable, the Internet time is obtained for synchronization; when the network module is unstable, the satellite time is obtained for synchronization through the GPS module.

Benefits of technology

It realizes that the RTC time can still be synchronized when the network module is unstable, ensures the accuracy of the information of the building equipment automatic control system, reduces maintenance costs, and enhances the reliability and safety of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN222802884U_ABST
    Figure CN222802884U_ABST
Patent Text Reader

Abstract

The utility model discloses a BA gateway circuit for redundancy synchronization of RTC time, which comprises a master control module, a network module, a GPS module and an RTC module, and the master control module is electrically connected with the network module, the GPS module and the RTC module respectively. The network module is used for acquiring first network time; the GPS module is used for receiving the second network time. According to the utility model, the main control module detects the stability of the network module, when the network module is stable, the first network time is synchronized to the RTC module, and the RTC time is synchronized; and when the network module is unstable, synchronizing the second network time to the RTC module, and synchronizing the RTC time. According to the utility model, through redundancy mechanisms of the network module and the GPS module, synchronization of RTC time can be realized respectively, so that when the network module goes wrong and cannot be connected with the Internet, synchronization of RTC time can be realized, accuracy of system information is ensured, traceability of operation and maintenance personnel is facilitated, maintenance cost is reduced, and maintenance efficiency is improved. And the reliability and the safety of the whole building equipment automatic control system are enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the technical field of gateways, in particular to a BA gateway circuit with redundant synchronous RTC time. Background Art

[0002] The building equipment automation system (BA system) mainly manages and controls various types of equipment in the building efficiently through operating status monitoring and fault monitoring, greatly reducing energy consumption while providing the best comfortable environment and modern management mode.

[0003] The building BA gateway plays a very important role in the entire building equipment automatic control system. The building BA gateway connects to the IoT platform and the Internet platform in the north, and to the terminal devices and various controllers in the south. All interactive information, such as equipment logs and alarms, equipment diagnostic information, equipment basic status, interface status and general information, etc., are time-stamped. It is precisely because all interactive information is time-stamped that operation and maintenance personnel can easily know what equipment has problems and when when diagnosing problems, so that problems can be solved quickly and maintenance costs can be greatly reduced. Therefore, accurate BA gateway system time is crucial for the entire building equipment automatic control system.

[0004] When a traditional building BA gateway is restarted, the system will generally obtain the current time from the hardware RTC chip. After the system is up, if it is connected to the Internet, the system time will be synchronized with the UTC time and the RTC time will be updated at the same time. However, if there is a problem with the network after the system is up and it cannot connect to the Internet, the system time will be synchronized with the RTC time. Because the RTC cannot be calibrated with the UTC time for a long time, there will be time deviation, which will cause problems with the information of the entire building equipment automatic control system. All information, such as alarms, logs, etc., are inaccurate, which will make it difficult for operation and maintenance personnel to trace the source, greatly reducing the reliability and security of the entire building equipment automatic control system. Utility Model Content

[0005] The utility model provides a BA gateway circuit with redundant synchronized RTC time, which solves the problem that when a problem occurs in the network of a traditional building BA gateway, the RTC time synchronized by the system cannot be calibrated with the UTC time for a long time, resulting in time deviation, causing problems with the information of the entire building equipment automatic control system, making it difficult for operation and maintenance personnel to trace the source based on the timestamp, increasing maintenance costs, and reducing the reliability and safety of the entire building equipment automatic control system.

[0006] In order to solve the above technical problems, a technical solution adopted by the utility model is to provide a BA gateway circuit with redundant synchronized RTC time, including a main control module, a network module, a GPS module and an RTC module, wherein the main control module is electrically connected to the network module, the GPS module and the RTC module respectively; the network module is used to electrically connect to the Internet to obtain a first network time from the Internet; the GPS module is used to receive a second network time from a satellite; the main control module is used to detect the stability of the network module, and is also used to synchronize the first network time or the second network time to the RTC module; the RTC module is used to synchronize the RTC time through the first network time or the second network time.

[0007] In some embodiments, the main control module includes a main control chip RK3568, the asynchronous serial input end and the asynchronous serial output end of the main control chip RK3568 are electrically connected to the GPS module respectively, the synchronous serial end of the main control chip RK3568 is electrically connected to the RTC module, and the network end of the main control chip RK3568 is electrically connected to the network module.

[0008] In some embodiments, the GPS module includes an active antenna circuit and a GPS module circuit; the active antenna circuit includes an antenna interface, a first end of the antenna interface is electrically connected to the positive electrode of a rectifier diode, and a negative electrode of the rectifier diode is electrically connected to a bidirectional transient voltage suppression diode and then grounded; the GPS module circuit includes a GPS chip SKG123L, a serial output end and a serial input end of the GPS chip SKG123L are electrically connected to the main control module respectively, an external interrupt pin of the GPS chip SKG123L is electrically connected to the collector of a first switching transistor, the emitter of the first switching transistor is grounded, and the base is electrically connected to the main control module, and a second DC power supply is connected to the electrical connection between the external interrupt pin of the GPS chip SKG123L and the first switching transistor; the RF input end and the RF voltage end of the GPS chip SKG123L are both electrically connected to the first end of the antenna interface of the active antenna circuit.

[0009] In some embodiments, the RTC module includes an RTC chip HYM8563, the clock signal end and the data end of the RTC chip HYM8563 are electrically connected to the main control module through an IIC bus, the interrupt pin of the RTC chip HYM8563 is electrically connected to the main control module, and the electrical connection between the interrupt pin and the main control module is electrically connected to a pull-up resistor and then connected to a first DC power supply.

[0010] In some embodiments, the network module includes a 4G module circuit, and the 4G module circuit includes a 4G chip; the sleep and wake-up end of the 4G chip is connected to a third DC power supply, and the sleep and wake-up end is also electrically connected to the main control module. A control circuit is arranged between the sleep and wake-up end of the 4G chip and the main control module, and the control circuit includes a second switching transistor, the collector of the second switching transistor is electrically connected to the sleep and wake-up end, the emitter of the second switching transistor is grounded, and the base is electrically connected to the main control module through an IO expansion circuit.

[0011] In some embodiments, the reset end of the 4G chip is electrically connected to the collector of the third switching transistor, the emitter of the third switching transistor is grounded, and the base is electrically connected to the IO expansion circuit; the display end of the 4G chip is electrically connected to the cathode of the light-emitting diode, and the anode of the light-emitting diode is connected to a fourth DC power supply.

[0012] In some embodiments, the network module includes an Ethernet circuit, which includes an Ethernet chip RTL8211 FS; the management clock terminal and the management data input and output terminal of the Ethernet chip RTL8211 FS are electrically connected to the main control module respectively; the eight transceiver interfaces of the Ethernet chip RTL8211 FS are electrically connected to the corresponding ports of the gigabit network transformer through eight protocol transmission lines, and the gigabit network transformer is also electrically connected to the network interface, and the network interface is used to access the Internet.

[0013] In some embodiments, the first photoelectric conversion pin and the second photoelectric conversion pin of the Ethernet chip RTL8211 FS are electrically connected to the input end of the serial deserializer respectively, and the output end of the serial deserializer is electrically connected to the SFP connector, and the SFP connector is used to connect the optical fiber.

[0014] The beneficial effects of the utility model are as follows: the utility model discloses a BA gateway circuit for redundantly synchronizing RTC time, including a main control module, a network module, a GPS module and an RTC module, wherein the main control module is electrically connected to the network module, the GPS module and the RTC module respectively. The network module is used to electrically connect to the Internet and obtain a first network time from the Internet; the GPS module is used to receive a second network time from a satellite; the main control module is used to detect the stability of the network module, and is also used to synchronize the first network time or the second network time to the RTC module; the RTC module is used to synchronize the RTC time through the first network time or the second network time. The utility model can detect the stability of the network module through the main control module, and when the network module is stable, synchronize the first network time from the Internet to the RTC module through the main control module, so that the RTC module synchronizes the RTC time according to the first network time; when the network module is unstable, synchronize the second network time from the satellite to the RTC module through the GPS module and the main control module, so that the RTC module synchronizes the RTC time according to the second network time. The utility model can realize the synchronization of RTC time respectively through the redundant mechanism of network module and GPS module, so that when the network module has problems and cannot connect to the Internet, the RTC time can still be synchronized, thereby ensuring the accuracy of information of the building equipment automatic control system, facilitating the operation and maintenance personnel to trace the source, reducing the maintenance cost, and enhancing the reliability and safety of the entire building equipment automatic control system. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 This is a principle block diagram of a BA gateway circuit for redundant synchronous RTC time of the utility model;

[0016] Figure 2 It is a schematic diagram of a main control module in a BA gateway circuit with redundant synchronous RTC time of the utility model;

[0017] Figure 3 It is a schematic diagram of an RTC module in a BA gateway circuit of a redundant synchronous RTC time of the utility model;

[0018] Figure 4 It is a schematic diagram of an active antenna circuit in a GPS module in a BA gateway circuit with redundant RTC time synchronization of the utility model;

[0019] Figure 5 It is a schematic diagram of a GPS module circuit in a GPS module in a BA gateway circuit with redundant synchronous RTC time of the utility model;

[0020] Figure 6 This is a schematic diagram of a 4G module circuit in a network module in a BA gateway circuit with redundant synchronous RTC time of the utility model. Figure 1 ;

[0021] Figure 7 This is a schematic diagram of a 4G module circuit in a network module in a BA gateway circuit with redundant synchronous RTC time of the utility model. Figure 2 ;

[0022] Figure 8 This is a schematic diagram of a 4G module circuit in a network module in a BA gateway circuit with redundant synchronous RTC time of the utility model. Figure 3 ;

[0023] Fig. 9 This is a schematic diagram of an Ethernet circuit in a network module in a BA gateway circuit with redundant synchronous RTC time of the utility model. Figure 1 ;

[0024] Fig.10 This is a schematic diagram of an Ethernet circuit in a network module in a BA gateway circuit with redundant synchronous RTC time of the utility model. Figure 2 ;

[0025] Fig.11 This is a schematic diagram of an Ethernet circuit in a network module in a BA gateway circuit with redundant synchronous RTC time of the utility model. Figure 3 ;

[0026] Fig.12 This is a schematic diagram of an Ethernet circuit in a network module in a BA gateway circuit with redundant synchronous RTC time of the utility model. Figure 4 . DETAILED DESCRIPTION

[0027] In order to facilitate the understanding of the present invention, the present invention is described in more detail below in conjunction with the accompanying drawings and specific embodiments. The accompanying drawings provide preferred embodiments of the present invention. However, the present invention can be implemented in many different forms and is not limited to the embodiments described in this specification. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present invention more thorough and comprehensive.

[0028] It should be noted that, unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as those commonly understood by those skilled in the art in the technical field of the present invention. The terms used in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used in this specification includes any and all combinations of one or more related listed items.

[0029] In order to facilitate the understanding of the present application, some terms that may be involved in the embodiments of the present application are first explained as follows:

[0030] Building equipment automatic control system (BA system for short): It is an integrated general term for the building's cold and heat source system, air conditioning and ventilation system, fan disk system, lighting system, elevator system, water supply and drainage system and other systems. It is widely used in offices, hotels, hospitals, shopping malls and other buildings.

[0031] BA Gateway: Building Equipment Automation System Gateway. Gateway is also called network connector or protocol converter. It realizes network interconnection above the network layer and is a complex network interconnection device.

[0032] RTC time: The abbreviation of real-time clock is RTC (Rea l_Time C l ock). RTC is an integrated circuit, usually called a clock chip. The system time can be updated by reading the RTC time of the clock chip.

[0033] The first network time and the second network time are both UTC time. UTC time refers to Coordinated Universal Time, also known as World Unified Time, World Standard Time, and International Coordinated Time.

[0034] Combine the following Figures 1 to 12 As shown, the present application is described in detail with specific embodiments.

[0035] like Figure 1 As shown, the utility model provides a BA gateway circuit with redundant synchronized RTC time, including a main control module 1, a network module 4, a GPS module 3 and an RTC module 2, wherein the main control module 1 is electrically connected to the network module 4, the GPS module 3 and the RTC module 2 respectively.

[0036] The network module 4 is used to electrically connect to the Internet and obtain the first network time from the Internet; the GPS module 3 is used to receive the second network time from the satellite; the main control module 1 is used to detect the stability of the network module 4, such as whether the network is interrupted or intermittent. If the network module 4 is stable, the first network time is synchronized to the RTC module 2; if the network module 4 is unstable, the second network time is synchronized to the RTC module 2; the RTC module 2 is used to synchronize the RTC time through the first network time or the second network time.

[0037] The utility model can detect the stability of the network module 4 through the main control module 1. When the network module 4 is stable, the first network time from the Internet is synchronized to the RTC module 2 through the main control module 1, so that the RTC module 2 synchronizes the RTC time according to the first network time; when the network module 4 is unstable, the second network time from the satellite is synchronized to the RTC module 2 through the GPS module 3 and the main control module 1, so that the RTC module 2 synchronizes the RTC time according to the second network time. The utility model can realize the synchronization of the RTC time respectively through the redundant mechanism of the network module 4 and the GPS module 3, so that when the network module 4 has problems and cannot connect to the Internet, the RTC time can also be synchronized, which ensures the accuracy of the information of the building equipment automatic control system, helps the operation and maintenance personnel to trace the source, reduces the maintenance cost, and enhances the reliability and safety of the entire building equipment automatic control system.

[0038] Further, such as Figure 2 As shown, the main control module 1 includes a main control chip RK3568, the asynchronous serial input terminal UART_RXD and the asynchronous serial output terminal UART_TXD of the main control chip RK3568 are electrically connected to the GPS module 3 respectively, the synchronous serial terminal IIC of the main control chip RK3568 is electrically connected to the RTC module 2, and the network terminal PC I e3.0 / PC I e2.1 of the main control chip RK3568 is electrically connected to the network module, and the network terminal PC I e3.0 / PC I e2.1 has multiple pins and supports connection to WiFi 5 / 6, 4G / 5G and Ethernet Swi tch (Ethernet switch).

[0039] Further, such as Figure 3 As shown, the RTC module 2 includes an RTC chip HYM8563. Specifically, the clock signal terminal SCL and the data terminal SDA of the RTC chip HYM8563 are connected to the RTC module 2 through the IIC bus. Figure 2The synchronous serial terminal IIC of the main control chip RK3568 is electrically connected. The oscillator input terminal OSC I of the RTC chip HYM8563 is electrically connected to a capacitor C101 and then grounded. The oscillator output terminal OSCO of the RTC chip HYM8563 is electrically connected to a capacitor C102 and then grounded. A crystal oscillator Y1 is also electrically connected between the oscillator input terminal OSC I and the oscillator output terminal OSCO of the RTC chip HYM8563. The second pin and the third pin of the crystal oscillator Y1 are both grounded. The power supply voltage terminal VDD of the RTC chip HYM8563 is electrically connected to a capacitor C103 and then grounded. An external power supply VDD_RTC is also electrically connected between the power supply voltage terminal VDD and the capacitor C103. The interrupt pin I NT of the RTC chip HYM8563 is electrically connected to the main control chip RK3568. A resistor R129 is electrically connected to the electrical connection between the interrupt pin I NT and the main control chip RK3568 and then grounded. A pull-up resistor R128 is also electrically connected to the electrical connection between the interrupt pin I NT and the main control chip RK3568 and then connected to the first DC power supply V33.

[0040] Further, such as Figure 4 , Figure 5 As shown, the GPS module 3 includes an active antenna circuit and a GPS module circuit.

[0041] refer to Figure 4 The active antenna circuit includes an antenna interface J7, a second end of the antenna interface J7 is grounded, and a first end of the antenna interface J7 is connected in series with an inductor L12 and a resistor R164. Figure 5 The first end of the antenna interface J7 is also electrically connected to a capacitor C135 and then electrically connected to the RF input terminal RF_I N of the GPS chip; the first end of the antenna interface J7 is also electrically connected to the positive electrode of the rectifier diode D16, and the negative electrode of the rectifier diode D16 is electrically connected to the bidirectional transient voltage suppression diode D17 and then grounded.

[0042] Further, such as Figure 5 As shown, the GPS module circuit includes a GPS chip. In this embodiment, the model of the GPS chip is SKG123L. Specifically, the RF input terminal RF_I N of the GPS chip is connected to Figure 4 The active antenna circuit of the GPS chip is electrically connected to one end of the capacitor C135, and the RF voltage terminal VCC_RF of the GPS chip is electrically connected to the Figure 4 The serial output terminal TXD / SPI_M I SO of the GPS chip is electrically connected to a resistor R170 and then electrically connected to the active antenna circuit of the GPS chip. Figure 2The asynchronous serial input terminal UART_RXD of the main control chip RK3568 is electrically connected, and a resistor R166 is also electrically connected at the electrical connection between the resistor R170 and the asynchronous serial input terminal UART_RXD of the main control chip RK3568, and then connected to the second DC power supply V33_GPS; the serial input terminal RXD / SPI_MOS I of the GPS chip is electrically connected to the asynchronous serial output terminal UART_TXD of the main control chip RK3568. The external interrupt pin EXT I NT of the GPS chip is electrically connected to the collector of the first switch transistor Q18, the emitter of the first switch transistor Q18 is grounded, the base is electrically connected to the resistor R171, and then electrically connected to the main control chip RK3568, and a resistor R167 is also electrically connected between the other end of the resistor R171 and the collector of the first switch transistor Q18; the external interrupt pin EXT I NT of the GPS chip is also electrically connected to the resistor R168, and then connected to the second DC power supply V33_GPS.

[0043] Further, such as Figures 6 to 8 As shown, the network module 4 includes a 4G module circuit. The 4G module circuit includes a 4G chip. In this embodiment, the model of the 4G chip is C-91304-52-052R2.

[0044] Specifically, the sleep wake-up terminal WAKEUP_I N of the 4G chip is electrically connected to the resistor R63 and the resistor R60 and then connected to the third DC power supply V33_9555; a resistor R66 is also electrically connected to the electrical connection between the resistor R63 and the resistor R60 and then grounded; Figure 7 The collector of the second switch transistor Q13 is also electrically connected to the electrical connection between the resistor R63 and the resistor R60. The emitter of the second switch transistor Q13 is grounded, and the base is electrically connected to the resistor R91 and connected to the IO expansion circuit. Figure 2 One of the pins of the network end PCI e3.0 / PC I e2.1 of the main control chip RK3568 is electrically connected, and a resistor R89 ​​is electrically connected at the electrical connection between the resistor R91 and the IO expansion circuit and then connected to the third DC power supply V33_9555. A resistor R97 is also electrically connected at the electrical connection between the resistor R91 and the IO expansion circuit and then grounded. The end of the resistor R91 connected to the resistor R89 ​​is also electrically connected to a capacitor C98 and then grounded.

[0045] Combination Figure 8The reset terminal RES I N_N of the 4G chip is electrically connected to a resistor R70 and then electrically connected to the collector of the third switch transistor Q14. The emitter of the third switch transistor Q14 is grounded, the base is electrically connected to the resistor R96 and then electrically connected to the IO expansion circuit. A resistor R90 is electrically connected at the electrical connection between the resistor R96 and the IO expansion circuit and then connected to the third DC power supply V33_9555. A resistor R99 is also electrically connected at the electrical connection between the resistor R96 and the IO expansion circuit and then grounded. The end of the resistor R96 connected to the resistor R90 is also electrically connected to a capacitor C99 and then grounded.

[0046] Continue to refer Figure 6 The display terminal LED_WWA of the 4G chip is electrically connected to a resistor R81, and then electrically connected to the cathode of the light-emitting diode LED1. The anode of the light-emitting diode LED1 is connected to the fourth DC power supply V38. A capacitor C85 is also electrically connected to the electrical connection between the resistor R81 and the light-emitting diode LED1 and then grounded.

[0047] Further, such as Figures 9 to 12 As shown, the network module 4 further includes an Ethernet circuit. The Ethernet circuit includes an Ethernet chip. In this embodiment, the model of the Ethernet chip is RTL8211 FS.

[0048] Specifically, Fig. 9 As shown in FIG. 1 , the RXC / PHYAD1 pin, RXCTL / PHYAD2 pin, RXD0 / RXDLY pin, RXD1 / CFG_MODE0 pin, RXD3 / CFG_MODE2 pin and RXD2 / CFG_MODE1 pin of the Ethernet chip are connected to the external PHY configuration circuit. The management clock terminal MDC and management data input and output terminal MD IO of the Ethernet chip are respectively connected to Figure 2 The reset terminal PHYRSTB of the Ethernet chip is electrically connected to the PHY reset circuit.

[0049] The eight transceiver interfaces of the Ethernet chip, MD I[O]+, MD I[O]-, MD I[1]+, MD I[1]-, MD I[2]+, MD I[2]-, MD I[3]+ and MD I[3]-, are connected to the Ethernet chip through eight protocol transmission lines. Fig.11 The corresponding port of the gigabit network transformer G2401 CE is electrically connected, and the gigabit network transformer G2401 CE is also electrically connected to the network interface J10, and the network interface J10 is used to access the Internet.

[0050] Combination Fig. 9 , Fig.10The first photoelectric conversion pin HSON and the second photoelectric conversion pin HSOP of the Ethernet chip are electrically connected to the input end of the serial deserializer respectively, and the two output ends of the serial deserializer are electrically connected to the TD+ pin and TD- pin of the SFP connector U46 respectively. The RD+ pin and RD- pin of the SFP connector U46 are electrically connected to the HS IN pin and HS IP pin of the Ethernet chip respectively through the CAP circuit. The SFP connector U46 is used to connect the optical fiber.

[0051] Combination Fig. 9 , Fig.12 The oscillation output terminal XTAL_OUT / EXT_CLK of the Ethernet chip is electrically connected to a resistor R534 and then electrically connected to the third pin of the crystal oscillator Y5. The oscillation input terminal XTAL_I N of the Ethernet chip is electrically connected to the first pin of the crystal oscillator Y5, and the second and fourth pins of the crystal oscillator Y5 are grounded. The electrical connection point between the resistor R534 and the third pin of the crystal oscillator Y5 is also electrically connected to a capacitor C356 and then grounded. The electrical connection point between the oscillation input terminal XTAL_I N of the Ethernet chip and the first pin of the crystal oscillator Y5 is also electrically connected to a capacitor C357 and then grounded.

[0052] In summary, the BA gateway circuit of the utility model is applied to the building equipment automatic control system, which connects to the Internet through the Ethernet circuit and the 4G module circuit in the network module 4, and electrically connects the network module 4 to the main control module 1; when the main control module 1 determines that the network module 4 is stable, the network module 4 obtains the first network time through the Internet, and transmits the first network time to the main control module 1, and synchronizes the first network time to the RTC module 2 through the main control module 1, and synchronously updates the RTC time. The BA gateway of the utility model also receives satellite signals through the active antenna circuit in the GPS module 3, and electrically connects the GPS module 3 to the main control module 1; when the main control module 1 determines that the network module 4 is unstable or not connected to the Internet, the GPS module 3 obtains the second network time through the satellite, and transmits the second network time to the main control module 1, and synchronizes the second network time to the RTC module 2 through the main control module 1, and synchronously updates the RTC time. The utility model detects the stability of the network module 4 through the main control module 1. When the network module 4 is stable, the first network time from the Internet is synchronized to the RTC module 2 through the main control module 1, so that the RTC module 2 synchronizes the RTC time according to the first network time; when the network module 4 is unstable, the second network time from the satellite is synchronized to the RTC module 2 through the GPS module 3 and the main control module 1, so that the RTC module 2 synchronizes the RTC time according to the second network time.

[0053] The utility model can realize the synchronization of RTC time respectively through the redundant mechanism of network module 4 and GPS module 3, so that when the network module 4 has problems and cannot connect to the Internet, the RTC time can also be synchronized, ensuring the accuracy of information of the building equipment automatic control system, facilitating the operation and maintenance personnel to trace the source, reducing the maintenance cost, and enhancing the reliability and safety of the entire building equipment automatic control system.

[0054] It can be seen that the utility model discloses a BA gateway circuit for redundantly synchronizing RTC time, including a main control module, a network module, a GPS module and an RTC module, and the main control module is electrically connected to the network module, the GPS module and the RTC module respectively. The network module is used to electrically connect to the Internet and obtain the first network time from the Internet; the GPS module is used to receive the second network time from the satellite; the main control module is used to detect the stability of the network module, and is also used to synchronize the first network time or the second network time to the RTC module; the RTC module is used to synchronize the RTC time through the first network time or the second network time. The utility model can detect the stability of the network module through the main control module. When the network module is stable, the first network time from the Internet is synchronized to the RTC module through the main control module, so that the RTC module synchronizes the RTC time according to the first network time; when the network module is unstable, the second network time from the satellite is synchronized to the RTC module through the GPS module and the main control module, so that the RTC module synchronizes the RTC time according to the second network time. The utility model can realize the synchronization of RTC time respectively through the redundant mechanism of network module and GPS module, so that when the network module has problems and cannot connect to the Internet, the RTC time can still be synchronized, thereby ensuring the accuracy of information of the building equipment automatic control system, facilitating the operation and maintenance personnel to trace the source, reducing the maintenance cost, and enhancing the reliability and safety of the entire building equipment automatic control system.

[0055] The above are only embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structural transformations made using the contents of the specification and drawings of the present invention, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A BA gateway circuit with redundant synchronous RTC time, characterized in that: It includes a main control module, a network module, a GPS module and an RTC module, wherein the main control module is electrically connected to the network module, the GPS module and the RTC module respectively; The network module is used to electrically connect to the Internet and obtain the first network time from the Internet; the GPS module is used to receive the second network time from the satellite; the main control module is used to detect the stability of the network module and also to synchronize the first network time or the second network time to the RTC module; the RTC module is used to synchronize the RTC time through the first network time or the second network time.

2. The BA gateway circuit according to claim 1, characterized in that: The main control module includes a main control chip RK3568, an asynchronous serial input end and an asynchronous serial output end of the main control chip RK3568 are electrically connected to the GPS module respectively, a synchronous serial end of the main control chip RK3568 is electrically connected to the RTC module, and a network end of the main control chip RK3568 is electrically connected to the network module.

3. The BA gateway circuit according to claim 1, characterized in that: The GPS module includes an active antenna circuit and a GPS module circuit; The active antenna circuit comprises an antenna interface, a first end of the antenna interface is electrically connected to the positive electrode of the rectifier diode, and a negative electrode of the rectifier diode is electrically connected to the bidirectional transient voltage suppression diode and then grounded; The GPS module circuit includes a GPS chip SKG123L, the serial output end and the serial input end of the GPS chip SKG123L are electrically connected to the main control module respectively, the external interrupt pin of the GPS chip SKG123L is electrically connected to the collector of the first switching transistor, the emitter of the first switching transistor is grounded, and the base is electrically connected to the main control module, and the electrical connection between the external interrupt pin of the GPS chip SKG123L and the first switching transistor is connected to a second DC power supply; the RF input end and the RF voltage end of the GPS chip SKG123L are both electrically connected to the first end of the antenna interface of the active antenna circuit.

4. The BA gateway circuit according to claim 1, characterized in that: The RTC module includes an RTC chip HYM8563, a clock signal end and a data end of the RTC chip HYM8563 are electrically connected to the main control module through an IIC bus, an interrupt pin of the RTC chip HYM8563 is electrically connected to the main control module, and the electrical connection between the interrupt pin and the main control module is electrically connected to a pull-up resistor and then connected to a first DC power supply.

5. The BA gateway circuit according to claim 1, characterized in that: The network module includes a 4G module circuit, and the 4G module circuit includes a 4G chip; The sleep / wake-up end of the 4G chip is connected to a third DC power supply, and the sleep / wake-up end is also electrically connected to the main control module. A control circuit is arranged between the sleep / wake-up end of the 4G chip and the main control module, and the control circuit includes a second switching transistor, a collector of the second switching transistor is electrically connected to the sleep / wake-up end, an emitter of the second switching transistor is grounded, and a base is electrically connected to the main control module through an IO expansion circuit.

6. The BA gateway circuit according to claim 5, characterized in that: The reset end of the 4G chip is electrically connected to the collector of the third switching transistor, the emitter of the third switching transistor is grounded, and the base is electrically connected to the IO expansion circuit; the display end of the 4G chip is electrically connected to the cathode of the light-emitting diode, and the anode of the light-emitting diode is connected to the fourth DC power supply.

7. The BA gateway circuit according to claim 1, characterized in that: The network module includes an Ethernet circuit, and the Ethernet circuit includes an Ethernet chip RTL8211 FS; The management clock end and the management data input and output end of the Ethernet chip RTL8211 FS are electrically connected to the main control module respectively; the eight transceiver interfaces of the Ethernet chip RTL8211 FS are electrically connected to the corresponding ports of the gigabit network transformer through eight protocol transmission lines, and the gigabit network transformer is also electrically connected to the network interface, and the network interface is used to access the Internet.

8. The BA gateway circuit according to claim 7, characterized in that: The first photoelectric conversion pin and the second photoelectric conversion pin of the Ethernet chip RTL8211 FS are electrically connected to the input end of the serial deserializer respectively, and the output end of the serial deserializer is electrically connected to the SFP connector, and the SFP connector is used to connect the optical fiber.