GithubHelp home page GithubHelp logo

gst-serkan / knx-iot-stack Goto Github PK

View Code? Open in Web Editor NEW

This project forked from knx-iot/knx-iot-stack

0.0 0.0 0.0 101.66 MB

KNX-IOT open source stack

License: Apache License 2.0

Shell 0.32% C++ 12.14% Python 0.64% C 85.83% Makefile 0.29% CMake 0.79%

knx-iot-stack's Introduction

Introduction

KNX IoT Point API stack is an open-source, reference implementation of the KNX IoT standard for the Internet of Things (IoT). Specifically, the stack realizes all the functionalities of the KNX IoT Point API specification.

Architecture

The responsibilities between the stack and an actual KNX IoT Point API device implementation is depicted in the following diagram:

application vs stack

The project was created to bring together the open-source community to accelerate the development of the KNX IoT Point API devices and services required to connect the growing number of IoT devices. The project offers device vendors and application developers royalty-free access under the Apache 2.0 license.

Stack features

  • OS agnostic: The KNX IoT Point API device stack and modules work cross-platform (pure C code) and execute in an event-driven style.

The stack interacts with lower level OS/hardware platform-specific functionality through a set of abstract interfaces. This decoupling of standards related functionality from platform adaptation code promotes ease of long-term maintenance and evolution of the stack through successive releases.

PortingLayer

  • Porting layer: The platform abstraction is a set of generically defined interfaces which elicit a specific contract from implementations.

The stack utilizes these interfaces to interact with the underlying OS/platform. The simplicity and boundedness of these interface definitions allow them to be rapidly implemented on any chosen OS/target. Such an implementation constitutes a "port".

Project directory structure

api/*
contains the implementations of client/server APIs, the resources, utility and helper functions to encode/decode CBOR to/from data points (function blocks), module for encoding and interpreting endpoints, and handlers for the discovery, device and application resources.
messaging/coap/*
contains a tailored CoAP implementation.
security/*
contains resource handlers that implement the security model, using OSCORE.
utils/*
contains a few primitive building blocks used internally by the core framework.
deps/*
contains external project dependencies.
deps/tinycbor/*
contains the tinyCBOR sources.
deps/mbedtls/*
contains the mbedTLS sources.
include/*
contains all common headers.
include/oc_api.h
contains client/server APIs.
include/oc_rep.h
contains helper functions to encode/decode to/from cbor
include/oc_helpers.h
contains utility functions for allocating strings and arrays either dynamically from the heap or from pre-allocated memory pools.
port/*.h
collectively represents the platform abstraction.
port/<OS>/*

contains adaptations for each OS. Platforms:

  • Linux storage folder is created by the make system
  • Windows storage folder is automatic created by the make system. as extra also the stack creates the storage folder. This allows copying of the executables to other folders without having to know which folder to create.
apps/*
contains sample applications.

External Sample Applications

The external sample applications are using CMAKE to pull in the KNX IoT Point API stack

Examples are:

Build instructions

Grab source and dependencies from GitHub using:

git clone --recursive https://github.com/KNX-IOT/KNX-IOT-STACK.git

or use GitLab:

git clone --recursive https://gitlab.knx.org/shared-projects/knx-iot-point-api-public-stack.git

Please check here for build instructions:

Send Feedback

Bugs Issues

knx-iot-stack's People

Contributors

wavdbeek avatar kmaloor avatar tiniuclx avatar cascodabot avatar georgen117 avatar ljsachs avatar jkralik avatar ceolin avatar twonky-andreas avatar elie-elkhoury avatar rzr avatar skyler84 avatar looksgoood avatar danielius1922 avatar simet avatar iotj avatar marktrayer avatar rwells1703 avatar github-actions[bot] avatar ramijung avatar o-andrieiev avatar frankzrs avatar webispy avatar rsbells avatar antumushfiq avatar mattiantonini avatar cmarcelo avatar iuriimet avatar jimmy-huang avatar lubo-kistler 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.