Modifying relay control with xbee

by ddn on Tue Jun 05, 2012 4:05 pm

A couple years ago I built the relay control xbee setup described here http://www.adafruit.com/blog/2009/04/21 ... ol-relays/

Now I'd like to modify it so that I can toggle the state of the remote relay via USB/serial instead of requiring a hardware button press (which I was using a parallel port for before).

But I've banged my head for hours and can't figure out how to either send a remote command, or to get the state of the local USB xbee to pass to the remote.

I'd appreciate any guidance.
ddn
 
Posts: 3
Joined: Tue Jun 05, 2012 4:03 pm

Re: Modifying relay control with xbee

by adafruit_support_rick on Tue Jun 05, 2012 6:11 pm

can you post your code?
User avatar
adafruit_support_rick
 
Posts: 8585
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: Modifying relay control with xbee

by ddn on Tue Jun 05, 2012 7:04 pm

driverblock wrote:can you post your code?


I've just been using X-CTU to send API command requests. ie:

7E 00 10 17 01 00 00 00 00 00 00 FF FF FF FE 00 44 32 04 72
ddn
 
Posts: 3
Joined: Tue Jun 05, 2012 4:03 pm

Re: Modifying relay control with xbee

by adafruit_support_rick on Tue Jun 05, 2012 10:23 pm

Oh, OK. So you still want to control the thing from Windows, not a microcontroller.
User avatar
adafruit_support_rick
 
Posts: 8585
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: Modifying relay control with xbee

by ddn on Tue Jun 05, 2012 10:26 pm

Actually, from a Linux machine. But I reasoned that once I figured out how they needed to be configured and what the right commands to send were, I could use Python or C to accomplish the same thing.
ddn
 
Posts: 3
Joined: Tue Jun 05, 2012 4:03 pm

Re: Modifying relay control with xbee

by adafruit_support_bill on Wed Jun 06, 2012 5:12 am

Rob Faludi has a Processing API for XBees. You might want to check out his book too.
User avatar
adafruit_support_bill
 
Posts: 25556
Joined: Sat Feb 07, 2009 9:11 am