Black Lives Matter - Action and Equality. ... Adafruit is open and shipping.
0

XPort on/off control
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

XPort on/off control

by wirelessmike on Fri Aug 08, 2008 4:24 pm

Hi,
I would like to turn on/off an LED remotely using the ethernet shield.
I saw the color picker example but I was hoping for an easier example to follow.
Can someone point me in the right direction?

Thanks,
Mike : )
wirelessmike
 
Posts: 1
Joined: Fri Aug 08, 2008 4:15 pm

by adafruit on Sat Aug 09, 2008 1:39 pm

the color picker is pretty good to start with, just take out all the javascript!
also look around this forum, people have posted a couple simple xport control scripts

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

by haxor12 on Mon Aug 11, 2008 11:19 am

I'm having this same issue. Your examples are far too complex. It would be nice if you gave us something simple such as, well, blinking an LED.

After a brief search of the forums, I only found this post, which doesn't help at all. All the other posts are from people having difficulties doing anything with the xport.
haxor12
 
Posts: 7
Joined: Mon Aug 11, 2008 11:16 am

by adafruit on Mon Aug 11, 2008 2:28 pm

heh most people complain that the examples are never complete enough. i have another demo ill post soon

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

by haxor12 on Mon Aug 11, 2008 2:48 pm

Also, directions on flashing the xport would be nice too. I had to go through the creation/uploading process of .cob files by stumbling upon this tutorial:

http://ltxfaq.custhelp.com/cgi-bin/ltxf ... _topview=1

Also, I found something about flashing an LED, but it's using a different ethernet shield that doesn't use the xport:

http://www.nuelectronics.com/estore/ind ... roject_eth
haxor12
 
Posts: 7
Joined: Mon Aug 11, 2008 11:16 am

by adafruit on Mon Aug 11, 2008 5:29 pm

tom igoe has information on flashing xports
ive never done it myself

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

by haxor12 on Tue Aug 12, 2008 12:20 pm

WHAT?!? you never flashed it?? How did you get your webpage to display and get rid of the generic Lantronix startup message? I'm appearently missing something in the middle of getting the arduino and xport to communicate...Are you not using the built in webserver on the xport? If so, why not and how are you doing it?
haxor12
 
Posts: 7
Joined: Mon Aug 11, 2008 11:16 am

by haxor12 on Tue Aug 12, 2008 2:17 pm

oh, you totally bypassed the built in webserver didn't you...Makes more sense now.
haxor12
 
Posts: 7
Joined: Mon Aug 11, 2008 11:16 am

by haxor12 on Wed Aug 13, 2008 12:46 pm

Finally I found some simple code here:

http://www.hbci.com/~lobos/Web_Interface_LED.pde

BTW, be sure to change Xport's port 10001 to port 00080.
haxor12
 
Posts: 7
Joined: Mon Aug 11, 2008 11:16 am

by adafruit on Wed Aug 13, 2008 6:58 pm

<whew> thats one less thing ive got to do :)

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

by haxor12 on Fri Aug 15, 2008 12:39 pm

Quick question Ladyada,

why did you change the TX, RX, etc. pins in your code?

Code: Select all | TOGGLE FULL SIZE
#define XPORT_RX        2
#define XPORT_TX        3
#define XPORT_RESET     4
#define XPORT_CTS       6


Why not use the actual TX RX pins of the atmel (pins 0 and 1 )?

Thanks.
haxor12
 
Posts: 7
Joined: Mon Aug 11, 2008 11:16 am

by haxor12 on Fri Aug 15, 2008 3:56 pm

Nevermind, this question was answered here:

http://www.arduino.cc/cgi-bin/yabb2/YaB ... 212309/0#0
haxor12
 
Posts: 7
Joined: Mon Aug 11, 2008 11:16 am

Please be positive and constructive with your questions and comments.