Ethernet Shield How to use

There are three ways to configure an XPort

  1. Telnet to port 9999 of the XPort
  2. Use an FTDI cable to make a serial connection
  3. Use a "wire hack" to make a serial connection
Option 1. Configuring the XPort w/DHCP

Once you have the shield assembled and the XPort plugged or soldered in, you'll want to configure it. You only have to do this once.

If you have DHCP, this is very easy. Simply plug the shield into the Arduino and an Ethernet cable into the Xport. The XPort will automatically get an IP address. You can then configure it using the Lantronix "DeviceInstaller" software. You can figure out its IP address and then telnet to the IP address, port 9999 to configure.

This is by far the easiest way to configure the XPort so I suggest it instead of trying to configure it with the serial port

Option 2. Set up the XPort using FTDI cable

If you dont have DHCP, you will have to connect to the serial interface.

If you have an FTDI cable, simply solder in a 6-pin header into the spot on the shield to connect the cable. Make sure the shield is not on the Arduino. Then plug in the FTDI cable as shown, making sure that the Green and Black wires are aligned as marked

Now skip down to "Configuring the XPort via Serial"

Option 3. Set up the XPort using 'Arduino wire hack'

If you dont have an FTDI cable, you can actually just use the FTDI chip on the Arduino itself. Its a little tricky but not too hard to do.

First, gently pry the Arduino microcontroller from its socket using a small flat screwdriver or similar. Try to make sure the pins dont get bent. Put it in a safe place. Preferably in an anti-static bag.

Next, solder two wires to the shield, as shown. Use different colors to make it easy to tell the difference. Solder one wire to the second hole from the top as shown here, and the second wire to the third from the top. Make sure the wires are plenty long.

Plug the two wires into the now-empty socket of the Arduino, as shown. The white wire is in the 3rd socket hole from top. The green wire is in the second socket hole from the top.

You can now plug the shield onto the Arduino.

Now go to the next step...

Once you're done configuring the XPort, remove the wires and gently re-insert the microcontroller chip

Option 2 & 3. Configure the XPort with serial

You'll need to figure out which serial port (COM) you are using. Plug in the Arduino (if you're using the wire hack) or the FTDI cable. Under windows, check the device manager, look for "USB Serial Port"

Next you'll need to open up a terminal program. Windows comes with Hyperterminal, so just use that. Its under Start->Programs->Accessories->Communications->HyperTerminal.

When you open it up, it should ask you for a new connection. Lets name it "xport"

Next You will select the COM port from the drop down menu, in my case its COM10.

Next, set the properties. Make sure you select 9600 bps, 8 bit, No parity, 1 stop bit and no flow control. Some programs may call this (9600 8N1). If the XPort has been configured for a different baud rate, of course, you should use that.

You will get a blank screen that says "Connected" in the bottom left corner.

Now is where you have to be a little fast!

If you are successful you will see the setup screen in the next step

Changing the XPort configuration

Press Enter! The Xport will send its current configuration and then provide a screen that you can change the XPort configuration

If you want to set the static IP address of the Xport, type in 0 and then enter in the ip address and gateway. You should be able to telnet to port 9999 of the XPort if its setup correctly

You can also change the serial port settings. Unless you're sure you want a different configuration, you probably dont want to change the settings.

May 17, 2011 20:07