Skip to content

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

License

Notifications You must be signed in to change notification settings

jarkko-hautakorpi/arduhdlc-qt-gui-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published