There is no USPS pickup on Monday Feb 15th, 2016 because of President's Day. USPS orders placed after 11am EST Fri February 12th will go out Tuesday February 16. UPS orders will ship as normal.

Modifying relay control with xbee
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Modifying relay control with xbee

by ddn on Tue Jun 05, 2012 5: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 5:03 pm

Re: Modifying relay control with xbee

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

can you post your code?

adafruit_support_rick
 
Posts: 24920
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: Modifying relay control with xbee

by ddn on Tue Jun 05, 2012 8: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 5:03 pm

Re: Modifying relay control with xbee

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

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

adafruit_support_rick
 
Posts: 24920
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: Modifying relay control with xbee

by ddn on Tue Jun 05, 2012 11: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 5:03 pm

Re: Modifying relay control with xbee

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

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

adafruit_support_bill
 
Posts: 45787
Joined: Sat Feb 07, 2009 10:11 am

Please be positive and constructive with your questions and comments.