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.
Modifying relay control with xbee
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Modifying relay control with xbee
can you post your code?
-
- Posts: 3
- Joined: Tue Jun 05, 2012 5:03 pm
Re: Modifying relay control with xbee
I've just been using X-CTU to send API command requests. ie:driverblock wrote:can you post your code?
7E 00 10 17 01 00 00 00 00 00 00 FF FF FF FE 00 44 32 04 72
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Modifying relay control with xbee
Oh, OK. So you still want to control the thing from Windows, not a microcontroller.
-
- Posts: 3
- Joined: Tue Jun 05, 2012 5:03 pm
Re: Modifying relay control with xbee
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.
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: Modifying relay control with xbee
Rob Faludi has a Processing API for XBees. You might want to check out his book too.
Please be positive and constructive with your questions and comments.