Modifying relay control with xbee

Xbee projects like the adapter, xbee tutorials, tweetawatt/wattcher, etc. purchased at Adafruit

Moderators: adafruit_support_bill, adafruit

Modifying relay control with xbee

Postby ddn » 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

Postby ddn » 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

Postby adafruit_support_rick » 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: 2907
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: Modifying relay control with xbee

Postby ddn » 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



Return to XBee products from Adafruit

Who is online

Users browsing this forum: No registered users and 1 guest

Stuff to buy from the Adafruit store and links to product documentation!


New Products [108]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
Android[6]
 
BeagleBone[24]
 
XBee[10]
More Dev Boards[31]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[34]
LCDs & Displays[48]
Components & Parts[70]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[111]
 
Wireless[14]
Cables[62]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]