Coder Social home page Coder Social logo

kanosdk's Introduction

Kano Community SDK (Proof of Concept)

Summary

This is a proof of concept using cross platform server/client architecture for bidirectional serial communication between Kano Kit(s) and Client connection.

I chose Protocol Buffers for serialising data for its platform & language-neutral mechanism, which means 1 definition file, user can generate their own server/client.

I also chose Go to write the sample server & client for its portability, you can simply generate a client in your preferred language and communicate to my prebuilt server. Of course you can simply run both prebuilt server & client and play around with them, no compilation required.

Linux, Darwin (MacOS) and Windows are prebuilt and stored at the /bin folder.

Example Usage

Just run the server & client with your host platform under bin folder, the server and client should run on separate processes.

Server accepts environment variable for running "port" (default "55555"); Client accepts environment vairable for connecting "address" for server (default "localhost:55555").

To list the available devices, look at either:

Linux/Darwin: dmesg |grep tty, or ls -al /dev/tty.*; Windows: mode

Input your device serial address, and send data to gRPC server to communicate between serial and your server+client in bidirectional manner.

TODO

Plenty, like full implementation of device protocols, communication message format / device set-mode, helper functions to list connected devices etc., testing and more robust definitions and more samples in different programming languages.

Contribution welcome, but not for this repository, please submit your issues/ideas/feature requests to Kano Community SDK.

kanosdk's People

Contributors

anzellai avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

dolanor-galaxy

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.