This is an exercise to test TCP loopback communication. The PC runs as a TCP Client and the WIZwiki board runs as a TCP Server. The TCP server returns the messages sent by the TCP client.
User can learn how to drive a network using the TOE (TCP/IP Offload Engine) of W7500.
No special circuit.
Connect the PC and the router (with DHCP function) with LAN cable. Connect the router and the WIZwiki board with LAN cable. Connect the PC and the WIZwiki board with USB cable.
Use the example code in the page below.
Click on the red part of the “Import this program” section in the figure below.
The “Source URL” and “Import As” have default values. User can change the “Import Name” if one wants. If clicking on the red part of the “Import”, the program is copied to the mbed compiler environment.
The TCP Client sends a message to WIZwiki board and the WIZwiki board sends a reversed message to the TCP client. Check the Loopback message as shown below.
The WIZnet team page in the ARM mbed provides mbed libraries and examples for WIZnet products.
There are mbed libraries below which are used for Hardware TCP/IP chip (W5500) and WIZnet TCP/IP Offload Engine (W7500).