SPMA080 April 2021 TM4C1292NCPDT , TM4C1292NCPDT , TM4C1292NCZAD , TM4C1292NCZAD , TM4C1294KCPDT , TM4C1294KCPDT , TM4C1294NCPDT , TM4C1294NCPDT , TM4C1294NCZAD , TM4C1294NCZAD , TM4C1299KCZAD , TM4C1299KCZAD , TM4C1299NCZAD , TM4C1299NCZAD , TM4C129DNCPDT , TM4C129DNCPDT , TM4C129DNCZAD , TM4C129DNCZAD , TM4C129EKCPDT , TM4C129EKCPDT , TM4C129ENCPDT , TM4C129ENCPDT , TM4C129ENCZAD , TM4C129ENCZAD , TM4C129LNCZAD , TM4C129LNCZAD , TM4C129XKCZAD , TM4C129XKCZAD , TM4C129XNCZAD , TM4C129XNCZAD
Connect the EK-TM4C1294XL LaunchPad to either the Ethernet switch or the router with an Ethernet cable as shown in Figure 3-1. Run the example. With the CCS console window opened, you should see the IP address (pointed by arrow) displayed and the server is ready as shown in Figure 6-5. Record the IP address as you will need this information on the client side. Initially the server will be in a listening state waiting for the client to connect to it. Therefore, to continue the rest of the example, a remote client needs to be setup.
Use the SocketTest tool that will act as the client running on the PC. Make sure the PC is connected to the same network as the EK-TM4C1294XL with the same subnet mask.
Follow the steps shown in Figure 6-6 to setup the client:
Examine the message “This is a TCP Echo Server example for TI-RTOS NDK” that was sent by the client to the server. If you count manually, this message has a total length of 51 bytes including the two \n\r escape characters. The \n is the New Line and \r is the Carriage Return character in the ASCII table.
As can be seen in the conversation field, the server echoes back the exact message.
Also, examine the Wireshark capture in Figure 6-7 for the Ethernet traffic.