Giter Site home page Giter Site logo

genisys's Introduction

Genisys Master I/O library
--------------------------
This library will use a Genisys home automation master as a bridge to send and
receive Dynalite OpCodes onto the DyNet RS485 bus.

The library requires an Aurdino with a standard Ethernet shield, integrated
or otherwise as long as it can be accessed using the default Arduino Ethernet
library.

I do not expect this library to be of much use directly to anyone unless you
also happen to have a Genisys master, which is a local product developed here
in Perth by Light Application in Balcatta.  However, it effectively only has
two functions of send and receive, which could be rewritten to use some other
bridge device.

What this library does do that may be of interest, is it'll calculate the
checksum for the 8th byte of the OpCode before sending it, and it'll validate
the received OpCode's checksum, before calling the receive function.

Initialisation
--------------
All items of in the initialisation are Genisys specific, and have nothing to do
with the DyNet network.  The Genisys master expects a hostname as well as IP
address information, so this is supplied here.  The IPs are also used for the
UDP send/recv.

Functions
---------
sendOpCode: Expects an 8 byte array that is the OpCode.  This is then built
into the expected UDP message for the Genisys after calculating the OpCode
checksum and then sent.

receiveOpCodes
--------------
A while loop that simply receives all awaiting UDP datagrams that have arrived
since the last time the function was called.  It'll pull out the 8 hex codes
that make up the OpCode and send it to the function, to which a pointer is
provided as the parameter.

genisys's People

Stargazers

Jordan avatar Xue Peidong avatar Aaron avatar

Watchers

James Cloos 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.