A DSP sampling data Ethernet transmission system based on W5500
By implementing hardware TCP/IP protocol stack and SPI bus communication through the W5500 chip, the problems of low transmission rate and stability in DSP acquisition systems are solved, enabling long-distance and efficient sampling data transmission, which is suitable for industrial equipment fault diagnosis and building health monitoring.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- TIANSHUI ELECTRIC DRIVE RES INST
- Filing Date
- 2026-06-18
- Publication Date
- 2026-07-31
AI Technical Summary
In existing DSP acquisition systems, serial communication has low transmission rate, limited distance, and is difficult to network. In addition, the software TCP/IP protocol consumes DSP resources, resulting in unstable and lost sampling data transmission, which cannot meet the requirements of long-distance high-precision monitoring.
The W5500 chip is used to implement the hardware TCP/IP protocol stack, which is connected to the DSP via the SPI bus to complete data packet encapsulation and transmission, freeing up DSP computing power. Combined with the TCP protocol's retransmission mechanism and data verification, data integrity is ensured.
It achieves long-distance, high-speed, and reliable data transmission, reduces DSP resource consumption, supports multi-node networking, and ensures the real-time performance and accuracy of sampled data.
Smart Images

Figure CN122496576A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of DSP data transmission and embedded Ethernet communication technology, specifically relating to a DSP sampling data Ethernet transmission system based on W5500, which is mainly used in DSP remote signal acquisition and transmission scenarios such as industrial equipment fault diagnosis, building health monitoring, and environmental sound and vibration detection. Background Technology
[0002] In the field of industrial online monitoring, the TMS320 series DSPs are widely used for acquiring physical signals such as sound and vibration. Existing DSP acquisition systems generally use RS232 and RS485 serial ports to upload sampled data. Serial communication inherently suffers from low transmission rates, limited maximum transmission distances, and difficulties in networking multiple nodes, making it unsuitable for long-distance centralized monitoring needs.
[0003] If Ethernet transmission is used instead, the traditional solution requires the DSP main control chip to port the TCP / IP protocol through the software protocol stack, and the DSP to complete the encapsulation and unpacking of data packets at the MAC layer, IP layer, and TCP / UDP layer. The TCP / IP protocol has a large computational overhead, which consumes a lot of DSP computing resources and squeezes out the hardware resources for DSP's original signal acquisition, filtering, and processing, which can easily cause sampling loss and acquisition timing disorder.
[0004] In addition, conventional external PHY+MAC Ethernet solutions have cumbersome hardware peripheral circuits and lack hardware-level transmission verification mechanisms. Under network fluctuations, data packet loss and data distortion are very likely to occur, making it difficult to guarantee the transmission reliability of high-precision acoustic and vibration sampling data. Summary of the Invention
[0005] The purpose of this invention is to overcome the many shortcomings of existing DSP serial port transmission and software TCP / IP networking, and to provide a DSP sampling data Ethernet transmission system based on W5500. By utilizing the W5500's built-in full hardware TCP / IP protocol stack to offload all network protocol processing work, the DSP's computing resources are freed up. At the same time, it relies on Ethernet to achieve long-distance, high-speed, multi-channel networkable data transmission, thereby improving the practicality and stability of industrial sound and vibration monitoring systems.
[0006] To achieve the above objectives, the present invention adopts the following technical solution: A TMS320F28335 chip sampling data Ethernet transmission system based on W5500 includes: a DSP sampling data output unit (preferably a TMS320F28335 chip sampling data output unit), a W5500 Ethernet communication module, an Ethernet transmission link, and a host computer. The TMS320F28335 chip sampling data output unit is a sound and vibration signal acquisition device equipped with TMS320F28335, and is equipped with signal conditioning and analog-to-digital conversion peripheral circuits. After completing the acquisition and analog-to-digital conversion of the on-site sound and vibration analog signals, it generates digital sampling data with a unified timestamp and buffers it on-chip. It integrates an SPI communication interface for acquiring sound and vibration analog signals and generating buffered sampling digital data with timestamps after analog-to-digital conversion, and outputting it to the outside through the SPI interface; the SPI adopts a standard industrial bus to achieve direct connection with the W5500 hardware pins.
[0007] The W5500 Ethernet communication module is the core communication device of this system. It integrates a complete TCP / IP protocol stack, implementing ARP, IP, TCP, UDP, and other full-level protocols through hardware logic circuits. It also integrates MAC and PHY physical layer circuits and features an RJ45 interface with a built-in network transformer. The W5500 connects to the DSP host SPI interface via an SPI slave interface. After receiving sampled data from the DSP, it performs data packet encapsulation internally, without requiring any DSP involvement in network protocol calculations. The W5500 supports 10 / 100M adaptive network port speeds and can be flexibly configured in TCP client / server mode. IP address, gateway, and subnet mask support both static configuration and DHCP automatic acquisition for network topology. Specifically: The W5500 Ethernet communication module is bidirectionally electrically connected to the SPI interface of the TMS320F28335 chip sampling data output unit. The module has a built-in hardware TCP / IP protocol stack, SPI driver circuit and RJ45 network port with network transformer. It supports 10 / 100M adaptive Ethernet communication. It receives sampling data sent by the TMS320F28335 chip sampling data output unit through the SPI bus, and completes TCP / IP data packet encapsulation by relying on the hardware protocol stack. The TMS320F28335 does not need to participate in protocol parsing and packet assembly calculation. The Ethernet transmission link is connected to the RJ45 port of the W5500 Ethernet communication module and consists of a network cable, switch, or router. It is used for long-distance high-speed transmission of encapsulated TCP data frames. The Ethernet transmission link is composed of standard network cables, switches, routers, and other general network equipment. One end is plugged into the RJ45 interface of the W5500, and the other end is connected to the host computer's networking port, overcoming the distance limitations of serial ports and enabling remote data transmission over LANs or WANs. The W5500 relies on the built-in acknowledgment and retransmission mechanism of the TCP protocol to automatically retransmit packets when data verification fails, avoiding data packet loss caused by line interference.
[0008] The host computer has built-in TCP debugging assistant software. It establishes a TCP communication link via an Ethernet transmission link and the W5500 Ethernet communication module, receives TCP data packets, parses the data, and displays it in real time, thus visualizing the sampled data. The host computer uses general-purpose TCP debugging assistant software, eliminating the need for custom host computer program development. After configuring the corresponding IP and port, the software starts listening, establishes a long TCP connection with the remote W5500, receives network data packets in real time, parses the raw sampled data, and visualizes the numerical values and curves. A single host computer can connect to multiple W5500 devices, enabling centralized data management across multiple measurement points.
[0009] Furthermore, the W5500 Ethernet communication module supports dual working modes of TCP client and TCP server, and network parameters support static IP configuration or DHCP dynamic allocation.
[0010] Furthermore, the SPI communication link between the TMS320F28335 chip sampling data output unit and the W5500 Ethernet communication module serves as a high-speed data interaction channel, with the SPI communication baud rate set to no less than 1MHz.
[0011] Furthermore, the W5500 Ethernet communication module relies on the inherent retransmission mechanism of TCP to automatically trigger data frame retransmission when data transmission errors occur, and works in conjunction with the data verification mechanism to ensure that the sampling data is transmitted completely without loss.
[0012] Furthermore, the TCP debugging assistant configured on the host computer has functions such as network parameter configuration, port listening, packet parsing, and real-time data plotting and display. It can simultaneously connect to multiple W5500 Ethernet communication modules to achieve centralized monitoring of multi-point data acquisition.
[0013] Compared with the prior art, the present invention has the following beneficial effects: 1. This invention uses W5500 hardware to solidify the TCP / IP protocol. Protocol encapsulation and decapsulation are all performed in the internal hardware of the W5500 chip. The DSP is only responsible for data acquisition and application layer data buffering and output, which completely releases the DSP computing power and ensures the DSP sampling accuracy and acquisition real-time performance.
[0014] 2. The DSP and W5500 communicate via a high-speed SPI bus, with a communication rate that can be set to 1MHz or higher, up to 8MHz, to meet the requirements for continuous high-speed forwarding of large batches of acoustic and vibration sampling data.
[0015] 3. Abandoning traditional RS232 and RS485 short-distance serial port transmission, it adopts a standard Ethernet architecture, which has a long transmission distance, is convenient for networking, and allows multiple acquisition nodes to be connected in parallel to form a network, making it suitable for large-scale distributed online monitoring in the factory area.
[0016] 4. Relying on the TCP protocol hardware retransmission + verification mechanism, it effectively suppresses data loss caused by network cable interference and network jitter, ensuring the complete and reliable transmission of high-precision acoustic and vibration sampling data.
[0017] 5. The host computer can use a general TCP debugging assistant to complete data reception and display, saving the cost of custom software development, making deployment simple, data visualization in real time, and easy to use.
[0018] 6. The W5500 module has flexible parameter configuration, with dual TCP working mode and static / DHCP dual IP configuration scheme, which is compatible with various networking conditions such as on-site LAN and external remote network. The module is small in size and easy to integrate with DSP acquisition board. Attached Figure Description
[0019] Figure 1 This is a block diagram showing the overall hardware topology connection of the system of the present invention; Figure 2 A schematic diagram of the SPI hardware wiring between the TMS320F28335 and the W5500; Figure 3 A schematic diagram of the built-in hardware TCP / IP protocol stack layer of the W5500 chip. Detailed Implementation
[0020] The following is in conjunction with the appendix Figure 1-3 The present invention will be further described below with reference to specific embodiments. The following examples are only used to more clearly illustrate the technical solutions of the present invention, and should not be used to limit the scope of protection of the present invention.
[0021] This invention discloses a DSP sampling data Ethernet transmission system based on the W5500, comprising four parts: a DSP sampling data output unit, a W5500 Ethernet communication module, an Ethernet transmission link, and a host computer. The front-end signal acquisition hardware has been separately patented. In this embodiment, the DSP connects to a mature external sampling data source to directly acquire digital sampling data with timestamps. The DSP controller uses a TMS320F28335 floating-point DSP chip with a 150MHz clock speed, featuring built-in hardware SPI peripherals and multiple GPIO resources to meet the high-speed SPI interface requirements of the W5500. The DSP pins GPIO54, GPIO55, GPIO56, and GPIO57 are selected as SPI communication pins, corresponding to the W5500's MISO, MOSI, SCLK, and SCSn chip select pins, respectively. All hardware wiring is uniformly connected to a 3.3V power supply and a common ground terminal, completing the hardware electrical interconnection. After hardware wiring, the DSP configures the four GPIO pins with pull-up functionality and asynchronous input mode, then reuses them as dedicated SPI function pins to ensure the stability of SPI electrical operation.
[0022] The DSP is internally configured with SPI in master mode, using the SPI mode 0 / 3 timing specification for SPI communication. The character transmission width is fixed at 8 bits, and the actual SPI communication baud rate is 1.5MHz through register frequency division. The DSP has an on-chip data buffer that buffers a fixed length of sampled data at a time. The DSP receives digital sampled data from an external data source, adds a timestamp, and stores it in the buffer. When the buffer is full, it writes batch data sequentially to the SPITXBUF transmit register via the configured SPI bus, forwarding the data byte by byte to the W5500 based on the hardware SPI timing. The W5500 is configured with SPI in slave mode. After receiving data, it stores it in its own 32KB internal hardware transceiver buffer. The DSP reads the interaction response data through the SPIRXBUF register to complete bidirectional data interaction. The DSP only handles application layer data caching and forwarding throughout the process and does not participate in TCP / IP protocol encapsulation operations.
[0023] The W5500 Ethernet communication module features a built-in full hardware TCP / IP protocol stack, with embedded hardware logic supporting TCP, UDP, ICMP, IPv4, ARP, IGMP, and PPPoE protocols. It integrates a MAC layer and a 10 / 100M adaptive PHY physical layer, supports 8 independent socket channels, and comes with an RJ45 interface with a network transformer. It also includes LINK and ACT status indicator lights. After system power-on, the DSP calls the network configuration subroutine to complete the W5500 parameter configuration: setting the host computer server IP address to 192.168.137.1, server communication port 5000, and W5500 local communication port 6000. A data length variable `len` is defined to record the number of bytes of sampled data to be sent in a single batch. Based on the configuration parameters, the W5500 actively initiates a handshake connection with the host computer as a TCP client. The internal hardware protocol stack automatically performs TCP frame encapsulation and CRC verification on the received DSP sampled data. The W5500 supports power-down hibernation and wake-up from the network. The network port automatically negotiates 10M / 100M full-duplex / half-duplex communication speeds. When the transmission link is abnormal, it automatically triggers message retransmission based on the TCP acknowledgment mechanism.
[0024] The Ethernet transmission link uses Cat5e cables paired with an industrial switch for networking. The W5500's RJ45 port is connected to the switch port, and the host computer is simultaneously connected to the same LAN switch. The host computer runs Windows and is equipped with a general TCP debugging assistant software. The debugging assistant is configured with the local IP address 192.168.137.1, listening on port 5000, and port listening is enabled, waiting for the W5500 to connect. After the TCP link is successfully established, the W5500 continuously sends encapsulated Ethernet data packets according to the data length marked by the variable len. After receiving the data packets, the host computer strips the protocol header, extracts the raw sampled data, and displays the values and visualizes the data in real time on the software interface.
[0025] During system debugging, the link connectivity can be verified using the PING command on the host computer. A successful PING indicates that the DSP and W5500 SPI communication and Ethernet link are working normally. If data corruption or SPI communication failure occurs, check the hardware wiring, GPIO multiplexing configuration, and data pointer bit width settings in sequence. Setting the data storage offset variable to a 32-bit integer can solve the data corruption problem caused by shift overflow.
[0026] This system can be networked with multiple nodes in parallel, with multiple DSP-W5500 units connected to the same switch. A single host computer can achieve centralized data monitoring of multiple measurement points. The SPI frequency division coefficient can be modified as needed to adjust the communication rate, and the W5500 network parameters can be rewritten to switch between static IP / DHCP dynamic allocation mode. It is compatible with different industrial networking environments such as LAN and remote external network, and is widely used in DSP remote data transmission scenarios such as equipment fault monitoring and structural health detection.
[0027] Although the present invention has been described according to various specific embodiments, those skilled in the art will recognize that the invention can be practiced with modifications within the spirit and scope of the claims. Therefore, any obvious improvements, substitutions, or modifications that can be made by those skilled in the art without departing from the essence of the invention are within the scope of protection of the present invention.
Claims
1. A W5500-based TMS320F28335 chip sampling data Ethernet transmission system, characterized in that, include: TMS320F28335 chip sampling data output unit, W5500 Ethernet communication module, Ethernet transmission link and host computer; The TMS320F28335 chip sampling data output unit is a sound and vibration signal acquisition device equipped with TMS320F28335. It integrates an SPI communication interface to acquire sound and vibration analog signals and generate buffered sampling digital data with timestamps through analog-to-digital conversion, and outputs it to the outside through the SPI interface. The W5500 Ethernet communication module is bidirectionally electrically connected to the SPI interface of the TMS320F28335 chip sampling data output unit. The module has a built-in hardware TCP / IP protocol stack, SPI driver circuit and RJ45 network port with network transformer. It supports 10 / 100M adaptive Ethernet communication. It receives sampling data sent by the TMS320F28335 chip sampling data output unit through the SPI bus, and completes TCP / IP data packet encapsulation by relying on the hardware protocol stack. The TMS320F28335 does not need to participate in protocol parsing and packet assembly calculation. The Ethernet transmission link is connected to the RJ45 port of the W5500 Ethernet communication module and consists of a network cable, switch or router, and is used for long-distance high-speed transmission of encapsulated TCP data frames. The host computer has built-in TCP debugging assistant software, which establishes a TCP communication link through the Ethernet transmission link and the W5500 Ethernet communication module, receives TCP data packets, and completes data parsing and real-time display to realize the visualization of sampled data. 2.The W5500-based TMS320F28335 chip sampling data Ethernet transmission system according to claim 1, wherein, The W5500 Ethernet communication module supports dual working modes of TCP client and TCP server, and network parameters support static IP configuration or dynamic allocation via DHCP. 3.The W5500-based TMS320F28335 chip sampling data Ethernet transmission system according to claim 1, wherein, The SPI communication link between the TMS320F28335 chip sampling data output unit and the W5500 Ethernet communication module serves as a high-speed data interaction channel, with the SPI communication baud rate set to no less than 1MHz. 4.The W5500-based TMS320F28335 chip sampling data Ethernet transmission system according to claim 1, wherein, The W5500 Ethernet communication module relies on the inherent retransmission mechanism of TCP, which automatically triggers data frame retransmission when data transmission errors occur. Combined with the data verification mechanism, it ensures that the sampling data is transmitted completely without loss.
5. The W5500-based TMS320F28335 chip sampling data Ethernet transmission system according to claim 1, wherein, The TCP debugging assistant configured on the host computer has functions such as network parameter configuration, port listening, packet parsing, and real-time data plotting and display. It can simultaneously connect to multiple W5500 Ethernet communication modules to achieve centralized monitoring of multi-point data acquisition.