i am using a macbook pro and i got the xbee explorer, i normally use xbee with a funnel but i know it is possible to get ride of the fio and use the xbee only, to talk to an other xbee plug on a xbee explorer for simple sensor reading. I just wonder how to do it. i didn't found so much information or atleast some easy info to read for me on how to do it on the web.
hey, on mac , i have been using moltosenso to configure the xbees.
Don't remember exactly what was the settings i ended up using, but if you do a search on that forum, you will find a link + patch on how to do it.
The basis is to really understand the bytes the xbee are sending, the easiest is to read the doc from digi. it will take you some time to get into it, but trust me it will save you lot of time at the end.
I've done this for a project. All setup done within Max:
The above patch sets a single pair of Xbees. One collects data from the built in ADCs and the other receives and sends to the computer. Please note the changes in baudrate. By default Xbees are 9600kbs I change this to 115200 for faster transmission. So when I need to make changes to my boards I first need to connect using the 15200 baud so that I can restore to factory settings and then reprogram as needed.
Patcher to read incoming data once boards have been configured:
The first 10 digits from the [unpack] object are the message header which I wasn't using. If you enable more ADC channels the values for the sensors you will need to add a pair of integers to the [unpack] object. Each sensor will have MSB and LSB which you can then parse repeating the simple math with the [* 256] and [+ ] objects.
I thought of an interesting workaround to this problem by just sending the same message to all the XBees and then just connecting the correct pins. So basically configuring 4 I/O pins to being digital, and connecting a single LED to a different pin on each receiving XBee. That way I can just send 1-on to all the XBees and only one will respond.
That seems like it should work.
One thing I'm still unsure about is the actual serial messages to send to the receiving XBee to turn a digital pin on/off. The guide posted above (http://examples.digi.com/lights-motors-more/802-15-4-digital-output-with-an-led/5/) is super handy, but other than explaining how to configure it, doesn't really say what messages it receives. Checking out the 'input' tutorials, the same problem appears to be the case. It only shows the configuration settings, but not the messages that would be transmitted.