Patent ID: 8478908

Claim:
A fieldbus gateway using a virtual serial fieldbus port comprising: a network interface for transmitting or receiving network packets via a network, wherein the network packet includes a fieldbus frame; at least one virtual serial fieldbus transmitting module, which is generated when the fieldbus gateway transmits or receives the network packet via the network interface, for simulating serial fieldbus port corresponding to fieldbus frame included in the network packet, and each of the virtual serial fieldbus transmitting module and the network interface make up virtual serial fieldbus ports; at least one first data processing module corresponds to one of the virtual serial fieldbus port, each of the first data processing module processes behaviors defined by fieldbus protocol used by the fieldbus frame transmitted or received by the virtual serial fieldbus port; at least one fieldbus port, which is physical serial fieldbus port or network fieldbus port, for receiving or transmitting fieldbus packets, wherein fieldbus protocol used by the fieldbus frames corresponding to the fieldbus port receiving or transmitting; at least one second data processing module corresponds to one of the fieldbus port, for processes behaviors defined by fieldbus protocol used by the fieldbus frame received or transmitted by the fieldbus port; a routing module for selecting the fieldbus protocol based on the fieldbus frame received by the virtual serial fieldbus port or the fieldbus port; a frame format converting module for converting the fieldbus frame into the fieldbus frame format used by the selected fieldbus protocol; wherein the routing module provides the converted fieldbus frame to one of the first data processing module or the second data processing module corresponding to the selected fieldbus protocol, and the first data processing module received the converted fieldbus frame transmits the converted fieldbus frame via the virtual serial fieldbus port corresponding to or the second data processing module received the converted fieldbus frame transmits the converted fieldbus frame via the fieldbus port corresponding to.