The invention discloses a
data processing method, a related device and a
data exchange module, and relates to the field of Internet, the method is applied to the
data exchange module, the
data exchange module is provided with a
protocol stack of at least two communication protocols, and the data exchange module is in communication connection with a
master station and a plurality of slave stations through a plurality of different ports. At least two slave stations in the plurality of slave stations adopt different communication protocols, and the method comprises the following steps: obtaining a target data frame sent by the
master station, analyzing the target data frame, obtaining a data frame type and a target
MAC address of the target data frame, selecting a matched
protocol stack according to the data frame type,
processing the data frame to obtain a data packet, and sending the data packet to the
master station; and determining a first port according to the target
MAC address, and storing the data packet in a sending buffer area of the first port, thereby facilitating forwarding of the data packet from the first port to the slave
station. According to the invention, the corresponding protocol stacks can be respectively set, a plurality of switches are not needed, and the
Ethernet frame and the
EtherCAT frame can be switched at the same time.