Modbus gateway based on active identification carrier and method of using the same
By integrating components such as clock source, reset interface, and MCU module, the Modbus gateway solves the problem of remote control and information sharing in industrial automated production lines, and realizes low-cost remote analysis and information sharing.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- WUHAN YAWEI ELECTRONIC TECH CO LTD
- Filing Date
- 2023-09-22
- Publication Date
- 2026-04-10
AI Technical Summary
Existing industrial automated production line equipment cannot achieve remote control, remote analysis, and remote information sharing, and gateways based on active identification carriers are costly.
Design a Modbus gateway based on active identification carrier, which integrates a clock source, reset interface, MCU module, serial interface, 485 interface, RJ45 interface and RMII interface. The Modbus slave station communicates with the enterprise cloud platform and the Internet through the serial port to 485 module and the RMII interface to RJ45 module. The CPU system of the MCU module is used for command parsing and response.
It enables remote sharing, analysis, and feedback control of Modbus slave station information, reduces costs, and achieves real-time registration and sharing of information on the active identification carrier secondary node cloud platform.
Smart Images

Figure CN117254989B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of Modbus gateway, and particularly relates to a Modbus gateway based on active identification carrier and a use method thereof. BACKGROUND
[0002] The active identification carrier can be embedded in the industrial equipment, carries the industrial internet identification code and necessary security certificates, algorithms and keys, has the networking communication function, and can initiate the connection to the identification analysis service node or the identification data application platform without the help of the identification reading and writing equipment.
[0003] At present, the industrial automation production line based on the Modbus protocol is based on a wired master / slave communication network, and cannot be directly connected to the enterprise internal computer local area network or external Internet cloud server platform for remote control, remote analysis and information remote sharing, and cannot use the active identification carrier technology to realize the reporting of related information of the production equipment to the national active identification carrier cloud platform. For example, the agricultural machinery management and control method of the industrial internet disclosed in Chinese patent CN114493299A applies the active identification carrier technology to agricultural machinery, the industrial internet active identification analysis method and system based on quantum key disclosed in Chinese patent CN113965930A applies the active identification carrier technology to quantum technology, the power energy equipment safe operation method and device based on the industrial internet disclosed in Chinese patent CN114239079A applies the active identification carrier technology to power equipment, and the energy consumption monitoring method and device based on the active identification technology disclosed in Chinese patent CN115051971A applies the active identification carrier technology to the energy consumption monitoring device. However, the active identification carrier used in the above patents can only realize data acquisition function, and cannot realize remote control or use edge computing all-in-one machine, which has high cost. Therefore, how to design a gateway based on the active identification carrier which is convenient and practical for the industrial automation production line and can realize remote control, remote analysis and information remote sharing is an urgent technical problem to be solved. SUMMARY
[0004] Therefore, the present application provides a Modbus gateway based on the active identification carrier and a use method thereof to solve the problem that the existing industrial automation production line equipment cannot be remotely controlled, remotely analyzed and information remotely shared.
[0005] The technical scheme of the present application is implemented in the following manner: on one hand, the present application provides a Modbus gateway based on active identification carrier, wherein the Modbus gateway based on active identification carrier comprises a clock source CLK, a reset interface RESET, an MCU module, a serial interface, a 485 interface, an RJ45 interface, an RMII interface, a serial-to-485 module and an RMII interface-to-RJ45 module.
[0006] The clock source CLK is electrically connected with the MCU module, for generating an external clock signal and sending the external clock signal to the internal of the MCU module.
[0007] The reset interface RESET is electrically connected with the MCU module, for changing the reset signal state to reset the MCU module when power-on or abnormality occurs.
[0008] The serial interface is electrically connected with the MCU module, for the MCU module to send to Modbus slave stations as a master station, and for the Modbus slave stations to receive response data from the serial-to-485 module through the serial interface to the MCU module.
[0009] The serial-to-485 module is electrically connected with the serial interface, for converting the serial TTL signal of the serial interface into a 485 signal.
[0010] The 485 interface is electrically connected with the serial-to-485 module, for data communication with external Modbus slave stations through the 485 interface.
[0011] The RMII interface is electrically connected with the MCU module, for receiving commands sent by an external enterprise cloud platform through the RMII interface-to-RJ45 module to the RMII interface, and finally into the MCU module, wherein the MCU module analyzes the commands and responds, and the response result data is sent to the RMII interface-to-RJ45 module through the RMII interface.
[0012] The RMII interface-to-RJ45 module is electrically connected with the RMII interface, for converting the digital signal of the RMII interface into an RJ45 interface network signal.
[0013] The RJ45 interface is electrically connected with the RMII interface-to-RJ45 module, for exchanging information with external Internet through the RJ45 interface via a router, and finally sending data to the enterprise cloud platform, and also sending data to the active identification carrier secondary node cloud platform according to the commands of the active identification carrier.
[0014] Preferably, the MCU module comprises a PLL (Phase-Locked Loop) unit, a CPU system and a Modbus master unit.
[0015] The PLL unit is electrically connected with the clock source and the CPU system, for receiving a clock source signal and increasing the frequency of the clock signal, and sending the frequency-increased signal to the CPU system.
[0016] The CPU system is electrically connected with the Modbus master unit, for sending a command to the Modbus master unit, receiving data in response to the command from a master controller and analyzing the data and temporarily storing the data in an internal register of the CPU system, receiving and analyzing a command sent by an enterprise cloud platform, and sharing data in the internal register of the CPU system with the enterprise cloud platform and a secondary node cloud platform of the active identification carrier.
[0017] Preferably, the CPU system comprises an embedded system, a TIMER controller, a UART controller, an RMII controller and a RAM memory.
[0018] The TIMER controller, the UART controller, the RMII controller and the RAM memory transmit information with the embedded system through an internal bus.
[0019] The TIMER controller is used to generate a time sequence according to a requirement of a serial port baud rate.
[0020] The UART controller can exchange information with the embedded system through the internal bus, receive an external serial port TTL electrical signal and analyze the signal, and can also output data as a serial port TTL electrical signal according to a requirement of a serial port baud rate.
[0021] The RMII controller can exchange information with the embedded system through the internal bus, receive an external RMII electrical signal and analyze data, and can also output data as an RMII electrical signal.
[0022] The RAM memory is used to provide an address space for program running and a Modbus register address space.
[0023] The functions of the CPU system and the Modbus master unit are realized by C language codes on the MCU hardware.
[0024] Preferably, the MCU module hardware adopts an STM32F407VET6 model, and is compiled by using Keil uVision 5 software.
[0025] In another aspect, the application provides a use method of the Modbus gateway based on the active identification carrier.
[0026] S1. Change the state of the reset signal during power-on or abnormal operation, and reset the MCU module through the RESET interface;
[0027] The CPU system in the S2.MCU module sends a polling command to the Modbus master unit. The Modbus master unit generates the address code, function code, data area, and CRC checksum according to the Modbus protocol in the serial port message. It then sends the data to the Modbus slave devices through the serial interface and the serial-to-485 module via the 485 interface. The corresponding devices in Modbus slave 1 to Modbus slave 247 respond and upload the data to the CPU system in the reverse path. After polling all the Modbus slave devices, the CPU system parses all the data according to the Modbus protocol and temporarily stores it in the internal register.
[0028] S3. The enterprise cloud platform sends commands according to a custom string protocol. The commands are sent from the RJ45 interface to the RJ45 module and the RMII interface to the MCU module. The CPU system inside the MCU module receives the commands.
[0029] S4. The CPU system parses the commands from the enterprise cloud platform according to the custom-defined string protocol. If it is a control command SET_A_M_N, the Modbus master control unit will send the control command through the serial interface, serial-to-485 module, and 485 interface to the corresponding Modbus slave device to complete the control operation. If it is a query command GET_A_M, the CPU system will respond by sending the string DATA_A_M_D through the serial interface, serial-to-RJ45 module, and RJ45 interface to the enterprise cloud platform.
[0030] The S5 CPU system communicates directly with the enterprise cloud platform via the RMII interface, the RMII interface to RJ45 module, and the RJ45 interface. The enterprise cloud platform can perform comparative analysis of all data and standard data within multiple Modbus networks, model analysis, and feedback control of Modbus slave stations.
[0031] S6. The enterprise cloud platform can also send the sharing command SHARE_A_M to the Modbus gateway according to the set sharing permissions and the custom agreed string protocol. After the Modbus gateway parses the sharing command, it sends it to the active identification carrier secondary node cloud platform via HTTP protocol, which can complete the device registration command POST and the data update command PUT to realize remote information sharing.
[0032] The Modbus gateway based on active identifier carrier and its usage method of the present invention have the following advantages over the prior art:
[0033] (1) The Modbus local area network function, the Internet function and the active identification function are directly integrated in the device, and the Modbus slave station information is conveniently uploaded to the cloud;
[0034] (2) The enterprise cloud platform remotely controls the Modbus slave station through a command, and remotely analyzes and feeds back the control according to the real-time query of the Modbus slave station state information.
[0035] (3) The enterprise cloud platform remotely authorizes the Modbus gateway to share the Modbus slave station data on the active identification carrier secondary node cloud platform in real time through a command. BRIEF DESCRIPTION OF DRAWINGS
[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed to be used in the embodiments or the prior art description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0037] Fig. 1 The active identification carrier-based Modbus gateway structure diagram of the present application;
[0038] Fig. 2 The MCU system structure diagram of the present application;
[0039] Fig. 3 The active identification carrier-based Modbus gateway working principle diagram of the present application; DETAILED DESCRIPTION
[0040] The technical solutions in the embodiments of the present application will be described clearly and completely in combination with the embodiments of the present application. Obviously, the described embodiments are only some embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor are within the scope of protection of the present application.
[0041] Embodiment one
[0042] As shown in the figure, the active identification carrier-based Modbus gateway of the present application, wherein the active identification carrier-based Modbus gateway comprises: Figs. 1-3
[0043] a clock source CLK, a reset interface RESET, an MCU module, a serial interface, a 485 interface, an RJ45 interface, an RMII interface, a serial port to 485 module and an RMII interface to RJ45 module;
[0044] The clock source CLK is electrically connected with the MCU module, for generating an external clock signal and sending the external clock signal to the internal of the MCU module;
[0045] The reset interface RESET is electrically connected with the MCU module, for changing the reset signal state to reset the MCU module when power on or abnormal;
[0046] The serial interface is electrically connected with the MCU module, for the MCU module as a master station to send to a Modbus slave station, the Modbus slave station through the serial interface to the serial-to-485 module, and receiving the response data of the Modbus slave station from the serial-to-485 module through the serial interface to the MCU module;
[0047] The serial-to-485 module is electrically connected with the serial interface, for converting the serial interface TTL signal into a 485 signal;
[0048] The 485 interface is electrically connected with the serial-to-485 module, for data communication with an external Modbus slave station through the 485 interface;
[0049] The RMII interface is electrically connected with the MCU module, for receiving the command sent by an external enterprise cloud platform through the RMII interface to the RMII interface-to-RJ45 module, and finally into the MCU module, the MCU module analyzes the command and responds, and the response result data is sent to the RMII interface-to-RJ45 module through the RMII interface;
[0050] The RMII interface-to-RJ45 module is electrically connected with the RMII interface, for converting the digital signal of the RMII interface into an RJ45 interface network signal;
[0051] The RJ45 interface is electrically connected with the RMII interface-to-RJ45 module, for exchanging information with the external Internet through the router through the RJ45 interface, and finally uploading data to the enterprise cloud platform, and also can upload to the active identification carrier secondary node cloud platform according to the command of the active identification carrier.
[0052] The device adopts an MCU module, a serial port to 485 module and an RMII interface RJ45 module to realize a Modbus gateway based on an active identification carrier, the device integrates Modbus local area network functions, Internet functions and active identification functions in one device, realizes information remote sharing, analysis, supervision and feedback control, and registers, updates and shares device information on an active identification carrier secondary node cloud platform. Through design, simulation and verification, a modular product is formed, different platforms can be quickly transplanted, and product development processes are accelerated.
[0053] The MCU module comprises a PLL phase-locked loop unit, a CPU system and a Modbus master unit.
[0054] The PLL phase-locked loop unit is electrically connected with the clock source and the CPU system, is used for receiving a clock source signal and improving a clock signal frequency, and sends the frequency-raised signal to the CPU system.
[0055] The CPU system is electrically connected with the Modbus master unit, is used for sending a command to the Modbus master unit, receiving data responded by a master controller and analyzing and temporarily storing the data in an internal register of the CPU system, receiving and analyzing a command sent by an enterprise cloud platform, and sharing internal register data of the CPU system with the enterprise cloud platform and an active identification carrier secondary node cloud platform.
[0056] The clock source provides a passive clock for the PLL phase-locked loop unit, selects 25MHz, and sends the clock into a control end of a phase-locked loop unit PLL circuit in the MCU module through a clock interface CLK; the PLL phase-locked loop unit receives the 25MHz clock provided by the clock source, and raises an output clock frequency to 168MHz through a frequency division factor in the phase-locked loop unit PLL.
[0057] The serial port to 485 module is realized by hardware composed of a MAX3485 chip and peripheral electronic components, and the RMII interface to RJ45 module is realized by hardware composed of a LAN8720A chip and peripheral electronic components.
[0058] The CPU system comprises an embedded system, a TIMER controller, a UART controller, an RMII controller and a RAM memory.
[0059] The TIMER controller, the UART controller, the RMII controller and the RAM memory transmit information with the embedded system through an internal bus.
[0060] The TIMER controller is used for generating a time sequence according to requirements of a serial port baud rate.
[0061] The UART controller can exchange information with the embedded system through an internal bus, receive external serial port TTL electrical signals and parse them, and simultaneously convert output data into serial port TTL electrical signals and output them according to the requirements of the serial port baud rate;
[0062] The RMII controller can exchange information with the embedded system through an internal bus, receive external RMII electrical signals and parse data, and simultaneously convert output data into RMII electrical signals and output them.
[0063] The RAM memory is used to provide an address space for program running and a Modbus register address space.
[0064] The CPU system and the Modbus master unit function are both implemented by C language code on the MCU hardware.
[0065] The MCU hardware uses an STM32F407VET6 of ST Company, and the Keil uVision 5 software is used for compilation.
[0066] The Modbus gateway in the embodiment adopts an MCU module, a serial port to 485 module and an RMII interface to RJ45 module to implement a Modbus gateway based on an active identification carrier. The device integrates a Modbus local area network function, an Internet function and an active identification function in one device, realizes information remote sharing, analysis, supervision and feedback control, and registers, updates and shares device information on an active identification carrier secondary node cloud platform. Through design, simulation and verification, a modular product is formed, which can realize fast transplantation between different platforms and accelerate product development processes.
[0067] Embodiment Two
[0068] A use method of a Modbus gateway based on an active identification carrier is provided, which adopts the Modbus gateway based on an active identification carrier as described in Embodiment One, and includes the following steps.
[0069] S1. Changing a reset signal state when power is on or abnormal, resetting the MCU module through a reset interface RESET;
[0070] S2. The CPU system in the MCU module sends a polling query command to the Modbus master unit, the Modbus master unit generates an address code, a function code, a data area, and a CRC check code according to the serial message Modbus protocol, and sends them to the Modbus slave device from the 485 interface through the serial interface and the serial-to-485 module, and the corresponding device in the Modbus slave 1 to Modbus slave 247 responds and uploads to the CPU system according to the reverse path, after polling all the Modbus slave devices, the CPU system will parse all the data according to the Modbus protocol and temporarily store them in the internal register.
[0071] S3. The enterprise cloud platform sends a command according to the self-defined string protocol, which is sent to the MCU module through the RJ45 interface, the RMII interface, the RJ45 module, and the RMII interface, and the CPU system in the MCU module receives the command.
[0072] S4. The CPU system parses the command of the enterprise cloud platform according to the self-defined string protocol, if it is a control command SET_A_M_N, the Modbus master unit will send a control command to the corresponding Modbus slave device through the serial interface, the serial-to-485 module, and the 485 interface, and complete the control operation, if it is a query command GET_A_M, the CPU system will respond to send a DATA_A_M_D string to the enterprise cloud platform through the serial interface 1, the serial-to-RJ45 module, and the RJ45 interface.
[0073] S5. The CPU system directly communicates with the enterprise cloud platform through the RMII interface, the RMII-to-RJ45 module, and the RJ45 interface, and the enterprise cloud platform can realize comparison and analysis of all data in multiple Modbus networks and standard data, model analysis, and feedback control of Modbus slaves.
[0074] S6. The enterprise cloud platform can also send a sharing command SHARE_A_M to the Modbus gateway according to the set sharing permission and the self-defined string protocol, and the Modbus gateway parses the sharing command and sends it to the active identification carrier secondary node cloud platform through the HTTP protocol, which can complete the device registration command POST and the data update command PUT, and realize remote information sharing.
[0075] The internal register is a fixed address of the CPU system memory, and all the data parsed by polling are temporarily stored in order according to the address.
[0076] The SET_A_M_N is composed of four parts, SET represents a setting command, A represents the ID number of the Modbus gateway, M represents the Mth register of the Modbus gateway with the ID number A, and N represents the data inside the Mth register of the Modbus gateway with the ID number A.
[0077] The GET_A_M is composed of three parts, GET represents a query command, A represents the ID number of the Modbus gateway, and M represents the data inside the Mth register of the Modbus gateway with the ID number A.
[0078] The DATA_A_M_D is composed of four parts, DATA represents a response data header string, A represents the ID number of the Modbus gateway, M represents the Mth register of the Modbus gateway with the ID number A, and D represents the data inside the Mth register of the Modbus gateway with the ID number A.
[0079] The SHARE_A_M is composed of three parts, SHARE represents a sharing command, A represents the ID number of the Modbus gateway, and M represents the data inside the Mth register of the Modbus gateway with the ID number A.
[0080] The device registration command POST is a registration command transmitted to the active identification carrier secondary node cloud platform server in the HTTP protocol, and is sent to the active identification carrier secondary node cloud platform server after being encrypted by MD5 through a login account and a password. The server is decrypted by MD5, and generates a MD5-encrypted and 1-hour-valid key token according to the password and the time, responds to the HTTP request of the Modbus gateway of the active identification carrier, and issues the generated key token to the Modbus gateway of the active identification carrier.
[0081] The data update command PUT is an update command transmitted to the active identification carrier secondary node cloud platform server in the HTTP protocol, and sends update data with a key token to the active identification carrier secondary node cloud platform server. The active identification carrier secondary node cloud platform server receives and updates the data, and realizes remote sharing of information.
[0082] As Fig. 3As shown, each gateway can be connected with 247 Modbus slaves at most, and a total of N unlimited gateways continuously send commands in a polling manner according to the Modbus protocol, receive the response information of each slave, the gateway simultaneously acts as a terminal device of the enterprise cloud platform, and responds according to the remote string command sent by the enterprise cloud platform, the enterprise cloud platform collects all the Modbus slave information for comparison analysis and feedback control, and each gateway can upload part of the information to the active identification carrier secondary node cloud platform for sharing according to the authorization of the enterprise cloud platform.
[0083] The use method of the Modbus gateway based on the active identification carrier in the embodiment is completed by using the standard C language, the modular design method is adopted, the enterprise cloud platform sent instructions can be received, the implementation is realized in the MCU module, the serial port to 485 module and the RMII interface to RJ45 module, the flexibility and the expansibility are improved, the remote control, the remote analysis and the information remote feedback of the enterprise cloud platform to the industrial automation production line are realized, and the information remote sharing is realized in the active identification carrier secondary node cloud platform.
[0084] The above only describes the preferred embodiments of the present application and is not intended to limit the present application, and any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for using a Modbus gateway based on an active identifier carrier, characterized in that: Includes the following steps: S1. Change the state of the reset signal when powered on or in case of an abnormality, and reset the MCU module through the RESET interface; The CPU system in the S2.MCU module sends a polling command to the Modbus master unit. The Modbus master unit generates the address code, function code, data area, and CRC checksum according to the Modbus protocol in the serial port message. It then sends the data to the Modbus slave devices through the serial interface and the serial-to-485 module via the 485 interface. The corresponding devices in Modbus slave 1 to Modbus slave 247 respond and upload the data to the CPU system in the reverse path. After polling all the Modbus slave devices, the CPU system parses all the data according to the Modbus protocol and temporarily stores it in the internal register. S3. The enterprise cloud platform sends commands according to a custom string protocol. The commands are sent from the RJ45 interface to the RJ45 module and the RMII interface to the MCU module. The CPU system inside the MCU module receives the commands. S4. The CPU system parses the commands from the enterprise cloud platform according to the custom-defined string protocol. If it is a control command SET_A_M_N, the Modbus master control unit will send the control command through the serial interface, serial-to-485 module, and 485 interface to the corresponding Modbus slave device to complete the control operation. If it is a query command GET_A_M, the CPU system will respond by sending the string DATA_A_M_D through the RMII interface, RMII interface to RJ45 module, and RJ45 interface to the enterprise cloud platform. The S5 CPU system communicates directly with the enterprise cloud platform via the RMII interface, the RMII interface to RJ45 module, and the RJ45 interface. The enterprise cloud platform can perform comparative analysis of all data and standard data within multiple Modbus networks, model analysis, and feedback control of Modbus slave stations. S6. The enterprise cloud platform can also send a sharing command SHARE_A_M to the Modbus gateway according to the set sharing permissions and a custom-defined string protocol. After parsing the sharing command, the Modbus gateway sends it to the active identification carrier secondary node cloud platform via HTTP protocol, which can complete the device registration command POST and the data update command PUT, realizing remote information sharing. The SHARE_A_M consists of three parts: SHARE represents the sharing command, A represents the ID number of the Modbus gateway, and M represents the data in the Mth register of the Modbus gateway with sharing ID number A. The device registration command POST is sent to the active identification carrier secondary node cloud platform server via HTTP protocol. The registration command, transmitted via MD5 encryption of the login account and password, is sent to the active identifier carrier's secondary node cloud platform server. The server decrypts the MD5 and generates an MD5-encrypted key token valid for one hour based on the password and time. It then responds to the active identifier carrier's Modbus gateway's HTTP request and sends the generated key token to the active identifier carrier's Modbus gateway. The data update command, PUT, is an update command transmitted via HTTP to the active identifier carrier's secondary node cloud platform server. It sends update data with the key token to the active identifier carrier's secondary node cloud platform server, which receives and updates the data, thus enabling remote information sharing.
2. The method of using a Modbus gateway based on an active identifier carrier as described in claim 1, characterized in that, The Step S2 specifically includes: the internal register is a fixed address in the CPU system memory, and all the data parsed by polling is temporarily stored in address order.
3. The method of using a Modbus gateway based on an active identifier carrier as described in claim 1, characterized in that, Step S4 specifically includes: SET_A_M_N consists of 4 parts, where SET represents the setting command, A represents the ID number of the Modbus gateway, M represents setting the Mth register of the Modbus gateway with ID number A, and N represents setting the data inside the Mth register of the Modbus gateway with ID number A to N.
4. The method of using a Modbus gateway based on an active identifier carrier as described in claim 1, characterized in that, Step S4 specifically includes: The GET_A_M statement consists of three parts: GET represents the query command, A represents the ID number of the Modbus gateway, and M represents querying the data in the Mth register of the Modbus gateway with ID number A. The DATA_A_M_D statement consists of four parts: DATA represents the response header string, A represents the ID number of the Modbus gateway, M represents the Mth register of the Modbus gateway with ID number A, and D represents the data D inside the Mth register of the Modbus gateway with ID number A.
5. A Modbus gateway based on an active identifier carrier, which employs the method described in any one of claims 1-4; characterized in that: The Modbus gateway based on active identifier carrier includes: a clock source CLK, a reset interface RESET, an MCU module, a serial interface, a 485 interface, an RJ45 interface, an RMII interface, a serial-to-485 module, and an RMII-to-RJ45 module. The clock source CLK is electrically connected to the MCU module and is used to generate an external clock signal and send it to the MCU module. The reset interface RESET is electrically connected to the MCU module and is used to reset the MCU module by changing the reset signal state upon power-on or in case of an abnormality. The serial interface is electrically connected to the MCU module and is used by the MCU module as a master station to send data to a Modbus slave station. The Modbus slave station then sends data to the serial-to-485 module via the serial interface, and simultaneously receives response data from the Modbus slave station, which is then sent from the serial-to-485 module to the MCU module via the serial interface. The serial-to-485 module is electrically connected to the serial interface and is used to convert the serial port TTL of the serial interface. The signal is converted into a 485 signal; the 485 interface is electrically connected to the serial-to-485 module for data communication between the 485 interface and an external Modbus slave station; the RMII interface is electrically connected to the MCU module for receiving commands sent by an external enterprise cloud platform, which are then converted to RJ45 via the RMII interface and finally sent to the MCU module. The MCU module analyzes the commands and responds, sending the response data to the RMII interface-to-RJ45 module via the RMII interface; the RMII interface-to-RJ45 module is electrically connected to the RMII interface for converting the digital signal of the RMII interface into an RJ45 interface network signal; the RJ45 interface is electrically connected to the RMII interface-to-RJ45 module for exchanging information with the external Internet via a router through the RJ45 interface, ultimately uploading the data to the enterprise cloud platform, and can also be uploaded to the active identification carrier secondary node cloud platform according to the protocol specified by the active identification carrier.
6. The Modbus gateway based on active identifier carrier as described in claim 5, characterized in that: The MCU module includes a PLL phase-locked loop unit, a CPU system, and a Modbus master control unit. The PLL unit is electrically connected to the clock source and the CPU system, and is used to receive the clock source signal, increase the clock signal frequency, and send the increased frequency signal to the CPU system. The CPU system is electrically connected to the Modbus master control unit, and is used to send commands to the Modbus master control unit, receive the data responded by the Modbus master control unit, analyze and temporarily store it in the internal registers of the CPU system, and simultaneously receive and analyze commands sent by the enterprise cloud platform, and share the internal register data of the CPU system with the enterprise cloud platform and the active identification carrier secondary node cloud platform.
7. The Modbus gateway based on active identifier carrier as described in claim 6, characterized in that: The CPU system includes an embedded system, a TIMER controller, a UART controller, an RMII controller, and RAM memory; The TIMER controller, UART controller, RMII controller, and RAM memory transmit information with the embedded system via an internal bus. The TIMER controller generates timing parameters according to the serial port baud rate requirements. The UART controller exchanges information with the embedded system via the internal bus, receives and parses external serial port TTL electrical signals, and converts the output data into serial port TTL electrical signals according to the serial port baud rate requirements. The RMII controller exchanges information with the embedded system via the internal bus, receives and parses external RMII electrical signals, and converts the output data into RMII electrical signals. The RAM memory provides the address space for program execution and the Modbus register address space. The functions of the CPU system and the Modbus master control unit are implemented in C language code on the MCU hardware.
Citation Information
Patent Citations
Industrial internet active identification analysis method and system based on quantum key
CN113965930A
Electric power energy equipment safe operation method and equipment based on industrial internet
CN114239079A
Agricultural machinery management and control method and equipment based on industrial internet, and medium
CN114493299A
Energy consumption monitoring method and device based on active identification technology
CN115051971A
Industrial edge gateway data management method based on active identification
CN114338287A