Remote module extended communication method and system for sensor real-time bus
By separating the i-Link protocol and RS485 transceiver design, and combining FPGA or ASIC chip ID recognition and ring redundancy topology, the incompatibility and slow communication speed of industrial Ethernet remote module expansion technology are solved, achieving efficient and reliable communication and rapid networking.
Patent Information
- Application Number
- CN202611586822.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-14
- Publication Date
- 2026-11-27
AI Technical Summary
Existing industrial Ethernet remote module expansion technologies suffer from incompatibility, slow communication speed, weak anti-interference capabilities, single point of failure in serial links, and incompatibility between multiple industrial Ethernet protocols, resulting in high maintenance difficulty, high cost, and inability to meet the requirements of high real-time closed-loop control.
Employing the i-Link protocol, it achieves complete separation of the physical links for sending and receiving through a transmit-receive separation communication architecture, simple protocol logic, and ring redundancy topology. It also supports multi-protocol coupling and bidirectional ring communication by using an RS485 transceiver and a globally unique ID identification code built into the FPGA or ASIC chip, and is compatible with mainstream industrial Ethernet protocols.
It enables universal interchangeability of modules from different manufacturers, reduces maintenance costs and time, improves communication performance and reliability, supports rapid networking of cross-vendor devices, and meets the requirements of high real-time closed-loop control.
Smart Images

Figure CN123185014A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of industrial fieldbus communication technology, and in particular to a remote module extension communication method and system for a sensor real-time bus. Background Technology
[0002] With the rapid development of control, computer, communication, and network technologies, Ethernet technology has been widely applied in various fields. Industrial Ethernet protocols such as EtherCAT, EtherNET / IP, Profinet, Modbus TCP / IP, and CC-LINK have become the mainstream technologies for fieldbuses. Due to the widespread application of industrial Ethernet in industrial control equipment, industrial Ethernet slave remote modules have been extensively used. To save Ethernet resources and reduce the cost of remote modules, many remote module suppliers have adopted remote module expansion technology to expand slave stations and achieve more I / O and analog input / output capabilities.
[0003] However, each manufacturer's remote module expansion technology is independently developed, employing different hardware circuits, software protocols, and physical connectors. This results in inconsistent communication functionality, performance, and reliability, and each manufacturer's technology remains confidential. Consequently, expansion modules from different suppliers are incompatible, leading to field module malfunctions, product discontinuation by manufacturers, and the inability to find replacements, thus impacting field equipment maintenance efficiency. Furthermore, currently available real-time sensor buses such as Siemens' IO-LINK, Rockwell's Guidlink, and Mitsubishi's Anywire generally suffer from slow communication speeds, difficult wiring, and inflexible wiring. IO-LINK, in particular, uses a one-to-many communication method, limiting communication speed improvements and failing to meet the demands of high-real-time closed-loop control.
[0004] To address the aforementioned issues, there is an urgent need to propose a remote module extension communication method and system based on the i-Link protocol to achieve the universality, high speed, and high reliability of remote extension modules. Summary of the Invention
[0005] The purpose of this invention is to overcome the shortcomings of the prior art and provide a remote module extension communication method and system for a sensor real-time bus. It utilizes the i-Link remote module extension communication protocol, builds a hardware platform using general-purpose components, and solves the technical problems of incompatibility between existing remote extension modules, slow communication speed, weak anti-interference ability, single point of failure of serial links, and incompatibility between multiple industrial Ethernet protocols through a communication architecture with separate transmit and receive, simple protocol logic, multi-protocol coupling technology, and ring redundancy topology. This achieves the goals of reducing costs, simplifying communication structure, and improving communication performance and reliability.
[0006] To achieve the above objectives, the technical solution of the present invention is as follows: In a first aspect, the present invention provides a remote module extension communication system for a sensor real-time bus, comprising a host computer, a main module and at least one sub-module, wherein the host computer and the main module are connected via an industrial Ethernet protocol, and the main module and the sub-module, and the sub-modules are connected via a point-to-point communication protocol via an i-Link protocol. The main module integrates an industrial Ethernet protocol interface and an i-Link protocol interface, and is compatible with at least one mainstream industrial Ethernet protocol and i-Link protocol, which is used to realize data forwarding between the host computer and the sub-module. The hardware layer of the submodule uses two independent RS485 transceivers, with the first RS485 transceiver serving as a data transmission driver and the second RS485 transceiver serving as a data receiver, thus achieving complete separation of the physical links for transmission and reception. The software layer of the submodule is configured with two independent serial port peripherals, which are connected one-to-one with the first RS485 transceiver and the second RS485 transceiver respectively. The two serial port peripherals independently control data transmission and data reception, so that the RS485 transceiver always works in a single state without the need to switch between transmission and reception states. The i-Link protocol defines four mutually exclusive communication states: scan sending protocol, scan receiving protocol, data communication sending protocol, and data communication receiving protocol. Each submodule has a built-in FPGA or ASIC chip, which pre-stores a globally unique ID identification code. The main module identifies the submodule type by reading the ID identification code and latches the module type information into the internal non-volatile memory after identification.
[0007] As a further aspect of the present invention, the RS485 transceiver uses the SN65HVD75DR chip, and the measured i-Link communication transmission distance between the main module and the sub-module, and between the sub-modules, can reach 200 meters, with no delay in data forwarding between modules.
[0008] As a further aspect of the present invention, the system also includes a coupling router, which has a built-in multi-protocol conversion unit that supports bidirectional data conversion between EtherCAT, EtherNET / IP, Profinet, Modbus TCP / IP, and CC-LINK protocols, enabling cross-protocol networking of devices with different industrial Ethernet protocols.
[0009] As a further embodiment of the present invention, the main module and multiple sub-modules form an I-LINK communication ring. The I-LINK communication ring adopts a bidirectional ring communication topology, and the main module simultaneously sends the same data in both clockwise and counterclockwise directions of the ring link. When the ring link is disconnected at any point, all sub-modules can still maintain normal communication with the main module through the unbroken reverse link.
[0010] As a further embodiment of the present invention, the hardware circuit of the sub-module further includes a power filtering unit, an ESD protection unit, and an RJ45 interface unit; the power filtering unit is connected to the power pins of the two RS485 transceivers respectively, the ESD protection unit is connected to the differential signal pins of the RS485 transceivers respectively, and the RJ45 interface unit is used to realize the physical connection between the sub-modules.
[0011] As a further aspect of the present invention, the main module is compatible with at least one of the mainstream industrial Ethernet protocols, including EtherCAT, EtherNET / IP, Profinet, Modbus TCP / IP, and CC-LINK.
[0012] As a further aspect of the present invention, the submodule utilizes the parallel processing characteristics of FPGA or ASIC chips to achieve simultaneous transmission and reception of multi-channel data without reducing communication efficiency.
[0013] Secondly, the present invention provides a remote module extension communication method for a sensor real-time bus, comprising the following steps: S1: The system is powered on and initialized. The main module enters the scanning and sending state and periodically sends scanning commands to all sub-modules through the i-Link protocol. S2: After receiving the scan command, the submodule enters the scan receiving state and returns the unique ID identification code of its built-in FPGA or ASIC chip to the main module. S3: The main module queries the pre-stored module type mapping table based on the received ID identification code, identifies the hardware type and functional parameters of each sub-module, and latches the identification results into the internal memory; S4: After the main module and all sub-modules have completed identification, the system enters the data communication state. The main module sends control commands and configuration parameters to the sub-modules through the first RS485 link, and the sub-modules return sensor data and device status information to the main module through the second RS485 link. S5: When the system adopts the I-LINK communication ring topology, the main module sends data to both directions of the ring link at the same time, and the sub-module listens to the signals in both directions at the same time; if the link in one direction is detected to be disconnected, the sub-module automatically switches to the link in the other direction for communication, and the main module adjusts the data sending strategy synchronously.
[0014] As a further aspect of the present invention, in step S3, after the main module latches the module type information, it will not repeat the module type identification process in subsequent communication processes, but will only re-execute the scanning and identification process when the system restarts or a new module is connected.
[0015] As a further aspect of the present invention, in step S4, data communication adopts a point-to-point transmission method, and the main module establishes a communication link independently with each sub-module. The communication status of a single sub-module does not affect the communication efficiency of other sub-modules.
[0016] Compared with the prior art, the remote module extension communication method and system for sensor real-time bus provided in this application have the following advantages: This invention reduces costs, simplifies communication structure, and enhances performance based on the characteristics of traditional communication protocols. It uses universal RS485 components to build the physical layer, and the protocol logic is implemented based on universal serial port peripherals, making it compatible with all IC platforms and enabling universal interchangeability of modules from different manufacturers. It solves the maintenance problems caused by existing proprietary protocols, significantly reducing maintenance costs and time. By adopting a separate physical link for transmitting and receiving and a dual independent serial port design, it avoids the overhead of RS485 transmit / receive state switching, increasing the communication rate by several orders of magnitude compared to IO-LINK, resulting in significantly improved communication performance. The main module is compatible with mainstream industrial Ethernet protocols and can be directly connected to existing industrial control systems, achieving interoperability between different industrial Ethernet protocols and supporting rapid networking of cross-vendor devices. Attached Figure Description
[0017] Figure 1 This invention provides a remote module extension communication method for a sensor real-time bus and a basic connection topology diagram of the I-LINK master-slave module in the system.
[0018] Figure 2 This invention provides a remote module extension communication method for a sensor real-time bus and a schematic diagram of the I-LINK communication hardware circuit of a sub-module in the system.
[0019] Figure 3 This invention provides a remote module extension communication method for a sensor real-time bus and a schematic diagram of the coupling and networking of multiple industrial Ethernet protocols in the system.
[0020] Figure 4 This is a schematic diagram of a remote module extension communication method for a sensor real-time bus and the I-LINK communication ring structure in the system provided by the present invention. Detailed Implementation
[0021] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs; the terminology used herein in the specification of the application is for the purpose of describing particular embodiments only and is not intended to limit the application; the terms "comprising" and "having," and any variations thereof, in the specification, claims, and foregoing drawings of this application are intended to cover non-exclusive inclusion. The terms "first," "second," etc., in the specification, claims, or foregoing drawings of this application are used to distinguish different objects, not to describe a particular order.
[0022] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0023] Currently, due to the fragmented nature of module expansion technologies among manufacturers and the lack of publicly available software and hardware technical descriptions, modules are not interchangeable. This leads to difficulties in quickly finding replacements after product failures or discontinuation, sometimes requiring the replacement of all modules, resulting in high maintenance difficulty, cost, and time consumption. This invention provides a remote module expansion communication method and system for a sensor real-time bus. Utilizing the i-Link remote module expansion communication protocol and building a hardware platform with general-purpose components, it addresses the technical problems of incompatibility, slow communication speed, weak anti-interference capability, single point of failure in serial links, and incompatibility between multiple industrial Ethernet protocols in existing remote expansion modules through a transmit / receive separation communication architecture, simplified protocol logic, multi-protocol coupling technology, and ring redundancy topology. This achieves the goals of reducing costs, simplifying communication structure, and improving communication performance and reliability.
[0024] This invention reduces costs, simplifies communication structures, and enhances performance while retaining the characteristics of traditional communication protocols. Simplifying the complex structure of communication protocols makes communication easier to understand, resulting in user-friendly and convenient operation. Instead of using expensive pre-built physical layer components, it utilizes a small number of common, cost-effective components to construct the physical layer that meets the protocol requirements, reducing material costs and achieving high product quality at a low cost. Furthermore, in line with the development timeline, it achieves advantages such as high speed, strong anti-interference capabilities, and high reliability.
[0025] This invention provides a remote module extension communication system for a sensor real-time bus, comprising a host computer, a main module, and at least one sub-module. The host computer and the main module are connected via an industrial Ethernet protocol, and the main module and sub-modules, as well as sub-modules themselves, are connected point-to-point via the i-Link protocol. The main module integrates an industrial Ethernet protocol interface and an i-Link protocol interface, and is compatible with at least one mainstream industrial Ethernet protocol and the i-Link protocol, used for data forwarding between the host computer and the sub-modules. The hardware layer of the sub-module uses two independent RS485 transceivers, where the first RS485 transceiver acts as a data transmission driver and the second RS485 transceiver acts as a data receiver, achieving complete separation of the physical transmission and reception links. The software layer of the sub-module is configured with two independent serial port peripherals, connected one-to-one with the first and second RS485 transceivers respectively. The two serial port peripherals independently control data transmission and data reception, ensuring that the RS485 transceivers always operate in a single state without the need for transmission / reception state switching.
[0026] Conventional RS485 chips are configured with a DE driver enable pin and an RE receiver enable pin. When DE is high, the chip is in transmit drive mode, and when RE is low, the chip is in receive listener mode. In existing traditional half-duplex applications, the DE and RE pins are generally shorted to share a single control signal, relying on the master control level to switch the transmit and receive modes in a time-division multiplexing manner. This invention abandons the traditional pin shorting and multiplexing scheme and configures the two pins with independent hardware level latching: one RS485 transmit chip has its DE pin permanently pulled high and its RE pin permanently pulled low, so that the chip is always locked in the single data transmit working state; the other matching receive chip has its DE pin permanently pulled low and its RE pin permanently pulled high, so that the chip is always locked in the single data receive working state. This achieves a permanent fixed hardware state for the transceiver devices, eliminating the need for software switching of working modes.
[0027] RS485 bus transceivers feature high sensitivity, capable of detecting voltages as low as 200mV, thus enabling long-distance signal transmission. They are also compatible with TTL levels, minimizing the risk of damaging the interface circuit chip and facilitating connection to TTL circuits. Furthermore, they allow multiple transmitters to connect to the same bus, eliminating the need for numerous signal lines and simplifying the wiring. RS485 bus transceivers reduce material costs: RS485 is a commonly used transceiver component, significantly cheaper than most PHY components. RS485 bus transceivers enhance performance: RS-485 offers a maximum data transmission rate of 10Mbps, providing a high speed. The interface utilizes a combination of balanced drivers and differential receivers, enhancing common-mode interference immunity and providing good noise immunity.
[0028] In this invention, the RS485 transceiver uses the SN65HVD75DR chip. The measured i-Link communication transmission distance between the main module and the sub-module, and between the sub-modules, can reach 200 meters, and there is no delay in data forwarding between modules.
[0029] In this invention, the i-Link protocol defines four mutually exclusive communication states: scan sending protocol, scan receiving protocol, data communication sending protocol, and data communication receiving protocol. Each submodule has a built-in FPGA or ASIC chip, which pre-stores a globally unique ID identification code. The main module identifies the submodule type by reading the ID identification code and latches the module type information into the internal non-volatile memory after identification.
[0030] The system of this invention also includes a coupling router, which has a built-in multi-protocol conversion unit supporting bidirectional data conversion between EtherCAT, EtherNET / IP, Profinet, Modbus TCP / IP, and CC-LINK protocols, enabling cross-protocol networking of devices using different industrial Ethernet protocols. In this invention, the main module and multiple sub-modules form an I-LINK communication ring. The I-LINK communication ring adopts a bidirectional ring communication topology, with the main module simultaneously sending the same data in both clockwise and counterclockwise directions of the ring link. When the ring link is broken at any point, all sub-modules can still maintain normal communication with the main module through the unbroken reverse link.
[0031] The main module is compatible with at least one of the mainstream industrial Ethernet protocols, including EtherCAT, EtherNET / IP, Profinet, Modbus TCP / IP, and CC-LINK.
[0032] In this invention, the hardware circuit of the submodule further includes a power supply filtering unit, an ESD protection unit, and an RJ45 interface unit. The power supply filtering unit is connected to the power supply pins of two RS485 transceivers, the ESD protection unit is connected to the differential signal pins of the RS485 transceivers, and the RJ45 interface unit is used to realize the physical connection between the submodules. The submodule utilizes the parallel processing characteristics of FPGA or ASIC chips to achieve simultaneous transmission and reception of multi-channel data without reducing communication efficiency.
[0033] This invention also provides a remote module extension communication method for a sensor real-time bus, comprising the following steps: S1: The system is powered on and initialized. The main module enters the scanning and sending state and periodically sends scanning commands to all sub-modules through the i-Link protocol.
[0034] S2: After receiving the scan command, the submodule enters the scan receiving state and returns the unique ID identification code of its built-in FPGA or ASIC chip to the main module.
[0035] S3: The main module queries the pre-stored module type mapping table based on the received ID identification code, identifies the hardware type and functional parameters of each sub-module, and latches the identification results into the internal memory. After the main module latches the module type information, it will not repeat the module type identification in subsequent communication processes, but will only re-execute the scanning and identification process when the system restarts or a new module is connected.
[0036] S4: After the main module completes identification with all sub-modules, the system enters the data communication state. The main module sends control commands and configuration parameters to the sub-modules through the first RS485 link, and the sub-modules return sensor-collected data and device status information to the main module through the second RS485 link. The data communication adopts a point-to-point transmission method, and the main module establishes a communication link independently with each sub-module. The communication status of a single sub-module does not affect the communication efficiency of other sub-modules.
[0037] S5: When the system adopts the I-LINK communication ring topology, the main module sends data to both directions of the ring link at the same time, and the sub-module listens to the signals in both directions at the same time; if the link in one direction is detected to be disconnected, the sub-module automatically switches to the link in the other direction for communication, and the main module adjusts the data sending strategy synchronously.
[0038] This invention reduces costs, simplifies communication structure, and enhances performance based on the characteristics of traditional communication protocols. It uses universal RS485 components to build the physical layer, and the protocol logic is implemented based on universal serial port peripherals, making it compatible with all IC platforms and enabling universal interchangeability of modules from different manufacturers. It solves the maintenance problems caused by existing proprietary protocols, significantly reducing maintenance costs and time. By adopting a separate physical link for transmitting and receiving and a dual independent serial port design, it avoids the overhead of RS485 transmit / receive state switching, increasing the communication rate by several orders of magnitude compared to IO-LINK, resulting in significantly improved communication performance. The main module is compatible with mainstream industrial Ethernet protocols and can be directly connected to existing industrial control systems, achieving interoperability between different industrial Ethernet protocols and supporting rapid networking of cross-vendor devices.
[0039] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0040] Example 1 like Figure 1 As shown, this embodiment provides a remote module expansion communication system for a sensor real-time bus, including a host computer, a main module, and multiple sub-modules. The host computer and the main module communicate via the EtherCAT protocol, and the main module and sub-modules, as well as the sub-modules themselves, are cascaded via the i-Link protocol.
[0041] The main module acts as a communication hub, integrating both EtherCAT and i-Link protocol interfaces. On one hand, it interacts with the host computer via the EtherCAT interface, receiving control commands and returning sensor data to the host computer. On the other hand, it cascades multiple sub-modules downwards via the i-Link interface, enabling centralized management and data acquisition from a large number of sensors. This design allows the system to seamlessly integrate with existing EtherCAT-based industrial control systems without requiring extensive modifications to the host computer, while significantly reducing the cost of remote expansion modules.
[0042] In the remote module extended communication system of this embodiment, the main module adopts a heterogeneous architecture with dual main controllers of ARM and FPGA. The EtherCAT protocol processing main controller is an STM32F407IGT6, replacing the dedicated EtherCAT slave ASIC. It has a built-in FMC parallel peripheral, a hardware ETH MAC, 192KB of on-chip SRAM, and 1MB of on-chip Flash. The chip has a built-in Ethernet MAC, connected to an external LAN8720A Ethernet PHY chip to form an EtherCAT hardware link, responsible for EtherCAT message parsing, PDO process data splitting, ESI device description file management, and enabling EtherCAT protocol transmission and reception for the host computer. The i-Link protocol processing main controller is an XC3S50AN FPGA dedicated to running the self-developed i-Link underlying protocol, completing submodule hardware ID identification, dual-channel RS485 transceiver timing control, and ring bus fault route switching. The ARM and FPGA are directly connected via a 16-bit FMC parallel bus, enabling bidirectional data interaction between EtherCAT and i-Link.
[0043] In this embodiment, the program cache is: W9825G6KH-6 SDRAM: externally connected to the ARM main controller, caching EtherCAT real-time process data and i-Link bus summary IO data; firmware storage is: W25Q64JV SPI Flash: 8MB capacity, storing EtherCAT slave ESI configuration files, ARM system firmware, and i-Link protocol parameter tables; FPGA configuration storage is: M25P16: embedding the FPGA bitstream program and i-Link protocol stack, automatically loading the FPGA logic upon power-up.
[0044] In this embodiment, the EtherCAT uplink is as follows: the host computer's EtherCAT Ethernet signal passes through the RJ45 port → LAN8720 PHY → STM32F407 ARM; the ARM strips the EtherCAT packet header and forwards the valid IO control data to the FPGA via a 16-bit parallel FMC bus. The i-Link downlink is as follows: the FPGA encapsulates the control commands issued by the ARM into i-Link custom frames, driving dual independent RS485 transceiver chips; following the previously described DE / RE pin fixing logic: one RS485 chip is hardware-locked with DE=high and RE=low for permanent transmission; the other chip is locked with DE=low and RE=high for permanent reception. The two transceiver links are physically isolated and connected to external sub-modules via onboard terminals on the i-Link bus. The uplink return link is as follows: data collected by the sub-module is sent to the FPGA via the i-Link receiving channel. The FPGA aggregates all the data from the entire link, packages it into EtherCAT standard PDO data, and sends it back to the ARM. The ARM reassembles the EtherCAT message and uploads it to the host computer via the Ethernet PHY.
[0045] like Figure 2 As shown, the core of the hardware layer of each submodule consists of two SN65HVD75DRRS485 transceivers (U18 and U19). U18 acts as a dedicated data transmission driver, with its DI pin connected to the transmitting end of the first serial port peripheral. Its DE and RE pins are shorted and controlled by the DIR pin of the first serial port peripheral, maintaining a constant transmitting state. U19 acts as a dedicated data receiver, with its RO pin connected to the receiving end of the second serial port peripheral. Its DE and RE pins are shorted and grounded, maintaining a constant receiving state. The differential signal pins of the two transceivers are connected to the corresponding pins of the RJ45 interface through an ESD protection unit (ES0603V014CT) and a ferrite bead (CBG160808U122), respectively, achieving complete separation of the physical transmission and reception links to prevent interference.
[0046] The submodule's power supply section uses 3.3V, and a filter circuit composed of resistors (R34, R55) and capacitors (C67, C80) provides a stable power supply to the RS485 transceiver. Termination resistors (R48, R57) are connected in series on the differential signal lines to match the bus impedance and reduce signal reflection.
[0047] See Figure 2As shown, the circuit in this embodiment uses two SN65HVD75DR chips, U18 and U19, which are independently configured as a permanent transmitter chip and a permanent receiver chip, respectively. These, along with the RJ45 interface J6, ferrite beads, resistors, capacitors, and ESD protection devices, form a differential bus physical layer with complete hardware isolation for transmission and reception, thus avoiding the switching losses of traditional RS485 half-duplex transmission and reception at the hardware level. The device configuration and connection relationship with the J6 (RJ45 FRJ45006) port are as follows: J6 is a standard RJ45 connector, used as an I-LINK... External connection terminals for the bus; J6 pins are defined as follows: Pin 1 (A+): Connects to the differential A bus of U18 (transmitter chip) via ferrite bead FB5; Pin 2 (B+): Connects to the differential B bus of U18 via ferrite bead FB6, forming the transmit differential bus 485A / 485B. Commands issued by the master module are output to the sub-module via U18→FB5 / FB6→J6; Pin 3 (C+) and Pin 4 (D+): Connect to the differential A / B pins of U19 (receiver chip) via ferrite beads FB7 and FB8, forming the receive differential bus B485A. / B485B, the submodule uploads data from J6→FB7 / FB8 to U19; pins 7 and 8, together with R55 (15K), R58 (15K), and C80 (100pF), form a pull-down balanced impedance circuit to stabilize the bus level and suppress bus floating interference when the differential bus is idle; pins S1 / S2 are connected to Earth1 to achieve grounding of the RJ45 shell shield, improving the field anti-static interference capability; FB9 and FB11 are matching common-mode ferrite beads, connected in series throughout the differential line to suppress cable common-mode interference. The CBG160808 series ferrite beads (FB5~FB11) are connected in series on the A / B differential signal lines to filter out high-frequency common-mode noise and suppress radio frequency interference introduced by industrial frequency converters and motors via cables.
[0048] See Figure 2 As shown, the pin wiring and functions of U18 (SN65HVD75DR: Fixed Permanent Transmitter Chip) are as follows: SN65HVD75DR pinout: VCC(8), RO(1), RE(2), DE(3), DI(4), A(6), B(7), GND(5); DE and RE key enable configuration: DE pin (3) is directly pulled up to 3.3V high level, and the chip driver is permanently enabled; RE pin (2) is also connected to 3.3V high level, and the receiver hardware is permanently disabled; Wiring conclusion: The U18 hardware is locked to transmit only and not receive, permanently operating in a single transmit mode, without requiring the main control software to switch pin levels.
[0049] The remaining pin connections are as follows: VCC(8) is connected to a 3.3V power supply, and GND(5) is grounded; DI(4): A485_TX, which is connected to the serial data pin of the main control FPGA. The serial data to be sent by the main control is sent from DI to the internal driver of the chip; A(6), B(7): 485A and 485B differential buses are led out and connected to pins 1 and 2 of RJ45 J6 through FB5 / FB6 and ESD5 bidirectional surge protector ESD0603V01CT; R34(10K), R35(1K), C67 / C68(100pF) form the bus pull-up and pull-down and RC filter to stabilize the differential static potential.
[0050] RO(1) Floating: The receiver is turned off by the hardware (\boldsymbol{\overline{RE}}\), and the receiver output pin is idle.
[0051] See Figure 2 As shown, the pin wiring and functions of U19 (SN65HVD75DR: Fixed Permanent Receiver Chip) are as follows: DE and RE are key enable configurations; RE pin (2) is directly grounded (0V low level), and the receiver is permanently turned on; DE pin (3) is directly grounded (0V low level), and the driver is permanently turned off; Wiring conclusion: U19 hardware locks to receive only and does not transmit, permanently receiving in a single working state, hardware fixed receiving mode, and no software changes to the control level are required throughout the process.
[0052] The remaining pin connections are as follows: VCC(8) is connected to 3.3V, GND(5) is grounded; RO(1): B485_RX, connected to the FPGA hardware receiving serial port, U19 parses the differential signal and converts it to TTL level, and uploads the bus data to the main controller through the RO pin; A(6), B(7): B485A / B485B differential bus, connected to pins 3 and 4 of RJ45 J6 through FB7 / FB8 and ESD6 surge protectors, to receive differential signals uploaded by external sub-modules; R49 / R57(10K), R54(1K), C79 / C81(100pF) are the resistor-capacitor bias and filter for the U19 bus; DI(4) floating: the driver hardware is off, and the transmitting input is idle.
[0053] The extended extraction signal is: detect_in: Bus online detection pin, the FPGA collects the bus level in real time to identify whether the external sub-module is connected online; SYNC_OUT: Synchronous clock output pin, shared by U18 and U19 synchronization pins, ensuring timing synchronization of the transmit and receive links and guaranteeing full-duplex parallel transmit and receive timing alignment.
[0054] In this embodiment, the electrical parameters of the SN65HVD75DR device are as follows: Operating voltage: 3.0V~5.5V wide voltage range, compatible with industrial 3.3V systems; Operating temperature: -40℃~+125℃, an ultra-wide industrial temperature range, meeting the requirements of harsh high and low temperature working conditions; ESD Protection: The bus A / B pins have built-in ±15kV human body model ESD protection, plus onboard ESD0603V01CT bidirectional TVS diode for secondary surge protection, resisting static electricity and surge impacts during field plugging and unplugging. Static power consumption: Static standby current <150μA, low power consumption suitable for remote module power supply scenarios.
[0055] Advantages of selection: General-purpose mass-produced industrial-grade RS485 devices, replacing IO-Link's dedicated custom PHY chips, with ample material supply and low procurement costs; built-in fault short-circuit protection, shorting the A / B bus will not burn out the chip, improving circuit reliability.
[0056] The complete workflow (end-to-end transmission and reception) of this embodiment is as follows: 1. The main module sends data (sending link: FPGA→U18→J6→submodule).
[0057] The FPGA independently sends a TTL data stream from the serial port → A485_TX is connected to the DI pin of U18; Because DE is always 3.3V and RE is always 3.3V, the driver of U18 is always on, converting the TTL signal into A / B differential level; The differential signal is filtered by R34 / R35 resistor and capacitor → FB5 / FB6 common mode ferrite bead → ESD5 surge protector → RJ45 J6 (pins 1 and 2), and then transmitted to the downstream sub-module receiving circuit via twisted pair I-LINK bus; The U18 was used for constant sending throughout the entire process, without any switching between sending and receiving states.
[0058] 2. Submodule transmits collected data back (receiving link: submodule → J6 → U19 → FPGA) The differential data uploaded by the submodule is sent to RJ45 J6 (pins 3 and 4) via twisted pair cable → FB7 / FB8 ferrite bead → ESD6 protection → U19 A / B pins; The U19's constant ground (\boldsymbol{\overline{RE}}\) enables reception, and constant ground (DE) disables transmission. The on-chip differential receiver restores the bus differential signal to TTL level. The restored TTL data is sent from the RO pin (B485_RX) of U19 to the FPGA's independent hardware receiver serial port to complete the uplink data acquisition; 3. Online detection and synchronization logic The detect_in pin acquires the U19 bus potential in real time. The level changes after the bus is connected to the submodule, and the FPGA identifies the device as online. The SYNC_OUT pin is bound to U18 / U19, and the transmit and receive clocks are from the same source, so as to realize the parallel synchronous operation of the transmit and receive links.
[0059] In this embodiment, the main control FPGA is configured with two independent hardware serial port peripherals: one serial port is bound to A485_TX to control U18 transmission, and the other serial port is bound to B485_RX to control U19 reception. Since the U18 / U19 hardware has a fixed single state for transmission and reception, the software does not need to toggle the DE / RE control level or switch the transmission and reception modes in a time-division multiplexing manner. The two serial ports can transmit and receive data in parallel at the same time, eliminating the timing overhead caused by the switching of traditional half-duplex RS485 and improving the communication efficiency of the I-LINK bus.
[0060] In this embodiment, all four types of i-LINK protocols share the same frame structure. The frame field has a fixed structure of 7 segments from beginning to end, and the single frame format is uniform as shown in Table 1. Table 1. Single-frame format table for all four i-LINK protocols sharing the same frame structure. The usage scenarios and definitions of the four communication protocols are as follows: (1) Scan sending protocol (function code 0x01, main module → all sub-modules, broadcast frame, all addresses are 0).
[0061] Use case: After the main module is powered on and initialized, and after the bus disconnection is restored, the entire link device searches for the main module and periodically broadcasts this protocol frame through the permanent transmission channel. There is no application data (data length = 0). The purpose is to wake up all online sub-modules on the bus and trigger the sub-modules to send back their own hardware parameters. It is only enabled during the initialization scan phase and is no longer broadcast during normal data communication cycles.
[0062] (2) Scan receiving protocol (function code 0x02, sub-module → main module, unicast frame, address is local hardware ID).
[0063] Use case: After a submodule receives a scan transmission frame, it reports its response. After the submodule detects the broadcast scan frame, it sends back this protocol through its own permanent transmission channel within the allocated time slot. The data segment carries a 4-byte hardware ID + a 2-byte model code + IO channel quantity parameter. After the main module receives the response, it stores the device information in the SRAM registry and completes the submodule registration. After registration, this protocol goes into hibernation and is only temporarily triggered when a new module is hot-swapped and put into service.
[0064] (3) Data communication transmission protocol (function code 0x03, main module → specified sub-module, point-to-point unicast).
[0065] Use case: During normal business cycles, the master station issues switch output and analog control commands, relying on the unique hardware ID of the submodule in the registry as the address segment, and issues control parameters point-to-point; the data segment stores the DO output level and DA setting value, which is a frequently used issuing protocol during the normal operation of the equipment.
[0066] (4) Data communication receiving protocol (function code 0x04, sub-module → main module, point-to-point unicast).
[0067] Use case: During normal business cycles, the submodule uploads raw data collected by the sensor. After receiving the 0x03 frame with the corresponding ID, the submodule collects local AI / DI point data, encapsulates it into this protocol for transmission, and the data segment is the real-time sensor sampling value, which is paired one-to-one with the 0x03 protocol. This is a normal upload protocol.
[0068] In this embodiment, the switching timing, transmission timing, and scanning timing of the four protocols are as follows: 1. Overall phase sequence division: The entire communication process is divided into an initialization scan timing segment, a periodic data communication timing segment, and an abnormal fault timing segment. The main module FPGA relies on hardware timers for time-division control. Initialize the scan timing (fixed duration 500ms). After power-on initialization, the first 500ms are dedicated to the scan cycle: the main module sends 1 frame of scan transmission protocol every 10ms (0x01); after receiving the broadcast, the sub-modules send back the scan reception protocol in random avoidance time slots from 1 to 8ms (0x02) to avoid conflicts when multiple sub-modules send data to the bus at the same time; the scan timing is turned off when the 500ms countdown ends and the system is permanently switched to the periodic data communication timing.
[0069] Periodic data communication timing (normal cycle, 1ms per cycle).
[0070] Downlink time slots (0~400μs): The main module sends data communication transmission protocol (0x03) one by one according to the registry order, and sends control commands point-to-point; Uplink time slot (401μs~950μs): After receiving the instruction, the corresponding submodule will send back the data communication receiving protocol (0x04) within 50μs and upload the collected data; Remaining 50μs idle time slot: Bus silent, used for the detect_in pin to monitor link disconnection and device hot-plugging.
[0071] Timing advantages: The transmitting and receiving hardware are physically separated, and the transmitting and receiving time slots can overlap in parallel, breaking through the waiting loss of traditional half-duplex time division. Even with 32 sub-modules mounted on a single link, a 1ms cycle is still maintained.
[0072] When a communication timeout / verification error occurs during abnormal switching timing, the normal cycle timing is skipped and a fault retry time slot is inserted (a short scan time slot is allocated every 1 second). A 0x01 scan frame is sent to the faulty node to retry registration. The other normal sub-modules continue to use the original 1ms communication timing and do not interfere with each other.
[0073] 2. Protocol state switching logic.
[0074] Scan Send (0x01) → Scan Receive (0x02): The master station sends a 0x01 broadcast frame as the trigger condition. The submodule passively responds with 0x02. After the device registration is completed in the entire link, the two scanning protocols are closed and the process switches to the data transmission and reception protocol. Scan reception (0x02) → Data communication transmission (0x03) + Data communication reception (0x04): After the main module registry is generated, the node is switched, the broadcast scan frame is stopped, point-to-point 0x03 transmission and 0x04 return are enabled, and normal data interaction is entered. Data communication (0x03 / 0x04) → Temporary scan (0x01 / 0x02): Triggering conditions: ① Ring link disconnection recovery; ② Hot-swappable access of new submodule; ③ Three consecutive communication timeouts of a single submodule; Temporarily insert a single scan timing sequence, and switch back to normal data communication after completing the fault / new device registration.
[0075] 3. Protocol conversion delay parameter.
[0076] Protocol state switching software latency <1μs (FPGA hardware logic implementation of jump, no CPU scheduling time consumed); Single-frame i-LINK bus transmission physical latency: ≤3.5μs over a cable distance of 100m; The total latency for cross-network conversion between i-LINK and the upper-layer EtherCAT protocol is <20μs for single-cycle overall forwarding, meeting the requirements of industrial servo and high-speed IO real-time control.
[0077] In this embodiment, the multi-industrial Ethernet coupled routing data mapping and cross-protocol conversion are as follows: (1) Data mapping rules: A unified IO mapping table is established inside the coupled router: The process data points of each protocol (EtherCAT PDO area, Profinet process image area, Modbus TCP register address) are uniformly mapped to the hardware ID + data offset address of i-LINK: The upper-level heterogeneous Ethernet sends data → the router parses the original protocol and extracts the valid IO data → according to the mapping table, it is packaged into i-LINK 0x03 data sending frame and sent to the corresponding sub-module; the i-LINK sub-module sends back 0x04 collected data → the router unpacks according to the mapping table, and then encapsulates it into the target industrial Ethernet protocol message and forwards it to the corresponding protocol network segment device.
[0078] (2) Cross-protocol conversion principle: The coupled router has a built-in multi-protocol hardware parsing engine and adopts layered message stripping and reassembly: the original Ethernet message frame header and protocol packet header are stripped, only the application layer IO payload is retained, and the target protocol message is re-encapsulated based on the pre-stored mapping table. The physical layer shares the Ethernet hardware PHY, only performs application layer protocol translation, and does not change the underlying electrical signals.
[0079] (3) Cross-protocol conversion delay: The full-process cross-protocol conversion delay of a single IO data is ≤35μs, and the average delay of multi-protocol batch data forwarding is <80μs, which can seamlessly connect to the real-time control requirements of various mainstream industrial Ethernet.
[0080] In this embodiment, the MCU of the submodule is configured with two independent UART serial port peripherals. The first serial port peripheral is only responsible for data transmission, and the second serial port peripheral is only responsible for data reception. This design allows the RS485 transceiver to always operate in a single state, eliminating the need to switch between transmission and reception, thus eliminating the time overhead and data collision risk caused by state switching, and significantly improving serial port efficiency and communication stability.
[0081] The i-Link protocol defines four core communication states, which the system switches between during operation: Scan sending status: The main module periodically sends scan commands to the bus to query the sub-modules on the bus; Scan receiving status: After receiving the scan command, the submodule returns its own FPGA unique ID identification code; Data communication transmission status: After the main module identifies all sub-modules, it sends control commands and parameter configuration information to the specified sub-module; Data communication receiving status: After the submodule collects sensor data, it returns the collection results and status information to the main module.
[0082] Each submodule's built-in FPGA chip has a globally unique ID pre-programmed, which corresponds one-to-one with the submodule's type. During the scanning phase, the main module reads this ID to identify the submodule's type and function and latches this information into its internal memory. Even if a brief interference occurs during subsequent communication, causing data errors, the main module can still correctly identify the submodule based on the latched information, avoiding system failures caused by module misidentification. Actual testing shows that in this embodiment, the i-Link communication transmission distance between the main module and submodules, and between submodules, can reach 200 meters, with a maximum communication rate of 10 Mbps. Data forwarding between modules is latency-free, fully meeting the real-time and transmission distance requirements of industrial environments.
[0083] Example 2 like Figure 3As shown, this embodiment provides a remote module extension communication system for a sensor real-time bus. This embodiment adds a multi-protocol coupling router to the basis of embodiment 1 to realize cross-protocol networking of devices with different industrial Ethernet protocols.
[0084] In this embodiment, the coupled router has a built-in multi-protocol conversion unit that supports mutual conversion between mainstream industrial Ethernet protocols such as EtherCAT, EtherNET / IP, Profinet, Modbus TCP / IP, and CC-LINKIE. It connects to industrial Ethernet buses of different protocols through corresponding Ethernet interfaces. Each interface independently processes data packets of its corresponding protocol, and the parsing, conversion, and forwarding of data packets of different protocols are achieved through the internal bus.
[0085] For example, when a master device on the EtherCAT bus needs to access sensor data on the Profinet bus, the coupling router first receives the EtherCAT protocol read command, parses it into a general data format, then converts it into a Profinet protocol read command and sends it to the Profinet bus; after receiving the data returned by the Profinet device, it converts it into the EtherCAT protocol format and returns it to the EtherCAT master device.
[0086] Through this coupling router, devices designed with different industrial Ethernet protocols can be quickly assembled into a unified control system. Equipment manufacturers do not need to redevelop devices with different protocol versions, which can realize the free combination of technologies and rapid product iteration. At the same time, it also provides reliable technical support for the functional expansion of existing equipment and the integration of equipment from multiple manufacturers.
[0087] Example 3 like Figure 4 As shown, this embodiment provides a remote module extension communication system for a sensor real-time bus. Based on Embodiment 1, this embodiment adopts an I-LINK communication ring topology to further improve system reliability. The main module's two i-Link interfaces are connected to the two ends of the ring link, and multiple sub-modules are sequentially connected in series to form a closed ring communication link. The main module simultaneously sends the same data in both clockwise and counterclockwise directions of the ring link, and each sub-module simultaneously listens to signals in both directions.
[0088] When the ring link is broken at any point, for example Figure 4 If the cable between two submodules breaks, the submodules on either side of the break will communicate with the main module via unbroken clockwise and counterclockwise links, respectively. The main module can automatically detect the link break and adjust its data transmission strategy to ensure that all submodules can receive and send data normally, preventing partial module failure due to a single point of failure.
[0089] This bidirectional ring communication technology not only solves the single-point-of-failure problem of traditional serial links, but also effectively resists electromagnetic interference in industrial environments. When the signal in one direction malfunctions due to interference, the submodule can automatically switch to receiving the signal in the other direction, significantly improving the reliability and stability of communication.
[0090] It should be noted that the scope of protection of this invention is not limited to the specific embodiments described above. The following alternative embodiments also fall within the scope of protection of this invention: In addition to SN65HVD75DR, other models of RS485 transceivers, such as MAX485 and ADM2483, can also be used, as long as the function of transmitting and receiving is achieved. The physical connection between submodules can use terminal interfaces, M12 circular interfaces, and other commonly used industrial interface types, in addition to RJ45 interfaces. Besides basic cascaded topologies and ring topologies, star topologies, tree topologies, and other topologies can be used according to field requirements. The i-Link protocol can be extended to include fault diagnosis, firmware upgrades, and other functional states based on the existing four communication states.
[0091] The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit the scope of protection of the invention. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on these embodiments, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art can still combine, add, delete, or otherwise adjust the features of the various embodiments of the present invention according to the circumstances without conflict or creative effort, thereby obtaining different technical solutions that do not fundamentally depart from the concept of the present invention. These technical solutions also fall within the scope of protection of the present invention.
Claims
1. A remote module extension communication system for a sensor real-time bus, characterized in that, It includes a host computer, a main module and at least one sub-module. The host computer and the main module are connected via an industrial Ethernet protocol, and the main module and the sub-module, as well as the sub-modules, are connected via a point-to-point communication protocol via the i-Link protocol. The main module integrates an industrial Ethernet protocol interface and an i-Link protocol interface, and is compatible with at least one mainstream industrial Ethernet protocol and i-Link protocol, which is used to realize data forwarding between the host computer and the sub-module. The hardware layer of the submodule uses two independent RS485 transceivers, with the first RS485 transceiver serving as a data transmission driver and the second RS485 transceiver serving as a data receiver, thus achieving complete separation of the physical links for transmission and reception. The software layer of the submodule is configured with two independent serial port peripherals, which are connected one-to-one with the first RS485 transceiver and the second RS485 transceiver, respectively. The two serial port peripherals independently control data transmission and data reception, so that the RS485 transceiver always works in a single state without the need to switch between transmission and reception states.
2. The remote module extension communication system for a sensor real-time bus as described in claim 1, characterized in that, The i-Link protocol defines four mutually exclusive communication states: scan sending protocol, scan receiving protocol, data communication sending protocol, and data communication receiving protocol.
3. The remote module extension communication system for a sensor real-time bus as described in claim 1, characterized in that, Each submodule has a built-in FPGA or ASIC chip, which pre-stores a globally unique ID identification code. The main module identifies the submodule type by reading the ID identification code and latches the module type information into the internal non-volatile memory after identification.
4. The remote module extension communication system for a sensor real-time bus as described in claim 1, characterized in that, The RS485 transceiver uses the SN65HVD75DR chip. The measured i-Link communication transmission distance between the main module and sub-modules, and between sub-modules, reaches 200 meters, and there is no delay in data forwarding between modules.
5. The remote module extension communication system for a sensor real-time bus as described in claim 1, characterized in that, The system also includes a coupling router, which has a built-in multi-protocol conversion unit that supports bidirectional data conversion between EtherCAT, EtherNET / IP, Profinet, Modbus TCP / IP, and CC-LINK protocols, enabling cross-protocol networking of devices with different industrial Ethernet protocols.
6. The remote module extension communication system for a sensor real-time bus as described in claim 1, characterized in that, The main module and multiple sub-modules form an I-LINK communication ring. The I-LINK communication ring adopts a bidirectional ring communication topology. The main module simultaneously sends the same data in both clockwise and counterclockwise directions of the ring link. When the ring link is disconnected at any point, all sub-modules maintain normal communication with the main module through the unbroken reverse link.
7. The remote module extension communication system for a sensor real-time bus as described in claim 1, characterized in that, The hardware circuit of the submodule also includes a power filtering unit, an ESD protection unit, and an RJ45 interface unit; the power filtering unit is connected to the power pins of the two RS485 transceivers respectively, the ESD protection unit is connected to the differential signal pins of the RS485 transceivers respectively, and the RJ45 interface unit is used to realize the physical connection between the submodules.
8. The remote module extension communication system for a sensor real-time bus as described in claim 1, characterized in that, The main module is compatible with at least one of the mainstream industrial Ethernet protocols, including EtherCAT, EtherNET / IP, Profinet, Modbus TCP / IP, and CC-LINK.
9. A remote module extension communication method for a sensor real-time bus, characterized in that, The method is performed based on a remote module extended communication system for a sensor real-time bus as described in any one of claims 1-8, comprising the following steps: S1: The system is powered on and initialized. The main module enters the scanning and sending state and periodically sends scanning commands to all sub-modules through the i-Link protocol. S2: After receiving the scan command, the submodule enters the scan receiving state and returns the unique ID identification code of its built-in FPGA or ASIC chip to the main module. S3: The main module queries the pre-stored module type mapping table based on the received ID identification code, identifies the hardware type and functional parameters of each sub-module, and latches the identification results into the internal memory; S4: After the main module and all sub-modules have completed identification, the system enters the data communication state. The main module sends control commands and configuration parameters to the sub-modules through the first RS485 link, and the sub-modules return sensor data and device status information to the main module through the second RS485 link. S5: When the system adopts the I-LINK communication ring topology, the main module sends data to both directions of the ring link at the same time, and the sub-module listens to the signals in both directions at the same time; if the link in one direction is detected to be disconnected, the sub-module automatically switches to the link in the other direction for communication, and the main module adjusts the data sending strategy synchronously.
10. The remote module extension communication method for a sensor real-time bus as described in claim 9, characterized in that, After the main module latches the module type information, it will not repeat the module type identification process in subsequent communication. The scanning and identification process will only be re-executed when the system restarts or a new module is connected. Data communication adopts a point-to-point transmission method, and the main module establishes a communication link independently with each sub-module.
