The invention provides a switch log
record module, and aims at providing a log
record module which does not occupy the bandwidth of a switch, reduces the configuration cost, and has
high security. The technical scheme of the module is realized in the following steps: log information output by a switch master device and a switch slave device is transmitted to a micro-
control unit (MCU) through two serial ports, and the MCU receives the information and writes and saves data into an embedded
multimedia memory eMMC; the log
record module is provided with a UART
serial port data overtime detection sub-module used for detecting whether the sending of the data is accomplished and a command transmission sub-module, a log record sub-module receives the data, the data enters a log record process, the log record process is generated by a master process sub-module, and the process sub-module is controlled by a remote switch; and an initialization module establishes
Ethernet communication with a
physical layer Ethernet PHY chip at an external
signal interface by employing
network configuration of stored
IP address parameters, establishes log folders and files in an initialized manner, and separately saves UART
serial port data of the switch master device and UART
serial port data of the slave device.