1 Reply Latest reply on Mar 29, 2014 12:21 PM by jimmydsp

    How do you communicate with a computer and an Xbee?

    Conor_Foy

      Hi all,

       

      My current project is to use an Xbee, a Galileo and a computer. I want to set up a system where the Galileo receives data from the Xbee, processes it and sends it to the computer.

       

      I have tried the standard Xbee shield but but the shield only allows communication between the Galileo and the Xbee or the Galileo and the computer.

      I have also tried the Seeedstudio Xbee shield but the Software Serial Library isn't supported by the Galileo.

       

      I had the idea that it might be possible to use a USB Xbee adapter (something like this http://www.adafruit.com/products/247 )and use the USB host to communicate with the Xbee but I don't know how feasible that would be.

       

      Has anyone encountered this problem before and how would you solve it?

        • 1. Re: How do you communicate with a computer and an Xbee?
          jimmydsp

          I have built a similar project on a Beagleboard xM running Ubuntu.  This could equally be a Galileo board running Linux.

          I receive data from several Digi Xbee modules mounted on various Arduino+shields and then transmit the information up to Thingspeak.

          I use a digi XStick  plugged into the Beagleboard.  I talk to the Digi X-stick using Ruby, and just treat it as a serial device.

          The XStick is equivalent to the uartSbee from Seeed.

          UartSBee V4 - Wiki

          You don't actually need an Arduino to drive the XBee devices.  You can use an adapter such as the Seeed or Adafruit one.

          For multiple Zigbee products you need to use api mode.

           

          You do not have to run Linux on the Galileo board - there is an excellent xbee library that can be found on the Arduino website, but not sure if it has been ported to the Galileo.

          xbee-arduino - Arduino library for communicating with XBees in API mode - Google Project Hosting

          If you know what you want to do, then you don't need to to code every function.  Just pick what you want to do.  In my experience, the main effort is setting up the data correctly... the X-CTU utility is great here to check that things work.

           

          A really good book for this is "Building Wireless Sensor Networks" by Faludi (O'Reilly).

          There is also "The Hands on XBee LAB Manual" , this has a useful spreadsheet attached to it for setting up the XBee data stream which you can download without having to buy the book, I think.

           

          Hope this helps, and I have understood what you are trying to do.