S 2 E R D K R E A D M E F I R S T
Rev. 1.5 1
Stellaris® Serial-to-Ethernet (S2E) Module RDK
Stellaris reference design kits (RDKs) from Texas Instruments accelerate product
development by providing ready-to-run hardware, example software, and comprehensive
documentation including hardware design files. The Serial-to-Ethernet (S2E) Module RDK
includes all the necessary cables, hardware, and software to run a demo application out of the
box. The compact design is based on the LM3S6432 Stellaris microcontroller, a highly
integrated ARM® CortexTM –M3 microcontroller with integrated 10/100 Ethernet MAC and
PHY,
50-MHz performance, and ample single cycle on-chip Flash and SRAM memory for efficient
network traffic handling.
The S2E module includes one 10/100 Ethernet port and two serial ports with flexibility that
includes both RS-232 and CMOS/TTL level signaling, flow control, and hardware support for
both synchronous and asynchronous serial communication. Development of software for the
S2E module is simplified by using the extensive Stellaris example software and ARM
development tools from our tools partners.
The most common application for the S2E module is for augmenting legacy products that
contain a serial port for a configuration or control interface. Simply installing a S2E module
into the legacy serial device provides instant networking capability with no major board
redesign or software changes, a tiny form-factor for unobtrusive implementation, and cable
lengths much longer than what is available for simple serial connections.
Installing and Using the S2E Module RDK
Kit Contents
The S2E Module RDK includes the following items:
• Stellaris Serial-to-Ethernet Module (MDL-S2E)
• S2E connector board
• Retractable Ethernet cable
• DB9 serial cable
• USB cable for module power
• JTAG/SWD adapter to standard 20-pin header
• This Quickstart Guide, User’s Manual, Software Reference Manual, Board Data
Sheet, source code, bill of materials (BOM), schematics, and Gerber files on CD
S 2 E R D K R E A D M E F I R S T
Rev. 1.5
Quickstart Application
The S2E module comes preprogrammed with a quickstart application. Once you have
powered the board, the application runs automatically. The application provides a means of
accessing the UART serial ports on the LM3S6432 microcontroller through a network. The
serial port on the LM3S6432 can then be connected to the serial port on a non-networked
device, providing the ability to access the device via a network. This can be useful to
overcome the cable length limitations of a serial connection and to provide networking
capability to existing devices without modifying the device’s operation.
The application supports Universal Plug and Play (UPnP) for device discovery allowing the
PC to detect the networked device. Click the UPnP device icon in “My Network Places” on
your PC to load the website served up by the S2E module into your web browser. The website
allows for various configurations of the S2E module.
Once you have powered the board, the application runs automatically. The application
attempts to contact a DHCP server to acquire an IP address. If unable to get an IP address
from a DHCP server, the application acquires a link local IP address using the AutoIP
protocol.
Note: The quickstart application requires Universal Plug and Play (UPnP) support. This
support is provided by default in Windows XP and Windows Vista, but must be enabled. See
below for details on enabling UPnP on Windows XP.
2
S 2 E R D K R E A D M E F I R S T
Rev. 1.5
Running the Quickstart Application
Follow the steps below to start running the quickstart application preprogrammed into the S2E
module. Although the quickstart application is capable of more complex scenarios, the steps
below will guide you through using two HyperTerminal windows to loop back
communication between the serial port and Ethernet port on your PC. See the block diagram
below.
Note: For additional examples and more information on using the S2E module, see the
Serial-to-Ethernet Reference Design Kit User’s Manual.
Connect and Power the S2E Module
1. Connect the S2E module and the S2E connector board using the connectors provided
on the boards (labeled J1 on both boards).
2. Connect the male end of the DB9 cable to the DB9 connector (J4) on the S2E
connector board and the female end of the DB9 cable to the serial port on the serial
port on your PC.
3. Connect one end of the Ethernet cable to the Ethernet jack (J2) on the S2E module and
the other end directly to your PC or LAN.
4. Connect the miniB (smaller) end of the USB cable to the USB connector (J5) on the
S2E connector board. Then connect the other end of the USB cable to a free USB port
on your PC.
5. Once powered, the S2E module attempts to locate a DHCP server. If the board is
connected to a LAN and there is a DHCP server present, the board attempts to obtain
an IP address from the DHCP server. If an IP address cannot be obtained from a
DHCP server, the S2E module acquires a link local IP address using the AutoIP
protocol.
3
S 2 E R D K R E A D M E F I R S T
Rev. 1.5
6. If you have connected the S2E module directly to your PC, your machine
automatically detects the correct IP address and subnet settings after several seconds.
The integrated PHY on the LM3S6432 has an Auto-MDX feature that allows you to
use a straight-through or cross-over Ethernet cable.
In some cases, you need to manually configure your PC’s IP address and subnet mask.
To do this, disable the machine’s wireless network connection and any other internet
connections that could interfere with the network being created. Select the Internet
Protocol (TCP/IP) connection within the Local Area Connection Properties and click
Properties. Next, manually set your IP address to 169.254.19.60 and your subnet mask
to 255.255.0.0, as shown below. After manually setting the IP address of your PC,
power cycle the S2E module by unplugging the USB cable and plugging it back in.
Using the Finder Utility to Get the IP Address of the S2E Module
1. Insert the RDK Documentation and Software CD into the CD-ROM drive of your
computer. If Autoplay is enabled on your PC, the index.htm file automatically opens in
your default web browser. If not, use Windows Explorer or other browser to open the
index.htm file manually.
4
S 2 E R D K R E A D M E F I R S T
Rev. 1.5
2. From the CD menu, select the Software button. Click the ‘Download’ link for the Finder
utility.
3. Save the Finder utility to your preferred location.
4. Browse to the location where you saved the Finder utility and double click the icon to run
the utility.
5. The Finder utility will start up and you should see the S2E module in the list of available
Stellaris boards similar to the screen shot below. The IP address listed will be used in the
next step.
Note: You can alternatively run the Finder application directly from the CD. The Finder
utility is located in the /Software/Finder directory on the CD.
5
S 2 E R D K R E A D M E F I R S T
Rev. 1.5 6
Open Two HyperTerminal Windows: One COM Port and One TCP/IP Port
1. Open one HyperTerminal window. On Windows XP, HyperTerminal can be found by
clicking Start, Programs, Accessories, and then Communications.
2. Enter a name for the terminal window and click OK.
3. In the Connect Using pull-down menu, select the COM port associated with the port
that the DB9 cable is connected to on your PC (most likely COM1) and click OK.
4. Select 115200 for Bits per second, 8 for Data bits, None for Parity, 1 for Stop Bits,
and None for Flow Control.
5. Open another HyperTerminal window.
6. Enter a name for this terminal window and click OK.
7. In the Connect Using pull-down menu, select TCP/IP (Winsock), set the Port
number to 23, and set the Host address to the IP address shown in the Finder utility
for the S2E module. Then click OK.
8. Now you can type in one of the HyperTerminal windows and see the text displayed in
the other HyperTerminal window. This demonstrates the S2E module sending data
over Ethernet to a serial COM port and vice versa. Note that the default
HyperTerminal settings will not display the typed characters in the transmitting
window.
StellarisWare® Package
A full set of C-based peripheral drivers is provided, covering all peripherals and functionality
of the Stellaris devices. The StellarisWare package includes various example applications
with project files for all major tool vendors that support Stellaris.
Installing StellarisWare
1. Insert the RDK Documentation and Software CD into the CD-ROM drive of your
computer. If Autoplay is enabled on your PC, the index.htm file automatically opens in
your default web browser. If not, use Windows Explorer or other browser to open the
index.htm file manually.
2. From the CD menu, select the Software button. Click the ‘Install’ link for StellarisWare. If
you prefer to manually install StellarisWare from a zip file, the zip file is located in the
/Software/StellarisWare directory.
3. To view the StellarisWare documentation, navigate to the installation directory and click
the StellarisWare Peripheral Driver Library User’s Manual PDF file to open.
S 2 E R D K R E A D M E F I R S T
Copyright © 2008–2009 Texas Instruments, Inc. All rights reserved. Stellaris and StellarisWare are registered trademarks of
Texas Instruments. ARM and Thumb are registered trademarks, and Cortex is a trademark of ARM Limited. Other names
and brands may be claimed as the property of others.
Texas Instruments
108 Wild Basin Rd., Suite 350
Austin, TX 78746
Main: +1-512-279-8800
Fax: +1-512-279-8879
http://www.luminarymicro.com
Rev. 1.5 12/8/2009
S2E Module Example Software
The Firmware Development Package includes example software for the S2E module. If you
installed the Firmware Development Package to the default installation path of
C:/StellarisWare, you can find the example software for the S2E module in
C:/StellarisWare/boards/rdk-s2e.
Conclusion
You have now successfully operated the Serial-to-Ethernet (S2E) module using the provided
quickstart application. We recommend reading the Serial-to-Ethernet Reference Design Kit
User’s Manual, which explains how to use the S2E module in more detail. Once you have
completed that step, you will be prepared to start adapting the software and hardware for a
specific application.
References
The following references are included on the S2E Module RDK documentation CD and are
also available for download at www.luminarymicro.com:
Serial-to-Ethernet Reference Design Kit User’s Manual, publication number
RDK-S2E-UM
Serial-to-Ethernet RDK Software Reference Manual, publication number RDK-S2E-srm
Installing and Using the S2E Module RDK
Kit Contents
Quickstart Application
The S2E module comes preprogrammed with a quickstart application. Once you have powered the board, the application runs automatically. The application provides a means of accessing the UART serial ports on the LM3S6432 microcontroller through a network. The serial port on the LM3S6432 can then be connected to the serial port on a non-networked device, providing the ability to access the device via a network. This can be useful to overcome the cable length limitations of a serial connection and to provide networking capability to existing devices without modifying the device’s operation.
Running the Quickstart Application
Connect and Power the S2E Module
Using the Finder Utility to Get the IP Address of the S2E Module
Open Two HyperTerminal Windows: One COM Port and One TCP/IP Port
StellarisWare® Package
Installing StellarisWare
S2E Module Example Software
The Firmware Development Package includes example software for the S2E module. If you installed the Firmware Development Package to the default installation path of C:/StellarisWare, you can find the example software for the S2E module in C:/StellarisWare/boards/rdk-s2e.
Conclusion
References
本文档为【串口转以太网口模块】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑,
图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
该文档来自用户分享,如有侵权行为请发邮件ishare@vip.sina.com联系网站客服,我们会及时删除。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。