GithubHelp home page GithubHelp logo

filipecalasans / arduhdlc-qt-gui-example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jarkko-hautakorpi/arduhdlc-qt-gui-example

0.0 2.0 0.0 616 KB

Example project with Qt GUI controlling servo on Arduino UNO, over HDLC protocol.

License: GNU General Public License v2.0

C++ 81.76% Arduino 14.50% C 2.71% QMake 1.03%

arduhdlc-qt-gui-example's Introduction

Screenshot

Qt GUI to Arduino Arduhdlc Example Project

Example project with Qt GUI Application controlling servo on Arduino UNO, over HDLC protocol. HDLC protocol is used to wrap all communication into HDLC frames. On both ends, on the Qt GUI and on the Arduino, valid HDLC frames are passed to command router or dispatcher.

Command router/dispatcher

Application defined "protocol" or frame structure is, that the first byte is command byte. Dispatcher then extracts the first byte of the frame, which in this program example is used to hold the command, and calls the right command, passing the frame to it as a reference. Command function then extracts the rest of the data from the frame, if it requires it.

Qt HDLC Singleton Class

Arduhdlc library can not be conveniently used in Qt, so it is converted to a singleton class. All function pointers are replaced with Qt's signals and slots. Any actions can then easily be connected to HDLC Class by connecting/disconnecting signals. User must implement the same receive and valid frame handler functions, than on the Arduino side when using Arduhdlc library.

Links to related resources

Simple Servo Control tutorial

HDLC Protocol in Wikipedia

Open Source HDLC (OSHDLC)

Piconomic FW Library, with HDLC encapsulation layer

Dust SmartMeshSDK C Library

C++ Qt 03 - Intro to GUI programming

Qt & Arduino - Making an RGB LED Controller - Intro

arduhdlc-qt-gui-example's People

Contributors

jarkko-hautakorpi avatar

Watchers

 avatar  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.