Setting Up the XBee Internet Gateway (XIG)

PrintFriendly and PDF

The XBee Internet Gateway (“XIG”) is an application written for Digi’s ConnectPort series of XBee-to-IP gateways. The XBee Internet Gateway gives any device the ability to connect seamlessly to the Internet by mirroring the interactions humans have with web browsers. Devices with an XBee radio can send a web URL to the XIG and receive back the contents of that web page. All the tricky technical aspects of web connections are all handled for you behind the scenes.

This gateway gives your prototype or device a simple yet completely flexible pathway to any web service that you can imagine, including posting sensor values, scraping Facebook or commanding your robotic kitten army.

XIG is an open-source team effort lead by Internet of Things enthusiasts Rob Faludi, Jordan Husney and Ted Hayes with valuable support from a community of commercial and educational users.

Installation

To install the XIG, ensure your Digi ConnectPort X gateway is powered on and configured to access the Internet (by following Digi’s ConnectPort X Getting Started Guide or Rob Faludi’s book Building Wireless Sensor Networks). Next you must transfer the XIG application to the gateway and enable it to auto-start. This may be done through the Device Cloud Management Portal. Here’s how:

  • Open a web-browser and navigate to https://myaccount.etherios.com
  • Enter in your necessary information to create your new account
  • Log in to your new Device Cloud account and then click on the Device Manager tab on the top row
  • Ensure your Digi ConnectPort X gateway is powered on and connected to the same network as your computer
  • On the Devices page click the “Add Devices” button. Your gateway will be discovered by the Device Cloud portal site. Double click on your gateway device to select it. Its configuration UI will appear
  • Select “Python” from the configuration interface
  • Click the upload button from the “Python Files” toolbar, use “Browse” to select “xig.py”, “_xig.zip” and xig_config.py from the XIG binary release and click “OK” to upload the files
  • Under “Auto-start Settings” add “xig.py” to one of the “Auto-start Command Line” entries and check the corresponding auto-start “Enable” check boxes.
  • Click the Save button. Your new settings will be written to the gateway.
  • Under the “On Program Exit” scroll down list, click “Reboot device”
  • Click the “Refresh” button at the bottom of the page

Comments are closed.