Giter VIP home page Giter VIP logo

basic-aps-plugin's Introduction

Basic APS Plugin

This example plugin demonstrates how to use the deCONZ C++ API to send and receive ZigBee APS frames.

The plugin runs a simple state machine which continuously searches the network for ZigBee Light Link devices (profile-id 0xC05E) wich provide a on/off cluster (cluster-id 0x0006). This is done by broadcasting a ZigBee ZDP match descriptor request.

If any responses are received they will be printed in the console.

Building

Currently the compilation of the plugin is only supported within the Raspbian distribution.

Install deCONZ and development package
  1. Download deCONZ package

wget http://www.dresden-elektronik.de/rpi/deconz/deconz-latest.deb

  1. Install deCONZ package

sudo dpkg -i deconz-latest.deb

  1. Download deCONZ development package

wget http://www.dresden-elektronik.de/rpi/deconz-dev/deconz-dev-latest.deb

  1. Install deCONZ development package

sudo dpkg -i deconz-dev-latest.deb

  1. Install Qt4 development packages

sudo apt-get install qt4-qmake libqt4-dev

Get and compile the plugin
  1. Checkout the repository

git clone https://github.com/dresden-elektronik/basic-aps-plugin.git

  1. Compile the plugin

cd basic-aps-plugin

qmake-qt4 && make

  1. Install the plugin

sudo cp libbasic_aps_plugin.so /usr/share/deCONZ/plugins

Running

Start deCONZ from commandline with enabled debug output.

deCONZ --dbg-info=1

Console Output

send match descriptor request (id: 181)
....
received match descriptor response (id: 181) from 0x00212effff0059c5
         match descriptor endpoint: 0x0A

License

The plugin is available as open source and licensed under the BSD (3-Clause) license.

basic-aps-plugin's People

Contributors

manup avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.