SPMA072 March   2015 TM4C1294KCPDT , TM4C1294KCPDT , TM4C1294NCPDT , TM4C1294NCPDT , TM4C1294NCZAD , TM4C1294NCZAD , TM4C1299KCZAD , TM4C1299KCZAD , TM4C1299NCZAD , TM4C1299NCZAD , TM4C129EKCPDT , TM4C129EKCPDT , TM4C129ENCPDT , TM4C129ENCPDT , TM4C129ENCZAD , TM4C129ENCZAD , TM4C129XKCZAD , TM4C129XKCZAD , TM4C129XNCZAD , TM4C129XNCZAD

 

  1.   Serial to Ethernet Converter for TM4C129x Microcontrollers Using RTOS
    1.     Trademarks
    2. 1 Introduction
    3. 2 Software Description
    4. 3 Set Up and Program enet_s2e Application
      1. 3.1 Set Up enet_s2e Application
      2. 3.2 Software Modification for DK-TM4C129X
      3. 3.3 Program the enet_s2e Application
    5. 4 Demonstration
      1. 4.1 Set Up EK-TM4C1294XL Board and PC
      2. 4.2 Demonstration
    6. 5 Configuration Webserver
      1. 5.1 Access the Configuration Webserver
        1. 5.1.1 Using the Debug Port
        2. 5.1.2 Using the Finder Utility
      2. 5.2 Different Pages Hosted on the Configuration Webserver
        1. 5.2.1 S2E Status Page
        2. 5.2.2 S2E Port 0 and Port 1 Settings Page
        3. 5.2.3 S2E Miscellaneous Settings Page
    7. 6 Flow Control
    8. 7 Additional Hardware
      1. 7.1 Schematic of RS-232 Level Shifter
      2. 7.2 Connections
      3. 7.3 Bill of Materials (BOM)
    9. 8 References

Demonstration

  1. Open the first terminal window (like Hyperterminal or TeraTerm) and connect to the Stellaris Virtual Serial Port COM port. This port is used as a debug terminal to display the IP address and status messages. From now on, this terminal is referred to as debug terminal.
  2. Select the Baud rate as 115200, Data Bits as 8, Parity as none, Stop bits as 1 and Flow Control as none.
  3. Open a second terminal window and connect to the COM port associated with the port that the DB9 cable is connected to on the PC. This terminal will be referred to as Serial Terminal.
  4. Select the Baud rate as 115200, Data Bits as 8, Parity as none, Stop bits as 1 and Flow Control as none.
  5. Program and run the enet_s2e application. For detailed instructions to program the enet_s2e application, see Section 3.
  6. A banner and status messages are printed on the debug terminal. Proceed only after the IP address is acquired and displayed on the debug terminal.
  7. Open a third terminal window to connect to the TCP/IP port 23 (or Telnet). This terminal will be referred to as Telnet terminal.
  8. Select TCP/IP. If a particular protocol is required, choose Telnet. Set the Port number to 23. Set the Host IP address to the IP address shown on the debug terminal.
  9. Information typed on either Serial or Telnet terminals will be displayed on the other terminal and vice versa. The text might not be displayed in the transmitting window based on the terminal windows setting.

This demonstrates that the S2E module routes back the serial data from PC as Telnet data (over Ethernet) and vice versa. In other words, the S2E module transmits Telnet data when it receives serial data and transmits serial data when it receives Telnet data.

The configuration webserver can be accessed by entering the IP address, displayed on the debug terminal, into a web browser. For more details on this webserver, see Section 5.