2020-12-24 14:13:44 -06:00
2020-10-18 10:32:13 -05:00
2020-11-27 00:34:25 -06:00
2020-11-26 12:41:14 -06:00
2020-10-18 06:50:57 -05:00
2020-10-18 06:50:26 -05:00
2020-10-18 06:50:57 -05:00
2020-10-18 10:20:40 -05:00
2020-10-18 06:50:26 -05:00
2020-11-27 00:38:14 -06:00
2020-11-27 00:34:25 -06:00

Serial Studio

Build Status

Serial Studio is a multi-platform, multi-purpose serial data visualization program. The goal of this project is to allow embedded developers & makers to easily visualize, present & analyze the data generated by their projects and devices, without the need of writing specialized computer software for each project.

The need for this project arose during the development of the Ground Station Software for several CanSat-based competitions in which I participate. It's simply not sustainable to develop and maintain different GSS programs for each competition & project. The smart solution is to have one common Ground Station software and let each CanSat define how the data is presented to the end user by using an extensible communication protocol.

Furthermore, this approach can be extended to almost any type of project that involves some kind of data acquisition & measurement.

Screenshot

Communication protocol

The communication protocol is implemented through a JSON document with the following structure:

  • t: project title (string, obligatory)
  • g: groups (array)
    • t: group title (string, obligatory)
    • w: Widget type (string; optional - can be:)
      • map: create a widget showing a location on a map
      • bar: vertical progress bar (with max & min values)
      • gauge: semi-circular gauge (with max & min values)
      • gyro: gyroscope indicator (with x, y & z values)
      • accelerometer: accelerometer indicator (with x, y, & z values)
      • tank: vertical tank indicator (with max & min values)
    • d: group datasets (array)
      • t: dataset title (string, optional)
      • v: dataset value (variant, obligatory)
      • u: dataset unit (string, optional)
      • g: dataset graph (boolean, optional)
      • w: widget type (string, depends group widget type, posible values are:)
        • For gyro & accelerometer widgets:
          • x: value for X axis
          • y: value for Y axis
          • z: value for Z axis
        • For map widget:
          • lat: latitude
          • lon: longitude
        • For bar, tank & gauge widgets:
          • max: maximum value
          • min: minimum value
          • value: current value

This information is processed by Serial Studio, which builds the user interface according to the information contained in each frame. This information is also used to generate a CSV file with all the readings received from the serial device, the CSV file can be used for analysis and data-processing within MATLAB.

NOTE: widget types can be repeated across different groups without any problem.

Build instructions

Requirements

The only requirement to compile the application is to have Qt installed in your system. The desktop application will compile with Qt 5.15 or greater.

Cloning this repository

This repository makes use of git submodule. In order to clone it, you have two options:

One-liner:

git clone --recursive https://github.com/Serial-Studio/Serial-Studio

Normal procedure:

git clone https://github.com/Serial-Studio/Serial-Studio
cd Serial-Studio
git submodule init
git submodule update
Compiling the application

Once you have Qt installed, open Serial-Studio.pro in Qt Creator and click the "Run" button.

Alternatively, you can also use the following commands:

qmake
make -j4

Licence

This project is released under the MIT license, for more information, check the LICENSE file.

Languages
C 71.4%
C++ 23.8%
Python 2.3%
QML 1.7%
CMake 0.3%
Other 0.3%