An industrial canbus protocol conversion gateway
By using the industrial CANbus protocol conversion gateway for signal-level parsing and timestamp synchronization, the rigid data mapping and timing synchronization problems in existing equipment are solved, enabling efficient fault diagnosis and wireless configuration, and meeting the real-time and flexibility requirements of industrial control systems.
Patent Information
- Application Number
- CN202522411790.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-13
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2035-11-13
AI Technical Summary
Existing CAN-MODBUS conversion devices suffer from rigid data mapping mechanisms, timing synchronization issues, lack of error diagnosis functions, complex configurations, insufficient real-time performance, and missing wireless functions, failing to meet the real-time and flexibility requirements of industrial control systems.
It adopts an industrial CANbus protocol conversion gateway, which includes a CAN bus communication module, a protocol conversion engine, a multi-mode communication interface module and a main control chip, to realize signal-level parsing, timestamp synchronization, bus fault diagnosis and Web server functions, and supports flexible mapping, real-time monitoring and wireless configuration.
It achieves flexible and precise mapping between CAN signals and Modbus registers, improving the accuracy of the control system and the efficiency of fault diagnosis, supporting convenient configuration and wireless deployment, and meeting the stringent requirements of industrial real-time control.
Smart Images

Figure CN225020531U_ABST
Abstract
Description
Technical Field
[0001] This utility model relates to the field of industrial communication technology, and in particular to an industrial CANbus protocol conversion gateway. Background Technology
[0002] In modern industrial automation systems, the CANBUS protocol is widely used in automotive electronics, engineering machinery, and rail transportation, while the Modbus protocol is the most commonly used communication protocol in industrial control systems. Currently, CAN-MODBUS conversion devices on the market suffer from the following main problems: 1. Rigid data mapping mechanism: Existing converters typically use simple address mapping, which cannot handle situations where multiple signals in a CAN data frame reuse a single ID; 2. Timing synchronization issues: The CAN bus uses an event-triggered mechanism, while Modbus uses a polling mechanism, leading to data timing errors. When multiple CAN signals change simultaneously, traditional converters cannot guarantee the synchronization of these signals at the Modbus end, affecting the accuracy of the control system; 3. Lack of error diagnosis functions: CAN... The bus is susceptible to electromagnetic interference in industrial environments. When a bus error occurs, existing converters cannot provide detailed error type and location information, increasing the difficulty of troubleshooting. 4. Complex configuration: Existing devices often require dedicated software configuration, and on-site debugging necessitates carrying a laptop, increasing the difficulty of engineering implementation, especially in mobile devices or space-constrained scenarios. 5. Insufficient real-time performance: Schemes that use intermediate devices for protocol conversion typically have a conversion delay greater than 20ms, which cannot meet real-time control requirements, especially for engineering machinery control systems that require rapid response. 6. Lack of wireless functionality: Existing converters lack wireless connectivity, and on-site configuration and monitoring must be performed via wired connections, limiting the deployment flexibility of the equipment. In light of the above, this application proposes an industrial CANbus protocol conversion gateway. Utility Model Content
[0003] The purpose of this invention is to address the shortcomings of existing technologies by proposing an industrial CANbus protocol conversion gateway.
[0004] To achieve the above objectives, the present invention adopts the following technical solution:
[0005] An industrial CANbus protocol conversion gateway includes a housing and a PCB board disposed within the housing. The PCB board is electrically connected to a CAN bus communication module, a protocol conversion engine, a multi-mode communication interface module, a main control chip, and a power management module.
[0006] The CAN bus communication module is used to connect to CAN network devices and receive CAN frame data.
[0007] The protocol conversion engine is connected to the CAN bus communication module and is used to bidirectionally convert CANBUS protocol data and Modbus-RTU / TCP protocol data.
[0008] The multimode communication interface module includes an RJ45 Ethernet interface, an RS485 interface, and a WIFI module;
[0009] The main control chip is used to coordinate the operation of each module and store protocol mapping rules.
[0010] Preferably, the CAN bus communication module includes a dual-channel CAN controller, an electrical isolation circuit, and a bus fault diagnosis module. The dual-channel CAN controller supports the CAN2.0A / B protocol, and the communication rate can be configured from 50Kbps to 1Mbps. The isolation voltage of the electrical isolation circuit is ≥2500Vrms, which is used to suppress industrial field interference. The bus fault diagnosis module is used to monitor the bus short circuit, open circuit, and overload status in real time.
[0011] Preferably, the protocol conversion engine has a built-in dynamic mapping table of CAN ID and Modbus address and a data frame intelligent reassembly mechanism, and supports CAN signal value calibration and unit conversion. The dynamic mapping table of CAN ID and Modbus address supports many-to-one and one-to-many mapping relationships. The data frame intelligent reassembly mechanism is used to intelligently split / merge the 8-byte payload of the CAN data frame into a Modbus register.
[0012] The conversion delay is ≤5ms, which meets the requirements of industrial real-time control. Automatic conversion between engineering quantities and raw data is achieved through CAN signal value calibration and unit conversion.
[0013] Preferably, the WIFI module uses the ESP8266EX chip, supports the 2.4GHz frequency band, 802.11b / g / n protocol, has a maximum transmission rate of 150Mbps, an external SMA antenna interface, supports external high-gain antennas, has an effective communication distance of up to 100 meters, supports three working modes: STA / AP / STA+AP, which facilitates on-site configuration and remote monitoring, and has a built-in web server, which can directly configure device parameters through a mobile browser.
[0014] Preferably, the housing includes an upper shell and a lower shell installed at the bottom of the upper shell. The PCB board is located inside the upper and lower shells and fixed by an EMI shield. Both the upper and lower shells are made of engineering plastic with an IP65 protection rating and dimensions of 95×65×22mm. The CAN bus communication module is equipped with a CAN interface. The CAN interface, RS485 interface, and WIFI antenna interface are all exposed on the side of the housing. The power management module is equipped with a power interface located on the side of the housing.
[0015] Preferably, the main control chip integrates a 10 / 100M Ethernet MAC, supports the IEEE 1588PTPv2 precision time protocol, has a built-in CAN controller, supports simultaneous operation of dual CAN channels, supports the FreeRTOS real-time operating system to ensure the real-time performance and reliability of multi-task processing, and has built-in 64KB SRAM and 256KB Flash memory.
[0016] Preferably, the power management module supports a wide voltage input of 12V DC.
[0017] Compared with existing technologies, the beneficial effects of this utility model are:
[0018] 1. By using signal-level analysis technology, each signal in the CAN data frame is processed independently to achieve flexible mapping relationships;
[0019] 2. A timestamp synchronization mechanism is adopted to add the same timestamp to all signals from the same CAN frame, ensuring that these signals maintain time consistency at the Modbus end and improving the accuracy of the control system;
[0020] 3. The CAN bus error diagnosis function is realized through the bus fault diagnosis module, which can distinguish the error type and report it in real time through the WIFI interface, greatly shortening the fault diagnosis time.
[0021] 4. With the built-in web server function, field engineers can complete equipment configuration with just their mobile phones without the need for dedicated software, thus improving the efficiency of project implementation;
[0022] 5. The WIFI function supports the deployment of devices in locations where it is difficult to lay wired networks, while maintaining remote monitoring capabilities, making it particularly suitable for mobile devices and temporary working condition monitoring scenarios;
[0023] 6. During protocol conversion, the conversion delay is ≤5ms, meeting the needs of industrial real-time control, and priority settings are supported to ensure that critical data is transmitted first;
[0024] This invention achieves flexible and precise mapping between CAN signals and Modbus registers through signal-level analysis and timestamp synchronization mechanisms, ensuring the timing consistency of multi-signal data and significantly improving control accuracy. Its built-in bus fault diagnosis function can identify and report error types in real time, greatly shortening troubleshooting time. At the same time, the integrated web server supports convenient configuration via mobile phone, greatly improving engineering efficiency. The WiFi wireless function breaks through the limitations of wired deployment and is particularly suitable for mobile devices and remote monitoring scenarios. In addition, the gateway has a low conversion latency of ≤5ms and supports data priority transmission, fully meeting the stringent requirements of industrial real-time control. Attached Figure Description
[0025] Figure 1 This is an exploded view of an industrial CANbus protocol conversion gateway proposed in this utility model;
[0026] Figure 2 This is a system block diagram of an industrial CANbus protocol conversion gateway proposed in this utility model.
[0027] In the diagram: 1. Lower shell; 2. Upper shell; 3. Main control chip; 4. PCB board; 5. Multimode communication interface module; 6. Power management module; 7. CAN bus communication module; 8. Protocol conversion engine. Detailed Implementation
[0028] The technical solutions of the present utility model will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present utility model. Obviously, the described embodiments are only some embodiments of the present utility model, and not all embodiments.
[0029] Reference Figure 1-2 An industrial CANbus protocol conversion gateway includes a housing and a PCB board 4 disposed within the housing. The housing includes an upper shell 2 and a lower shell 1 mounted at the bottom of the upper shell 2. The PCB board 4 is located inside the upper shell 2 and the lower shell 1 and is fixed by an EMI shield. The upper shell 2 and the lower shell 1 are both made of engineering plastic with an IP65 protection rating and dimensions of 95×65×22mm. The PCB board 4 is electrically connected to a CAN bus communication module 7, a protocol conversion engine 8, a multi-mode communication interface module 5, a main control chip 3, and a power management module 6. The power management module 6 supports a 12V DC wide voltage input.
[0030] PCB board 4 adopts a four-layer board design, including signal layer, power layer, ground layer and signal layer, to ensure signal integrity. The main control chip 3 area is equipped with heat dissipation via array to ensure stable operation for a long time.
[0031] The CAN bus communication module 7 is used to connect to CAN network devices and receive CAN frame data. The CAN bus communication module 7 is equipped with a CAN interface. The CAN interface, RS485 interface and WIFI antenna interface are all exposed on the side of the housing. The power management module 6 is equipped with a power interface, which is located on the side of the housing.
[0032] The CAN bus communication module 7 includes a dual-channel CAN controller, an electrical isolation circuit, and a bus fault diagnosis module. The dual-channel CAN controller supports the CAN2.0A / B protocol and can process two independent CAN networks simultaneously. The communication rate can be configured from 50Kbps to 1Mbps. The isolation voltage of the electrical isolation circuit is ≥2500Vrms, which is used to suppress industrial field interference. The bus fault diagnosis module is used to monitor the bus short circuit, open circuit, and overload status in real time. The electrical isolation circuit adopts magnetic coupling isolation technology with an isolation voltage ≥2500Vrms, effectively suppressing industrial field interference. The CAN bus communication module 7 has a built-in bus error counter that monitors the TEC / REC value in real time and provides detailed error diagnosis information.
[0033] The protocol conversion engine 8 is connected to the CAN bus communication module 7 and is used to perform bidirectional conversion between CANBUS protocol data and Modbus-RTU / TCP protocol data.
[0034] The protocol conversion engine 8 has a built-in dynamic mapping table for CAN ID and Modbus address and a data frame intelligent reassembly mechanism. It also supports CAN signal value calibration and unit conversion. The dynamic mapping table for CAN ID and Modbus address supports many-to-one and one-to-many mapping relationships. The data frame intelligent reassembly mechanism is used to intelligently split / merge the 8-byte payload of the CAN data frame into the Modbus register. It adopts "signal-level" parsing technology to split the CAN data frame into independent signals for processing, rather than simple frame-level conversion. At the same time, it can implement a timestamp synchronization mechanism to ensure that multiple signals from the same CAN frame maintain time consistency at the Modbus end. It supports data compression algorithms to optimize transmission efficiency in bandwidth-constrained scenarios.
[0035] The conversion delay is ≤5ms, which meets the requirements of industrial real-time control. Automatic conversion between engineering quantities and raw data is achieved through CAN signal value calibration and unit conversion.
[0036] The multi-mode communication interface module 5 includes an RJ45 Ethernet interface, an RS485 interface, and a WIFI module. The RJ45 Ethernet interface is a 10 / 100M adaptive RJ45 interface, supports the Modbus-TCP protocol, and can connect 16 clients simultaneously. The RS485 interface supports Modbus-RTU master / slave mode, with a communication rate adjustable from 300bps to 115200bps and 1500V electrical isolation. The WIFI module uses an ESP8266EX chip, supports the 2.4GHz band, 802.11b / g / n protocol, and has a maximum transmission rate of 150Mbps. It has an external SMA antenna interface, supports external high-gain antennas, and has an effective communication distance of up to 100 meters. It supports three working modes: STA / AP / STA+AP, which facilitates on-site configuration and remote monitoring. It also has a built-in web server, which can be used to directly configure device parameters through a mobile browser.
[0037] The main control chip 3 is used to coordinate the operation of each module and store the protocol mapping rules. The main control chip 3 integrates a 10 / 100M Ethernet MAC, supports the IEEE 1588PTPv2 precise time protocol, has a built-in CAN controller, supports the simultaneous operation of dual CAN channels, supports the FreeRTOS real-time operating system, ensures the real-time performance and reliability of multi-task processing, and has built-in 64KB SRAM and 256KB Flash memory.
[0038] The main control chip 3 also has a built-in data caching mechanism, a security authentication module and an adaptive baud rate module. The data caching mechanism caches at least 12 hours of industrial data when the network is interrupted. The security authentication module supports WPA2-PSK encryption to prevent unauthorized access. The adaptive baud rate function can automatically identify and match the communication rate of the connected Modbus device.
[0039] This invention achieves flexible and precise mapping between CAN signals and Modbus registers through signal-level analysis and timestamp synchronization mechanisms, ensuring the timing consistency of multi-signal data and significantly improving control accuracy. Its built-in bus fault diagnosis function can identify and report error types in real time, greatly shortening troubleshooting time. At the same time, the integrated web server supports convenient configuration via mobile phone, greatly improving engineering efficiency. The WiFi wireless function breaks through the limitations of wired deployment and is particularly suitable for mobile devices and remote monitoring scenarios. In addition, the gateway has a low conversion latency of ≤5ms and supports data priority transmission, fully meeting the stringent requirements of industrial real-time control.
[0040] Working principle: The device coordinates the operation of the entire system through its main control chip 3. First, it receives data frames conforming to the CAN 2.0A / B standard from the CAN bus interface. Then, the protocol conversion engine adopts an innovative "signal-level" parsing technology. Based on the preset mapping rules or standard DBC file, it intelligently splits the 8-byte payload in a CAN data frame into multiple independent physical signals (such as temperature, pressure, speed, etc.). It also performs engineering value conversion, data filtering, and adds a unified timestamp to each signal, which fundamentally solves the problem of rigid mapping and timing disorder when multiple signals reuse a CAN identifier (ID).
[0041] The processed signal is flexibly mapped to the corresponding Modbus register according to the configuration. The converted Modbus data can be transmitted through the RJ45 Ethernet interface, RS485 interface and WIFI module of the multi-mode communication interface module, realizing the integration of wired and wireless transmission. In addition, the gateway also has the ability to reverse conversion, which can convert the control commands on the Modbus end into CAN frames and send them to the CAN network device.
[0042] In addition, to enhance usability and intelligence, the built-in web server supports convenient remote parameter configuration, real-time status monitoring, and firmware OTA upgrades via mobile phone connection to its WiFi hotspot (AP mode) or access to an existing network (STA mode). Its built-in bus diagnostic function continuously monitors the CAN bus status, such as short circuits, open circuits, and various protocol errors, and reports them through the network interface, greatly facilitating on-site debugging and maintenance. At the same time, through wide voltage power input, electrical isolation, data caching mechanisms, and secure encrypted communication functions, its reliability, real-time performance, and security are ensured in complex industrial environments, ultimately meeting the urgent needs of automotive manufacturing, construction machinery, rail transportation, and other fields for equipment interconnection and intelligent management.
[0043] The above description is only a preferred embodiment of the present utility model, but the protection scope of the present utility model is not limited thereto. Any equivalent substitutions or changes made by those skilled in the art within the technical scope disclosed in the present utility model, based on the technical solution and the inventive concept of the present utility model, should be included within the protection scope of the present utility model.
Claims
1. An industrial CANbus protocol conversion gateway, characterized in that, Includes a housing and a PCB board (4) disposed inside the housing. The PCB board (4) is electrically connected to a CAN bus communication module (7), a protocol conversion engine (8), a multi-mode communication interface module (5), a main control chip (3), and a power management module (6). The CAN bus communication module (7) is used to connect to CAN network devices and receive CAN frame data; The protocol conversion engine (8) is connected to the CAN bus communication module (7) and is used to perform bidirectional conversion between CANBUS protocol data and Modbus-RTU / TCP protocol data; The multimode communication interface module (5) includes an RJ45 Ethernet interface, an RS485 interface, and a WIFI module; The main control chip (3) is used to coordinate the operation of each module and store the protocol mapping rules.
2. The industrial CANbus protocol conversion gateway according to claim 1, characterized in that, The CAN bus communication module (7) includes a dual-channel CAN controller, an electrical isolation circuit, and a bus fault diagnosis module. The dual-channel CAN controller supports the CAN2.0A / B protocol and the communication rate can be configured from 50Kbps to 1Mbps. The isolation voltage of the electrical isolation circuit is ≥2500Vrms, which is used to suppress industrial field interference. The bus fault diagnosis module is used to monitor the bus short circuit, open circuit, and overload status in real time.
3. The industrial CANbus protocol conversion gateway according to claim 1, characterized in that, The protocol conversion engine (8) has a built-in dynamic mapping table of CAN ID and Modbus address and a data frame intelligent reassembly mechanism. It also supports CAN signal value calibration and unit conversion. The dynamic mapping table of CAN ID and Modbus address supports many-to-one and one-to-many mapping relationships. The data frame intelligent reassembly mechanism is used to intelligently split / merge the 8-byte payload of the CAN data frame into a Modbus register.
4. The industrial CANbus protocol conversion gateway according to claim 1, characterized in that, The WIFI module uses the ESP8266EX chip, supports the 2.4GHz frequency band, 802.11b / g / n protocol, has a maximum transmission rate of 150Mbps, an external SMA antenna interface, supports external high-gain antennas, has an effective communication distance of up to 100 meters, supports three working modes: STA / AP / STA+AP, and has a built-in web server.
5. An industrial CANbus protocol conversion gateway according to claim 1, characterized in that, The housing includes an upper shell (2) and a lower shell (1) installed at the bottom of the upper shell (2). The PCB board (4) is located inside the upper shell (2) and the lower shell (1) and is fixed by an EMI shield. The upper shell (2) and the lower shell (1) are both made of engineering plastic. The CAN bus communication module (7) is provided with a CAN interface. The CAN interface, RS485 interface and WIFI antenna interface are all exposed on the side of the housing. The power management module is provided with a power interface, which is located on the side of the housing.
6. An industrial CANbus protocol conversion gateway according to claim 1, characterized in that, The main control chip (3) integrates a 10 / 100M Ethernet MAC, supports the IEEE 1588PTPv2 precise time protocol, has a built-in CAN controller, supports dual CAN channels working simultaneously, supports the FreeRTOS real-time operating system, and has a built-in 64KB SRAM and 256KB Flash memory.
7. An industrial CANbus protocol conversion gateway according to claim 1, characterized in that, The power management module (6) supports a wide voltage input of 12V DC.
