An energy-efficient IoT gateway with remote debugging and configuration
By designing an energy-efficient IoT gateway with remote debugging and configuration, using multiple data transmission protocols and encrypted configuration modules, the problem of communication interface differences and network security restrictions is solved, and flexible data configuration and information secure transmission are achieved, adapting to enterprise energy consumption monitoring. need.
Patent Information
- Application Number
- CN202210025174.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-11
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2042-01-11
AI Technical Summary
In the process of energy consumption monitoring and data collection of IoT devices, data integration is difficult due to differences in communication interfaces and protocols, and the high level of enterprise network security limits the application of traditional remote operation and maintenance methods, making it difficult to achieve flexible configuration and upgrades.
Design an energy-efficient IoT gateway for remote debugging and configuration, using XC7Z020 chip and multiple data transmission protocols (such as DL/T645, MODBUS, mqtt, TCP/UDP) for automatic protocol selection, combined with the encryption configuration module and SHA256 algorithm to realize data Analysis and conversion, supporting local and remote configuration to ensure information security.
It achieves compatibility and automatic configuration of multiple data protocols, ensures accurate acquisition and safe transmission of data information, adapts to system upgrades and equipment changes, and ensures network security and flexible remote configuration capabilities.
Smart Images

Figure CN114205193B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to an Internet of Things gateway, in particular to an energy-efficient Internet of Things gateway configured by remote debugging. Background Art
[0002] With the development of the Internet of Things and the country's emphasis on the energy Internet of Things, the country has further supervised and managed enterprises with large energy consumption, promulgated a series of energy monitoring standards and requirements for key energy-consuming enterprises, and monitored and supervised related enterprises and equipment with high energy consumption and low output. In the data collection process of key energy-consuming units, due to the different types of energy consumption of each enterprise, differences in metering equipment and manufacturers, the communication interface and communication protocol vary greatly. In the process of data integration, it is necessary to count and collect multiple types of data sources. At the same time, in the process of enterprise information upgrading and transformation, statistical methods and collection equipment need to be continuously updated and configured to meet enterprise needs. In addition, many enterprises have a high level of network security, which has many restrictions on traditional remote operation and maintenance methods. Summary of the invention
[0003] The purpose of the present invention is to provide an energy-efficient Internet of Things gateway with remote debugging configuration. The gateway is compatible with multiple data transmission protocols such as DL / T645, MODBUS, Q / GDW 376.1, MQTT, TCP / UDP, etc., automatically selects the corresponding software and hardware communication channels for data transmission, solves the incompatibility caused by differences in communication methods, obtains the comprehensive energy consumption, product unit consumption and other data information required by the enterprise through data analysis and conversion, configures and upgrades the system when encountering system upgrades and changes in lower-level equipment, and when the network port is restricted by the security level and cannot be remotely configured, the local connection encryption module selects remote configuration or local configuration.
[0004] The objective of the present invention is achieved through the following technical solutions:
[0005] An energy-efficient Internet of Things gateway with remote debugging configuration, the Internet of Things gateway includes a CPU processing chip, a network acquisition module, a data storage circuit, a real-time clock circuit, a power module, an encryption configuration module, a 485 module, and a USB interface; the CPU processing chip is connected to the network acquisition module, the data storage circuit, the real-time clock circuit, the power module, the 485 module, and the USB interface; the USB interface communicates with the encryption configuration module; the CPU processing circuit uses an XC7Z020 chip as the CPU processing chip, and communicates with the network acquisition module, the data storage circuit, the real-time clock circuit, the power module, the USB interface, 485 module, processes and analyzes the data information provided by the network acquisition module and the 485 module, and is connected to the encryption configuration module through the USB interface. The CPU processing chip compares the authentication information of the encryption configuration module through the built-in SHA256 algorithm and key. After the authentication is passed, the configuration information is read to the storage chip of the storage circuit to reconfigure the interface protocol and parameters of the Internet of Things gateway; when the Internet of Things gateway cannot obtain the configuration information through the RJ45 interface of the network acquisition module, the encryption configuration module is connected, and the encryption authentication communication with the CPU processing circuit is carried out through the USB interface. The u9507c4G transceiver module is used for remote configuration after authentication. The CPU processing circuit first sends a MAC calculation instruction to ATSHA204A through the USB interface and the stm32F103 processing chip, and the latter returns the MAC calculation result C1. The CPU processing circuit obtains the internal Tempkey of the encryption configuration module, and then calculates C2 through the built-in SHA256 algorithm, key, Tempkey, and serial number of the CPU processing circuit. When C2 is equal to C1, it starts to complete data interaction with the encryption configuration module 6.
[0006] The energy-efficient Internet of Things gateway with remote debugging configuration, the network acquisition module and the 485 module extract data to the data storage circuit according to the processing results, identify the network acquisition module and the configuration parameters of the encryption configuration module through the USB interface to reconfigure the network parameters, acquisition protocol and other system configuration parameters of the Internet of Things gateway.
[0007] The energy-efficient Internet of Things gateway with remote debugging configuration, the network acquisition module uses three RTL8211 network chips, is connected to the CPU processing circuit, and has three RJ45 interfaces, has an independent MAC+PHY, configures and manages network configuration parameters through the CPU processing circuit, and is used to receive and send relevant data from the local area network and Ethernet.
[0008] The energy-efficient IoT gateway with remote debugging configuration, the data storage circuit uses SDINBDA4-64G for parameter and data storage, has Flash management, including error detection and correction, flash average erase, bad block management, power-off protection, and high-speed storage characteristics help to provide system performance and real-time storage of data.
[0009] In the energy-efficient Internet of Things gateway with remote debugging configuration, the real-time clock circuit uses 8025T as an external clock and is powered by a super capacitor.
[0010] The energy-efficient Internet of Things gateway with remote debugging configuration, wherein the power supply module includes two LDO voltage-stabilized power supplies and is used to provide 5V and 3.3V DC power supplies for each module.
[0011] The energy-efficient Internet of Things gateway with remote debugging configuration, wherein the encryption configuration module adopts ATSHA204A encryption chip, stm32F103 processing chip, u9507c4G transceiver module and USB interface; when the gateway cannot obtain configuration information through the RJ45 interface of the network acquisition module, the encryption configuration module, the stm32F103 processing chip and the USB interface are connected to the encryption configuration module and the CPU processing circuit for encryption authentication communication; the u9507c4G transceiver module is used for remote configuration after authentication; the CPU processing circuit first sends a MAC calculation instruction to ATSHA204A through the USB interface and the stm32F103 processing chip, and the latter returns the result C1 of the MAC calculation, and the CPU processing circuit obtains the internal Tempkey of the encryption configuration module from the encryption configuration module, and then calculates C2 through the built-in SHA256 algorithm, key, Tempkey, serial number and other parameters of the CPU processing circuit, and starts data interaction with the encryption configuration module when C2 is equal to C1.
[0012] The energy-efficient IoT gateway with remote debugging configuration, the 485 module includes 6 485 level conversion chips and external circuits, and the CPU processing circuit controls the module to interact with the measuring instruments that need to be collected to perform downlink data to obtain the lower computer information that needs to be collected.
[0013] The energy-efficient Internet of Things gateway configured for remote debugging has a USB interface used for data interaction with an encryption configuration module.
[0014] The advantages and effects of the present invention are:
[0015] 1. The present invention has simple configuration, wide applicability, and is compatible with a variety of mainstream communication protocols.
[0016] 2. The present invention has multiple independently configured network ports for data forwarding interaction between local area networks and wide area networks.
[0017] 3. The present invention has multiple 485 interfaces and can exchange data with multiple devices at the same time.
[0018] 4. The present invention adopts SHA256 encryption algorithm to identify remote configuration information, and the key cannot be reversely cracked, thus ensuring the information security of the Internet of Things gateway.
[0019] 5. The present invention adopts eMMC for data storage, which has larger memory, reduces the appearance volume of the Internet of Things gateway, and improves the data storage speed.
[0020] 6. The IoT gateway of the present invention performs parameter and protocol configuration while ensuring the security of the system and local network after the firewall disables remote services such as SSH. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 It is a schematic diagram of the overall structure of the present invention;
[0022] Figure 2 It is a flow chart of the present invention.
[0023] Components in the figure: 1. CPU processing circuit 2. Network acquisition module 3. Data storage circuit 4. Real-time clock circuit 5. Power module 6. Encryption configuration module 7. 485 module 8. USB interface. DETAILED DESCRIPTION
[0024] The present invention will be described in detail below with reference to the embodiments shown in the accompanying drawings.
[0025] The present invention obtains network configuration information and protocol stack information of each port through storage circuit 3 by CPU processing circuit 1, processes and analyzes message information received by network acquisition module 2 and 485 module 7, transfers data through data storage circuit 3, obtains the clock of real-time clock circuit 4, and reports various data and parameters from uplink data protocol stack to corresponding opposite receiving port through network acquisition module 2. The CPU processing circuit 1 is connected to encryption configuration module 6 through USB interface 8, and can perform remote parameter configuration through 4G module of encryption configuration module 6 after identification and authentication.
[0026] The present invention comprises a CPU processing circuit 1, a network acquisition module 2, a data storage circuit 3, a real-time clock circuit 4, a power module 5, an encryption configuration module 6, a 485 module 7, and a USB interface 8.
[0027] In the Internet of Things gateway of the present invention, the CPU processing circuit 1 uses an XC7Z020 as the CPU, and is connected to the network acquisition module 2, the data storage circuit 3, the real-time clock circuit 4, the power module 5, the USB interface 8, and the 485 module 7. The USB interface 8 is connected to the encryption configuration module 6. After power-on, the CPU processing circuit 1 initializes the serial port, clock, timer, SPI bus, IIC bus and various peripheral modules, initializes the LINUX operating system and related services, reads the parameter information in the data storage circuit 3, configures the network acquisition module 2 and the 485 module 7, initializes the 8025T of the real-time clock circuit 4, and provides a clock mark for the power information of the Internet of Things gateway. The RNrtl8211 in the network acquisition module 2 reads the network information of the opposite end stored through the RJ45 interface and the data storage circuit 3, loads the corresponding protocol stack after reading the information, and the data obtained after interacting with the opposite end is forwarded or stored in the data storage circuit 3 by the CPU processing circuit 1. After the 485 module 7 loads the corresponding protocol stack and interacts with the downlink data, the data obtained is forwarded or stored in the data storage circuit 3 by the CPU processing circuit 1. When the IoT gateway described in this paper cannot obtain configuration information through the RJ45 interface of the network acquisition module 2, the encryption configuration module 6 described in this paper can be connected, and the encryption authentication communication with the CPU processing circuit 1 is performed through the USB interface. The described u9507c4G transceiver module is used for remote configuration after authentication. The CPU processing circuit 1 first sends a MAC calculation instruction to ATSHA204A through the USB interface and the stm32F103 processing chip, and the latter returns the MAC calculation result C1. The CPU processing circuit 1 obtains the internal Tempkey from the encryption configuration module 6, and then calculates C2 through the built-in SHA256 algorithm, key, Tempkey, serial number and other parameters of the CPU processing circuit 1. When C2 is equal to C1, data interaction with the encryption configuration module 6 begins.
[0028] The CPU processing circuit 1 XC7Z020 chip processes and analyzes the data information provided by the network acquisition module 2 and the 485 module 7, and is connected to the encryption configuration module 6 through the USB interface 8. The CPU processing chip compares the authentication information of the encryption configuration module 6 with the built-in SHA256 algorithm and key. After the authentication is passed, the configuration information is read into the storage chip of the storage circuit 3 to reconfigure the interface protocol and parameters of the Internet of Things gateway.
[0029] The network acquisition module 2 uses three rtl8211 network chips, which are connected to the CPU processing circuit 1 through four ETH_RXD and four ETH_TXD signal lines, and are connected to the CPU processing circuit 1 through ETH_clk, ETH_Rxdck, ETH_Txdck, ETH_Rxdctl, ETH_Txdctl, ETH_MDC, and ETH_MDIO signal lines, respectively. It is connected to three RJ45 interfaces through four groups of ETHB_TDP and ETHB_TDN, configures and manages network parameters such as IP and gateway through the CPU processing circuit 1, is connected to the database and network protocol port in the local area network and wide area network through the RJ45 interface, obtains the corresponding protocol stack static library through the data storage circuit 3, and converts the read data information and stores it in a classified manner.
[0030] The data storage circuit 3 uses SDINBDA4-64g to store parameters and data files, and is connected to the CPU processing circuit 1 through SDI_CLK, SDI_RST, SDI_CLK, SDI_CMD and 8 SDI_DATA signal lines, and is responsible for parameter and data storage.
[0031] The real-time clock circuit 4 uses 8025T as an external clock, is connected to the CPU processing circuit 1 through clk and sda signal lines, and is powered by a 3.3F super capacitor, and is responsible for providing a clock for the time zone period measured by the IoT gateway.
[0032] The power module 5 includes a 5VLDO voltage-stabilized power module and a 3.3VLDO voltage-stabilized power module, which provide power supplies at various levels for the Internet of Things gateway.
[0033] The encryption configuration module 6 is composed of an ATSHA204A encryption chip, an stm32F103 processing chip, a u9507c4G transceiver module and a USB interface. The CPU processing circuit 1 is connected via the USB interface 8, the ATSHA204A is connected to the stm32F103 processing chip via the IIC bus, the u9507c4G transceiver module is connected to the stm32F103 processing chip via the RXT and TXD serial buses, and the stm32F103 is connected to the USB interface via USBd+ and USBd-. After the CPU processing circuit 1 is authenticated, the network parameter configuration file, the protocol stack static library and other parameters are downloaded to the data storage circuit 3 through the file management system of the CPU processing circuit 1.
[0034] The 485 module 7 includes 6 485 level conversion chips and external circuits, which are connected to the CPU processing circuit 1 through the TXD and RXD buses, and connected to the acquisition equipment through the 485A and 485B buses for downlink data interaction.
[0035] The USB interface 8 includes a CP2104 connected to the CPU processing circuit 1 via TXD and RXD, and connected to the encryption configuration module 6 via USBd+ and USBd-.
Claims
1. An energy-efficient IoT gateway configured for remote debugging, characterized in that: The Internet of Things gateway comprises a CPU processing circuit (1), a network acquisition module (2), a data storage circuit (3), a real-time clock circuit (4), a power module (5), an encryption configuration module (6), a 485 module (7), and a USB interface (8); the CPU processing circuit (1) is connected to the network acquisition module (2), the data storage circuit (3), the real-time clock circuit (4), the power module (5), the 485 module (7), and the USB interface (8); the USB interface (8) and the encryption configuration module (6) are in communication connection; the CPU processing circuit (1) uses an XC7Z020 chip as a CPU processing chip and is connected to the network acquisition module (2), the data storage circuit (3), the real-time clock circuit (4), the power module (5), the USB interface (8), and the 485 module (7) The network acquisition module (2) and the 485 module (7) are connected; the data information provided by the network acquisition module (2) and the 485 module (7) are processed and analyzed, and the encrypted configuration module (6) is connected through the USB interface (8); the CPU processing chip compares the authentication information of the encrypted configuration module (6) through the built-in SHA256 algorithm and key, and reads the configuration information to the storage chip of the storage circuit (3) after the authentication is passed, and reconfigures the interface protocol and parameters of the Internet of Things gateway; when the Internet of Things gateway cannot obtain the configuration information through the RJ45 interface of the network acquisition module (2), the encrypted configuration module (6) is connected; the USB interface is connected to the encrypted authentication communication of the CPU processing circuit (1); the u9507c4G transceiver module is used for remote configuration after authentication, The CPU processing circuit (1) first sends a MAC calculation instruction to ATSHA204A through the USB interface and the stm32F103 processing chip, and the latter returns the MAC calculation result C1; the CPU processing circuit (1) obtains the internal Tempkey of the encryption configuration module (6), and then calculates C2 through the built-in SHA256 algorithm, key, Tempkey, and serial number of the CPU processing circuit (1). When C2 is equal to C1, the data interaction connection with the encryption configuration module (6) is completed; The network acquisition module (2) and the 485 module (7) extract data to the data storage circuit (3) according to the processing results, identify the configuration parameters of the network acquisition module (2) and the encryption configuration module (6) through the USB interface, and reconfigure the network parameters, acquisition protocol and other system configuration parameters of the Internet of Things gateway; The network acquisition module (2) uses three rtl8211 network chips, which are connected to the CPU processing circuit (1) and three RJ45 interfaces, and has an independent MAC+PHY. The network configuration parameters are configured and managed through the CPU processing circuit (1) and are used to receive and send relevant data from the local area network and Ethernet. The data storage circuit (3) uses SDINBDA4-64G for parameter and data storage, and has Flash management, including error detection and correction, flash leveling erase, bad block management, power-off protection, and high-speed storage characteristics to help provide system performance and real-time data storage; The real-time clock circuit (4) uses 8025T as an external clock and is powered by a super capacitor; The power supply module (5) comprises two LDO voltage-stabilized power supplies and is used to provide 5V and 3.3V DC power supplies for each module; The encryption configuration module (6) uses an ATSHA204A encryption chip, an STM32F103 processing chip, a U9507C4G transceiver module and a USB interface. When the gateway cannot obtain configuration information through the RJ45 interface of the network acquisition module (2), the encryption configuration module (6), the STM32F103 processing chip and the USB interface are connected to the encryption configuration module (6), the STM32F103 processing chip and the USB interface, and are used for encryption authentication communication between the encryption configuration module (6) and the CPU processing circuit (1). The U9507C4G transceiver module is used for remote configuration after authentication. The CPU processing circuit (1) first sends a MAC calculation instruction to the ATSHA204A through the USB interface and the STM32F103 processing chip, and the latter returns the MAC calculation result C1. The CPU processing circuit (1) obtains the internal Tempkey of the encryption configuration module (6), and then calculates C2 through the built-in SHA256 algorithm, key, Tempkey, and serial number parameters of the CPU processing circuit (1). When C2 is equal to C1, data interaction with the encryption configuration module (6) begins. The 485 module (7) comprises six 485 level conversion chips and an external circuit. The CPU processing circuit (1) controls the module to interact with the measuring instrument to be collected for downlink data, thereby obtaining the lower computer information to be collected.
2. The energy-efficient Internet of Things gateway with remote debugging configuration according to claim 1, characterized in that: The USB interface (8) is used for data interaction with the encryption configuration module (6).
