Depends on the mode of the XBee on the processor. In API command mode all the pins on a remote XBee are read and sent. The API command frame needs to be built with the proper format and then the returned frame needs to be parsed to extract the data payload.
Check the documents for the 1S or IS AT command and the API command frame formats.
Another way is setting up the remote XBee to periodically send the pin levels.
Before you buy any XBee modules determine what you really need them to do. There are two hardware versions, Series 1 & 2, and each have a couple of different firmware protocols available.
I started a thread in this forum titled “Better XBee documents”. In there are links to simplified documents about the various XBees. These should be more helpful than the standard Digi Int docs.
Of course, you can mate the XBee to a $1 microprocessor that would do I/O and send that via serial data to the XBee for retranmission wirelessly as a packet. Or a packet of 100 datums.
Thanks for the replies. I had stumbled upon the “Better XBee documents” yesterday so I have an idea of what I’m getting into.
Unfortunately, I believe that I will need the series 2. Eventually I would like to relay an xbee signal over the crest of a hill or along a curved right-of-way through the forest. Is this a true assumption? Which is easier, ZigBee Mesh or DigiMesh?
I was also planning to start with the Funnel (http://funnel.cc/Hardware/FIO). It seems to be geared towards a field install. Might need a slight mod to hook up to a solar panel.
Just a matter of getting some hardware and tyring it out!
robins:
Thanks for the replies. I had stumbled upon the “Better XBee documents” yesterday so I have an idea of what I’m getting into.
Unfortunately, I believe that I will need the series 2. Eventually I would like to relay an xbee signal over the crest of a hill or along a curved right-of-way through the forest. Is this a true assumption? Which is easier, ZigBee Mesh or DigiMesh?
I was also planning to start with the Funnel (http://funnel.cc/Hardware/FIO). It seems to be geared towards a field install. Might need a slight mod to hook up to a solar panel.
Just a matter of getting some hardware and tyring it out!
Thanks
Robin S.
If you have just one “repeater” to cope with, I’d not use a mesh. I either put in a microprocessor you program to do store and forward, or I’d hook two XBees back to back in serial port extension mode.
A mesh is quite complicated.
If you need a mesh, and don’t care about the quasi-standard ZigBee, I’d use DigiMesh and battery powered router mode.
Or use 900MHz though more costly, and with the right antennas, might get over a not too severe hilltop.
Due to my planed layout, I probably would only need one “repeater”. Is there any preference for Series 1 or 2 if using a micro to store and forward data or for two Xbees back to back in serial port extension mode?
Could you also comment on RPSMA vs U.FL Connection? I did notice that series 1 don’t come with the RPSMA connection. Is the U.FL Connection easier to seal up on an outdoor enclosure? How about a vertical PVC pipe with a drilled hole in the cap for the RPSMA to stick out. Then attach an antenna on top. For the U.FL it might be best to mount on the side of the pipe.
I’m a Series 1 fan because Series 2 is tied to Ember and must use ZigBee.
Ant. connectors: I use chip antennas or U.FL and a pigtail to adapt from that to Type N or whatever. But SMA is fine. Lots of RP-SMA antennas for 2.4GHz. Just a convenience factor.