UPnP gateway; first working sample

The UPnP gateway now gets to a point that might even justify a pre-release, finally! It can be started from a batch file and configured to run one or more drivers. Capable of publishing dozens of UPnP devices simultaneously (be it as sub-devices)

A driver template is included so new drivers can quickly be setup. A fully functional xplrfx driver is included as well as 3 demo drivers. All c code is now compiled for distribution, no more development/debug libraries required.

Get the download and extract the zip file in a new folder. From there simply run the batch file LuaUPnP.bat to start the gateway. You’ll get instructions on command line parameters and usage.

To start the samples try; LuaUPnP –debug=debug demo1 demo2 demo3
This will start the gateway with verbose logging and the three demo drivers loaded (located in “lua/upnp/drivers“). The demodrivers are identical, but give a good idea of what you get when loading multiple drivers.

Once started checkout through devicespy the gateway device with;

  1. its own service with a set of methods for controlling (restarting/stopping) the gateway
  2. each driver as a separate sub device (demo 1/2/3)
  3. within each driver more sub devices, being the actual devices published by that
    specific driver

 

upnpgateway-devicespy-shot

Device Spy showing the gateway with demo 1/2/3 drivers

 

To create your own driver, check out the directory “lua/upnp/drivers which contains the fully functional xplrfx driver, the 3 demo drivers and a template for creating your own.

Through the xplrfx driver (and an RFXLAN device with xplrfx firmware) the gateway is now functional for the following homeautomation hardware;

  • ANSLUT
  • ByeByeStandBy
  • Chacon
  • DI.O
  • Digimax
  • DomiaLite
  • Düwi
  • ELRO AB400
  • ELRO AB600
  • Flamingo
  • Harrison curtain
  • HomeEasy
  • HomeEasy (including HE105)
  • HomeEasy EU
  • Ikea Koppla
  • Intertechno
  • Intertek/Unitec
  • KD101
  • KlikAanKlikUit
  • NEXA
  • Waveman
  • X10 lighting

And the fun part is that those devices that support preset-based dimming (homeeasy for example has levels 0 – 15) now also support ramping (load from 0% to 100% over 30 minutes for example) simply because that functionality has been integrated as standard feature in the gateway, indepedent of the underlying hardware.

Give it a try and let me know what you think. Source code is on github, as is the documentation.

Here’s the download (downloaded 422 times)

Be Sociable, Share!

Leave a Reply

Your email address will not be published. Required fields are marked *

 

Subscribe without commenting