CN109981435B - Gateway and communication system based on CAN-ModBus to MQTT - Google Patents

Gateway and communication system based on CAN-ModBus to MQTT Download PDF

Info

Publication number
CN109981435B
CN109981435B CN201910262044.4A CN201910262044A CN109981435B CN 109981435 B CN109981435 B CN 109981435B CN 201910262044 A CN201910262044 A CN 201910262044A CN 109981435 B CN109981435 B CN 109981435B
Authority
CN
China
Prior art keywords
data
mqtt
modbus
gateway
protocol
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910262044.4A
Other languages
Chinese (zh)
Other versions
CN109981435A (en
Inventor
马锦宝
李志刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhongan Zhilian Future Co ltd
Original Assignee
Zhongan Zhilian Future Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhongan Zhilian Future Co ltd filed Critical Zhongan Zhilian Future Co ltd
Priority to CN201910262044.4A priority Critical patent/CN109981435B/en
Publication of CN109981435A publication Critical patent/CN109981435A/en
Application granted granted Critical
Publication of CN109981435B publication Critical patent/CN109981435B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40052High-speed IEEE 1394 serial bus
    • H04L12/40097Interconnection with other networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40228Modbus
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2212/00Encapsulation of packets

Abstract

According to the gateway for converting the CAN-ModBus into the MQTT, the CAN interface receives or sends data of external equipment through the CAN bus and completes conversion between the CAN protocol format and the ModBus protocol format. The ModBus protocol unit completes the conversion between the ModBus protocol format and the MQTT protocol format and receives or sends data to the MQTT proxy server. The gateway combines the advantages of the CAN bus and the MQTT and meets the requirement of real-time communication. The CAN bus CAN effectively solve the problem of bus data collision when multiple nodes are in simultaneous communication, and the MQTT CAN realize data communication through a message subscribing and publishing mechanism and is convenient to deploy in a cross-network environment.

Description

Gateway and communication system based on CAN-ModBus to MQTT
Technical Field
The invention belongs to the technical fields of industrial automatic control, building intelligent control and the like, and particularly relates to a gateway and a communication system based on CAN-ModBus-to-MQTT conversion.
Background
In modern industrial engineering, computers play an increasingly important role in the field of control, and various instruments, microcomputer systems and the like in industrial control provide communication protocols with the computers, so that great convenience is provided for the design of computer control systems.
Modbus is a serial communication protocol. The Modbus protocol has become an industry standard for industrial communication protocols and is a common connection method between industrial electronic devices. Modbus is more widely used than other communication protocols because of its public publication and advantages such as no copyright requirement, easy deployment and maintenance, no restrictions on modifying bits or bytes local to the mobile, etc.
However, for the ModBus protocol based on the fieldbus RS485, data collision on the bus can be caused when multiple nodes communicate simultaneously. Although the ModBus _ TCP/IP protocol enables ethernet communication, its single communication mode makes it difficult to expand deployment in a cross-network environment.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides the gateway and the communication system based on the conversion from CAN-ModBus to MQTT, which CAN effectively solve the problem of bus data collision during simultaneous communication of multiple nodes.
In a first aspect, a gateway for transferring MQTT based on CAN-ModBus comprises:
a plurality of CAN interfaces: the device comprises a CAN bus, a ModBus protocol and a controller, wherein the CAN bus is used for being connected with external equipment, receiving data which are from the external equipment and packaged in a CAN protocol format through the CAN bus, and converting the data into ModBus to-be-processed data packaged in a ModBus protocol format; the device is also used for converting ModBus encapsulated data into data encapsulated in a CAN protocol format and sending the data to external equipment;
ModBus protocol unit: the data processing system is used for analyzing the ModBus data to be processed, repackaging the analyzed data according to an MQTT protocol format to obtain MQTT packaged data, and sending the MQTT packaged data to an MQTT proxy server as an MQTT client; the data processing method is also used for subscribing MQTT to-be-processed data which is from the MQTT proxy server and packaged in an MQTT protocol format as an MQTT client, analyzing the MQTT to-be-processed data, re-packaging the analyzed data according to a ModBus protocol format to obtain ModBus packaged data, and sending the ModBus packaged data to the CAN interface.
Preferably, the ModBus protocol unit is specifically configured to:
and the ModBus protocol unit analyzes the ModBus data to be processed or the MQTT data to be processed to obtain an external device address, a register address and data stored in a register.
Preferably, the ModBus protocol unit is used as an MQTT client and communicates with the MQTT proxy server through a message publishing mechanism or a message subscribing mechanism.
Preferably, the CAN interface is specifically configured to:
creating a one-way annular linked list, wherein the node space of the one-way annular linked list is 8 bytes;
when a plurality of data packets are received through the CAN bus, judging an initial packet, a middle packet and a stop packet in the data packets according to the ID of the CAN protocol extension frame, and sequentially putting the received data packets into the nodes of the one-way annular linked list;
and reading data in the nodes of the unidirectional annular linked list, and analyzing according to a ModBus protocol format to obtain ModBus to-be-processed data.
Preferably, the CAN interface is specifically configured to:
when ModBus encapsulation data containing modified register data are received, the modified register data are encapsulated in a CAN protocol format again, stored in the nodes of the one-way annular linked list and sent to external equipment through a CAN bus.
Preferably, the ModBus protocol unit is specifically configured to:
the ModBus protocol unit analyzes the ModBus data to be processed to obtain a register address;
converting the register address and data stored in the register address into character strings, splicing by using the &' number as a segmentation character, and segmenting the data stored in each register address by using commas to obtain the MQTT encapsulated data;
and sending the MQTT packaging data to an MQTT proxy server through a message publishing mechanism.
Preferably, the first and second electrodes are formed of a metal,
the ModBus protocol unit is specifically configured to:
receiving the MQTT data to be processed through a message subscription mechanism;
analyzing the message subject name in the MQTT data to be processed to obtain an external device address, a register address and the number of registers;
and encapsulating the same register address and corresponding data into a ModBus protocol packet in the analyzed data to obtain the ModBus encapsulated data.
In a second aspect, a communication system includes:
n external devices, N mobile terminals, an MQTT proxy server and the CAN-ModBus-to-MQTT gateway according to claim 2;
the gateway is connected with the external equipment through a CAN interface based on conversion from CAN-ModBus to MQTT;
the MQTT proxy server receives the data of the mobile terminal through a message publishing mechanism; receiving data of the MQTT proxy server through a message subscription mechanism based on a CAN-ModBus-to-MQTT gateway;
the mobile terminal receives data of the MQTT proxy server through a message subscription mechanism, and the MQTT proxy server receives data converted into an MQTT gateway based on the CAN-ModBus through a message publishing mechanism.
According to the technical scheme, the gateway and the communication system based on the CAN-ModBus-MQTT transfer provided by the invention combine the advantages of the CAN bus and the advantages of the MQTT and meet the real-time communication requirement. The CAN bus CAN effectively solve the problem of bus data collision when multiple nodes are in simultaneous communication, and the MQTT CAN realize data communication through a message subscribing and publishing mechanism and is convenient to deploy in a cross-network environment.
Drawings
In order to more clearly illustrate the detailed description of the invention or the technical solutions in the prior art, the drawings that are needed in the detailed description of the invention or the prior art will be briefly described below. Throughout the drawings, like elements or portions are generally identified by like reference numerals. In the drawings, elements or portions are not necessarily drawn to scale.
Fig. 1 is a schematic structural diagram of a gateway provided in the first embodiment.
Fig. 2 is a schematic diagram illustrating a conversion between a CAN protocol format and a ModBus protocol format according to an embodiment.
Fig. 3 is a schematic diagram illustrating a conversion from the ModBus protocol format to the MQTT protocol format according to a third embodiment.
Fig. 4 is a schematic diagram illustrating a conversion of the MQTT protocol format to the ModBus protocol format according to the third embodiment.
Fig. 5 is a block diagram of a communication protocol according to a fourth embodiment.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. The following examples are only for illustrating the technical solutions of the present invention more clearly, and therefore are only examples, and the protection scope of the present invention is not limited thereby. It is to be noted that, unless otherwise specified, technical or scientific terms used herein shall have the ordinary meaning as understood by those skilled in the art to which the invention pertains.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
The first embodiment is as follows:
a CAN-ModBus-to-MQTT gateway, see fig. 1, comprising:
a plurality of CAN interfaces: the device comprises a CAN bus, a ModBus protocol and a controller, wherein the CAN bus is used for being connected with external equipment, receiving data which are from the external equipment and packaged in a CAN protocol format through the CAN bus, and converting the data into ModBus to-be-processed data packaged in a ModBus protocol format; the device is also used for converting ModBus encapsulated data into data encapsulated in a CAN protocol format and sending the data to external equipment;
specifically, referring to fig. 2, the CAN interface performs conversion between the CAN protocol format and the ModBus protocol format. Two CAN interfaces may be provided, such as CAN1 and CAN2 shown in fig. 1. The gateway is used as a host end of a ModBus protocol, the external equipment is used as a slave end of the ModBus protocol, and peripheral equipment is abbreviated as peripheral equipment in the attached drawing of the external equipment. The external device may be a device supporting a CAN-ModBus protocol, and may be a hardware device such as a PLC, a controller, or a sensor supporting the CAN-ModBus protocol.
ModBus protocol unit: the data processing system is used for analyzing the ModBus data to be processed, repackaging the analyzed data according to an MQTT protocol format to obtain MQTT packaged data, and sending the MQTT packaged data to an MQTT proxy server as an MQTT client; the data processing method is also used for subscribing MQTT to-be-processed data which is from the MQTT proxy server and packaged in an MQTT protocol format as an MQTT client, analyzing the MQTT to-be-processed data, re-packaging the analyzed data according to a ModBus protocol format to obtain ModBus packaged data, and sending the ModBus packaged data to the CAN interface.
Specifically, the ModBus protocol unit analyzes the ModBus data to be processed or the MQTT data to be processed to obtain an external device address, a register address and data. Wherein the data is the data correspondingly stored in the register address.
The gateway can be set as an ARM-based embedded hardware device. The gateway can also be externally provided with an RJ45 interface. The gateway is used as a host end of the ModBus protocol and actively sends a read data request or a write data request to a slave end of the ModBus protocol. The external device is used as a slave end of the ModBus protocol and responds to a request of reading and writing data of the host end.
Preferably, the ModBus protocol unit is used as an MQTT client and communicates with the MQTT proxy server through a message publish/subscribe mechanism.
For example: when the gateway receives data sent by external equipment through the CAN bus, the data is converted into data packaged in a ModBus protocol format, the address, the register address and the data of the external equipment are analyzed, and then the data are packaged again according to an MQTT protocol format. The gateway sends the data to the MQTT proxy server through a message publishing mechanism. In this way, the MQTT client running on the mobile terminal can acquire the register address and data of the external device from the MQTT proxy server through a message subscription mechanism.
When a user wants to modify external device data through a certain MQTT client of the mobile terminal, the address, the register address and the data of the external device need to be packaged according to the MQTT format, the data are sent to the MQTT proxy server through a message publishing mechanism, at the moment, the gateway CAN acquire data content through a message subscribing mechanism, the address, the register address and the data of the external device are analyzed, and then the data are packaged into a Modbus format again and sent to the external device through a CAN bus.
The gateway combines the advantages of the CAN bus and the MQTT and meets the requirement of real-time communication. The CAN bus CAN effectively solve the problem of bus data collision when multiple nodes are in simultaneous communication, and the MQTT CAN realize data communication through a message subscribing and publishing mechanism and is convenient to deploy in a cross-network environment.
Example two:
the second embodiment is based on the first embodiment, and adds the following differences:
because the CAN protocol CAN transmit effective data at one time at most 8 bytes, the length of the effective data transmitted and received at one time by the gateway through the CAN bus cannot exceed 8 bytes, and the ModBus protocol has no limit on the data length. This creates a length disparity between protocols.
Therefore, in the gateway, the CAN interface is specifically configured to:
creating a one-way annular linked list, wherein the node space of the one-way annular linked list is 8 bytes;
specifically, the number of nodes in the unidirectional circular linked list is configurable, the number range is 1 to 10, and the default number is 1. The space size of the nodes is 8 bytes, so that each node just stores the longest effective data which CAN be transmitted by the CAN protocol at one time.
When a plurality of data packets are received through the CAN bus, judging an initial packet, a middle packet and a stop packet in the data packets according to the ID of the CAN protocol extension frame, and sequentially putting the received data packets into the nodes of the one-way annular linked list;
and reading data in the nodes of the unidirectional annular linked list, and analyzing according to a ModBus protocol format to obtain ModBus to-be-processed data.
Specifically, if the gateway wants to request to continuously read the data of the plurality of registers through the ModBus, the data responded by the external device is divided into a plurality of data packets and sent to the gateway through the CAN bus, and the gateway judges whether each data packet belongs to an initial packet, a middle packet or a stop packet according to the ID of the CAN protocol extension frame. Bits 0-bit7 in the extension frame ID are packet sequence numbers, and are incremented from 0, with 0XFF indicating an end packet. The gateway puts the received data packets into the nodes of the unidirectional ring linked list in sequence. When the gateway reads data, the data is extracted from the nodes in the unidirectional circular linked list, and the data of each register is analyzed according to the ModBus protocol format.
Preferably, the CAN interface is specifically configured to:
when ModBus encapsulation data containing modified register data are received, the modified register data are encapsulated in a CAN protocol format again, stored in the nodes of the one-way annular linked list and sent to external equipment through a CAN bus.
Specifically, if the gateway needs to modify the data of multiple registers in the external device through the ModBus protocol, each register and the corresponding data need to be encapsulated into a CAN protocol format, and the CAN protocol format is put into a circular linked list and sent to the external device through the CAN interface.
For the sake of brief description, the method provided by the embodiment of the present invention may refer to the corresponding contents in the foregoing method embodiments.
Example three:
example three on the basis of other examples, the following contents are added:
referring to fig. 3, the ModBus protocol unit is specifically configured to:
the ModBus protocol unit analyzes the ModBus data to be processed to obtain a register address;
converting the register address and data stored in the register address into character strings, splicing by using the &' number as a segmentation character, and segmenting the data stored in each register address by using commas to obtain the MQTT encapsulated data;
and sending the MQTT packaging data to an MQTT proxy server through a message publishing mechanism.
Specifically, the gateway serves as a ModBus host, a register address of data to be requested of the gateway needs to be stored, the register address and corresponding data are converted into character strings after received register data are analyzed, and the character strings are spliced together by taking the "&" number as a divider. Such as "512 &10," indicating that the data content of the register with address 512 is 10. The data of a plurality of continuous registers are divided by commas, such as 512&10,518&30,520&19, which indicates that the data content of the register addresses 512, 518 and 520 are 10, 30 and 19 respectively. After the character strings are spliced, the data strings are placed in a data area of an MQTT protocol, and then the data are sent to an MQTT proxy server through a message publishing mechanism.
Referring to fig. 4, the ModBus protocol unit is specifically configured to:
receiving the MQTT data to be processed through a message subscription mechanism;
analyzing the message subject name in the MQTT data to be processed to obtain an external device address, a register address and the number of registers;
and encapsulating the same register address and corresponding data into a ModBus protocol packet in the analyzed data to obtain the ModBus encapsulated data.
Specifically, after the gateway subscribes to the message, namely after receiving the data to be processed of the MQTT, the gateway judges a message topic name, wherein the message topic name comprises an external device address, a register address and the number of registers. When the number of registers contained in the message topic name is consistent with the number of actual data contained in the subscribed topic message, the data stored in the registers and the registers can be analyzed.
For example, the message topic name is defined as "A1R 512N 3", where "A1" indicates that the peripheral address is 1, "R512" indicates that the register start address is 512, and "N3" indicates that the number of registers is 3. If the data subscribed to the theme is '123, 456, 789', the peripheral device with the device address of 1 is indicated, the data content of the register address 512 is 123, the data of the register address 513 is 456, and the data content of the register address 514 is 789. Thus, the gateway encapsulates a register and corresponding data into a ModBus protocol packet according to the subscribed data, and the length of each ModBus protocol packet is 8 bytes. Still taking "A1R 512N 3" as an example, after subscribing to the data of the theme through the MQTT message mechanism, the data are packaged into 3 ModBus protocol packets, and then the 3 ModBus protocol packets are respectively sent to the external devices through the CAN interface.
For the sake of brief description, the method provided by the embodiment of the present invention may refer to the corresponding contents in the foregoing method embodiments.
Example four:
a communication system, see fig. 5, comprising:
n external devices, N mobile terminals, an MQTT proxy server and the gateway for transferring MQTT based on CAN-ModBus;
the gateway is connected with the external equipment through a CAN interface based on conversion from CAN-ModBus to MQTT;
the MQTT proxy server receives the data of the mobile terminal through a message publishing mechanism; receiving data of the MQTT proxy server through a message subscription mechanism based on a CAN-ModBus-to-MQTT gateway;
the mobile terminal receives data of the MQTT proxy server through a message subscription mechanism, and the MQTT proxy server receives data converted into an MQTT gateway based on the CAN-ModBus through a message publishing mechanism.
The system combines the advantages of the CAN bus and the MQTT and meets the requirement of real-time communication. The CAN bus CAN effectively solve the problem of bus data collision when multiple nodes are in simultaneous communication, and the MQTT CAN realize data communication through a message subscribing and publishing mechanism and is convenient to deploy in a cross-network environment.
For the sake of brief description, the system provided by the embodiment of the present invention may refer to the corresponding content in the foregoing method embodiments.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the present invention, and they should be construed as being included in the following claims and description.

Claims (5)

1. A gateway based on CAN-ModBus to MQTT is characterized by comprising:
a plurality of CAN interfaces: the device comprises a CAN bus, a ModBus protocol and a controller, wherein the CAN bus is used for being connected with external equipment, receiving data which are from the external equipment and packaged in a CAN protocol format through the CAN bus, and converting the data into ModBus to-be-processed data packaged in a ModBus protocol format; the device is also used for converting ModBus encapsulated data into data encapsulated in a CAN protocol format and sending the data to external equipment;
ModBus protocol unit: the data processing system is used for analyzing the ModBus data to be processed, repackaging the analyzed data according to an MQTT protocol format to obtain MQTT packaged data, and sending the MQTT packaged data to an MQTT proxy server as an MQTT client; the system is also used as an MQTT client to subscribe MQTT data to be processed which is from an MQTT proxy server and packaged in an MQTT protocol format, analyze the MQTT data to be processed, repackage the analyzed data according to a ModBus protocol format to obtain ModBus packaged data, and send the ModBus packaged data to a CAN interface;
the CAN interface is specifically configured to:
creating a one-way annular linked list, wherein the node space of the one-way annular linked list is 8 bytes;
when a plurality of data packets are received through the CAN bus, judging an initial packet, a middle packet and a stop packet in the data packets according to the ID of the CAN protocol extension frame, and sequentially putting the received data packets into the nodes of the one-way annular linked list;
reading data in the nodes of the unidirectional annular linked list, and analyzing according to a ModBus protocol format to obtain ModBus to-be-processed data;
the CAN interface is specifically configured to:
when ModBus encapsulation data containing modified register data are received, repackaging the modified register data into a CAN protocol format, storing the CAN protocol format into the nodes of the one-way annular linked list, and sending the CAN protocol format to external equipment through a CAN bus;
the ModBus protocol unit is specifically configured to:
the ModBus protocol unit analyzes the ModBus data to be processed to obtain a register address;
converting the register address and data stored in the register address into character strings, splicing by using the &' number as a segmentation character, and segmenting the data stored in each register address by using commas to obtain the MQTT encapsulated data;
and sending the MQTT packaging data to an MQTT proxy server through a message publishing mechanism.
2. The CAN-ModBus to MQTT gateway of claim 1, wherein the ModBus protocol unit is specifically configured to:
and the ModBus protocol unit analyzes the ModBus data to be processed or the MQTT data to be processed to obtain an external device address, a register address and data stored in a register.
3. The CAN-ModBus to MQTT based gateway of claim 2,
the ModBus protocol unit is used as an MQTT client and is communicated with the MQTT proxy server through a message publishing mechanism or a message subscribing mechanism.
4. The CAN-ModBus to MQTT based gateway of claim 3,
the ModBus protocol unit is specifically configured to:
receiving the MQTT data to be processed through a message subscription mechanism;
analyzing the message subject name in the MQTT data to be processed to obtain an external device address, a register address and the number of registers;
and encapsulating the same register address and corresponding data into a ModBus protocol packet in the analyzed data to obtain the ModBus encapsulated data.
5. A communication system, comprising:
n external devices, N mobile terminals, an MQTT proxy server and the CAN-ModBus-to-MQTT gateway according to claim 2;
the gateway is connected with the external equipment through a CAN interface based on conversion from CAN-ModBus to MQTT;
the MQTT proxy server receives the data of the mobile terminal through a message publishing mechanism; receiving data of the MQTT proxy server through a message subscription mechanism based on a CAN-ModBus-to-MQTT gateway;
the mobile terminal receives data of the MQTT proxy server through a message subscription mechanism, and the MQTT proxy server receives data converted into an MQTT gateway based on the CAN-ModBus through a message publishing mechanism.
CN201910262044.4A 2019-04-02 2019-04-02 Gateway and communication system based on CAN-ModBus to MQTT Active CN109981435B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910262044.4A CN109981435B (en) 2019-04-02 2019-04-02 Gateway and communication system based on CAN-ModBus to MQTT

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910262044.4A CN109981435B (en) 2019-04-02 2019-04-02 Gateway and communication system based on CAN-ModBus to MQTT

Publications (2)

Publication Number Publication Date
CN109981435A CN109981435A (en) 2019-07-05
CN109981435B true CN109981435B (en) 2021-09-28

Family

ID=67082560

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910262044.4A Active CN109981435B (en) 2019-04-02 2019-04-02 Gateway and communication system based on CAN-ModBus to MQTT

Country Status (1)

Country Link
CN (1) CN109981435B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110808973A (en) * 2019-10-31 2020-02-18 国网河北省电力有限公司电力科学研究院 Fusion type message bus capable of being deployed across hosts
CN112769741B (en) * 2019-11-06 2023-04-07 中移物联网有限公司 Message communication method and electronic equipment
CN110768882B (en) * 2019-11-07 2022-07-12 青岛合启立智能科技有限公司 Data monitoring method and system, monitoring equipment and vehicle
CN110855774B (en) * 2019-11-11 2021-08-10 卡乐电子(苏州)有限责任公司 Internet of things system capable of being automatically configured based on MQTT protocol
CN111614719A (en) * 2020-04-13 2020-09-01 广州市山水生态环保建设有限公司 Remote automatic control system and rural domestic sewage integrated control system
CN111601419A (en) * 2020-05-18 2020-08-28 上海浔朴网络科技有限公司 Be used for temple channel to watch intelligent lamp accuse system
CN111726419B (en) * 2020-06-29 2021-08-06 广东技术师范大学 Sludge dryer model system based on Internet of things
CN112187922A (en) * 2020-09-28 2021-01-05 特变电工南京智能电气有限公司 Intelligent Internet of things shutdown machine based on MQTT communication protocol
CN114679501B (en) * 2022-03-10 2023-01-10 慧之安信息技术股份有限公司 Cloud gateway implementation method and device for MODBUS-MQTT protocol

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101882108A (en) * 2010-06-30 2010-11-10 三一重机有限公司 Embedded software automatic test system and method thereof
CN202385128U (en) * 2012-01-06 2012-08-15 珠海格力电器股份有限公司 Gateway and communication network
CN102857411A (en) * 2011-06-27 2013-01-02 Ls产电株式会社 Communication method of gateway device supporting mutual communication of CAN and Modbus and gateway device using the same
CN103200078A (en) * 2012-01-06 2013-07-10 珠海格力电器股份有限公司 Gateway, communication network and data processing method
CN104932472A (en) * 2015-06-10 2015-09-23 西南大学 Network online reconfigurable industrial security monitoring system
CN207529198U (en) * 2017-09-08 2018-06-22 深圳市智物联网络有限公司 A kind of water utilities intelligent monitor system based on Internet of Things
CN108322356A (en) * 2017-01-18 2018-07-24 重庆邮电大学 A kind of industrial network gateway compatibility test method based on MQTT
CN108681288A (en) * 2018-06-28 2018-10-19 上海电器科学研究所(集团)有限公司 A kind of novel maintenance system based on cloud platform
CN109040021A (en) * 2018-06-29 2018-12-18 中车大连电力牵引研发中心有限公司 Gateway and light rail information monitoring device
CN109150703A (en) * 2018-08-23 2019-01-04 北方工业大学 Intelligent cloud gateway for industrial Internet of things and communication method thereof
CN109144014A (en) * 2018-10-10 2019-01-04 北京交通大学 The detection system and method for industrial equipment operation conditions
CN208506549U (en) * 2018-06-28 2019-02-15 上海电器科学研究所(集团)有限公司 Novel maintenance system based on cloud platform

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107479366B (en) * 2017-08-28 2021-03-19 李泽轩 Method and system for autonomous control of dynamic analytic mapping
CN108134698B (en) * 2017-12-21 2020-06-16 冶金自动化研究设计院 Graphical configuration platform of industrial multi-protocol internet of things gateway

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101882108A (en) * 2010-06-30 2010-11-10 三一重机有限公司 Embedded software automatic test system and method thereof
CN102857411A (en) * 2011-06-27 2013-01-02 Ls产电株式会社 Communication method of gateway device supporting mutual communication of CAN and Modbus and gateway device using the same
CN202385128U (en) * 2012-01-06 2012-08-15 珠海格力电器股份有限公司 Gateway and communication network
CN103200078A (en) * 2012-01-06 2013-07-10 珠海格力电器股份有限公司 Gateway, communication network and data processing method
CN104932472A (en) * 2015-06-10 2015-09-23 西南大学 Network online reconfigurable industrial security monitoring system
CN108322356A (en) * 2017-01-18 2018-07-24 重庆邮电大学 A kind of industrial network gateway compatibility test method based on MQTT
CN207529198U (en) * 2017-09-08 2018-06-22 深圳市智物联网络有限公司 A kind of water utilities intelligent monitor system based on Internet of Things
CN108681288A (en) * 2018-06-28 2018-10-19 上海电器科学研究所(集团)有限公司 A kind of novel maintenance system based on cloud platform
CN208506549U (en) * 2018-06-28 2019-02-15 上海电器科学研究所(集团)有限公司 Novel maintenance system based on cloud platform
CN109040021A (en) * 2018-06-29 2018-12-18 中车大连电力牵引研发中心有限公司 Gateway and light rail information monitoring device
CN109150703A (en) * 2018-08-23 2019-01-04 北方工业大学 Intelligent cloud gateway for industrial Internet of things and communication method thereof
CN109144014A (en) * 2018-10-10 2019-01-04 北京交通大学 The detection system and method for industrial equipment operation conditions

Also Published As

Publication number Publication date
CN109981435A (en) 2019-07-05

Similar Documents

Publication Publication Date Title
CN109981435B (en) Gateway and communication system based on CAN-ModBus to MQTT
CN110083088B (en) Signal control conversion device and signal control conversion method
EP1198926B1 (en) Bridge for can to tcp/ip connection
CN108494817B (en) Data transmission method, related device and system
EP2618544B1 (en) Ethernet communication system and method based on mmc/sd interface
CN1230756C (en) Network controller for processing status queries
CN111294235A (en) Data processing method, device, gateway and readable storage medium
US9438537B2 (en) Method for cut through forwarding data packets between electronic communication devices
CN106992983A (en) A kind of Internet of things system and its protocol converter, method for converting protocol
CN113660191A (en) Communication method for bridging MIL-STD-1553 and GJB1188B protocols through FC-AE-1553 protocol
CN116991121A (en) EPA scheduling method and device compatible with multiple protocols
US9438519B2 (en) Bypass-RTA
CN113196710A (en) Distribution node, automation network and method for transmitting messages
Nieves et al. A UPnP service to control and manage IEEE 1451 transducers in control networks
CN115442177B (en) Data communication method and device of CAN (controller area network)
US9088610B2 (en) Method and apparatus for communications accelerator on CIP motion networks
Ramakrishnan 16-bit embedded Web server
CN112671758B (en) Protocol conversion device, method, equipment and medium for Autbus bus and Modbus
An et al. Analysis of CAN FD to CAN message routing method for CAN FD and CAN gateway
CN111130968A (en) Method and terminal for solving Modbus bus communication packet sticking
CN114095546B (en) Message monitoring method and device based on MQTT protocol
Meroth et al. CAN Bus
WO2023096412A1 (en) Pairing method for sensor and gateway
Meroth et al. Asynchronous Serial Interfaces
JP2000151739A (en) Information processor, distributed processor and network system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant