Lantronix Xport

From Appelwiki
Revision as of 20:41, 24 October 2009 by Arco (talk | contribs)

LanTronix XPort

Why?

I manage to get a few of these and after some annoying searches on google I noticed there is not so much known about these little ethernet/serial/webservers.

What?

It's a very small 3,3Volt brick with ethernet, 1 serial and 3 GPIO lines. It is also capable of sending mail and creating serial tunnels.

Serial

using the serial tunnel is easy, just telnet to port 10001.

GPIO

This made me happy. until I noticed all the cool stuff was hidden behind NDA's and the SDK. Lucky for me the manual and a japanese guy got me started on programming them with perl. See XPort GPIO from Perl.

Firmware upgrade

The firmware upgrade procedure is very detailed in the manual. The upgrade rom is only needed for upgrading from old systems AFAIK.

tftp -i 192.168.1.16 put xpt03upg_v21a.rom X2
tftp -i 192.168.1.16 put xpt03_6602.rom X5
tftp -i 192.168.1.16 put gen_xpt_webm_1701.cob WEB1

There is a rom part and a web part. The web part is user-modifiable to create a web interface XPort.

Getting a used one back to life

When you're lucky the tftp-firmware bit is still true. If the device has a fixed IP, you need to find out which IP the XPort has. I found a simple procedure:

start something like wireshark
create a filter (eth.src contains 00:20:4a) 
start capturing
start the lantronix deviceInstaller
Scan
Now you should see some package like "Who is IP X tell Y.Y.Y.Y"
The XPort has IP Y.Y.Y.Y
Give Your PC temporary IP X
telnet  Y.Y.Y.Y 9999
option 0
all 0
save and exit
The device will get a dhcp IP now and will be seen by the deviceInstaller

If this fails you can flash it's rom through the serial port with the deviceInstaller.

Links