Modifying relay control with xbee

XBee projects like the adapter, xBee tutorials, tweetawatt/wattcher, etc. from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
ddn
 
Posts: 3
Joined: Tue Jun 05, 2012 5:03 pm

Modifying relay control with xbee

Post by ddn »

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.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Modifying relay control with xbee

Post by adafruit_support_rick »

can you post your code?

ddn
 
Posts: 3
Joined: Tue Jun 05, 2012 5:03 pm

Re: Modifying relay control with xbee

Post by ddn »

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

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Modifying relay control with xbee

Post by adafruit_support_rick »

Oh, OK. So you still want to control the thing from Windows, not a microcontroller.

ddn
 
Posts: 3
Joined: Tue Jun 05, 2012 5:03 pm

Re: Modifying relay control with xbee

Post by ddn »

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.

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Modifying relay control with xbee

Post by adafruit_support_bill »

Rob Faludi has a Processing API for XBees. You might want to check out his book too.

Locked
Please be positive and constructive with your questions and comments.

Return to “XBee products (discontinued)”