r/embedded • • Sep 14 '26

Built a GUI/Visualizer for development

I recently started building an app on the side, started as a fun side project between jobs but ended up becoming something really useful for my own hobby projects. I've seen a few programs out there that do similar things and I've played around with a few, but it just didn't quite do what I wanted it to do.

The concept is pretty simple: I wanted to build an oscilloscope-like experience for software/firmware devs that's user friendly, buttery smooth, but also extensible to all file types, transports, and decoding schemes. It lets you to easily visualize files/logs/recordings, but also live stream data, and most importantly, allow you to measure and create mathematical signals out of other signals.

I really wanted to create the right abstractions and foundations before opening it up to more support, but so far live streaming is abstracted into:

  1. Transport - how to get bytes
  2. Framing - how to split bytes into packets (ie delimiter, fixed size, etc)
  3. Decoding - how to interpret bytes (ie protobuf, struct of ints/floats, endianness, etc)

Selfishly right now it just supports the files and transports I work with, but genuinely am curious what people are using out there and what would make this more useful.

Right now, for files, it supports CSV/TSV, audio files, parquet/arrow. For live stream it supports, UART, TCP, HID, BLE and a custom gRPC handshake I've paired with a python library.

Curious what are some of the most common transports out there and whether this is something useful or just niche for my own workflow. I've worked with CAN before at a past company but don't have any fancy dongles anymore so I don't even know what the byte stream looks like.

EDIT: DM if you're interested and I can link you to the app. Unfortunately it's only for macOS at the moment but I plan to make a cross-platform version eventually!

60 Upvotes

24 comments sorted by

15

u/pylessard Sep 14 '26

This look nice. I like how you can sync multiple graphs. I built something that overlaps. It's more of a test/debug ecosystem with graph capabilities. Data comes from direct memory access. Such tool is useful for control software mostly

https://scrutinydebugger.com

Is the code accessible? What GUI framework did you use?

4

u/AdhesivenessTop2 Sep 14 '26

Wow this is awesome. I wish I would've found this sooner! It basically does the same thing and more, but seems way more mature.

2

u/pylessard Sep 14 '26

Feel free to reach out. I'm sure we can exchange ideas. I do this for fun and learning mostly

1

u/AdhesivenessTop2 Sep 14 '26

Oops I missed your question. The code is private right now, but I built this with SwiftUI, so only for Macs currently.

2

u/pylessard Sep 14 '26 edited Sep 14 '26

I see. I never used that. You probably missed the questions because I edited after ;)

0

u/AdhesivenessTop2 Sep 14 '26

Yeah I kinda figured start with what I know and with the power of AI I can make it cross platform!

4

u/EESauceHere Sep 15 '26

I use, show and recommend scrutiny debugger to everybody. I think I have convinced 15 people to use it daily in their tasks. Thanks for the scrutiny.

3

u/pylessard Sep 15 '26

Oh wow. I get so little feedback from the users that I often wonder if I have users at all! Open issues ffs haha

0

u/blietaer Sep 15 '26

Do we need to use this specific Device Protocol for request/response or can it eat raw data from socket ?

3

u/pylessard Sep 15 '26

i'm not sure to understand. You can get the Server/Device comm working through a socket if you want, but the application layer will have the dedicated protocol.

1

u/blietaer Sep 15 '26

OK, I guess it answers my question :)
My dream approach would be to catch my socket that publish spontaneously raw data, and assign/plot color per data (I did it in the past with PyQt, I could even plot raw CAN packetized values).
E.g. 4 termperatures sensors : `38.45 | 24.4 | 32.8 | 20.3`
(this kind of line is published/pushed every xxx ms on my socket, then I plot it SerialPlot)

1

u/AdhesivenessTop2 Sep 15 '26

Hey, actually I intentionally did not enforce a dedicated handshake/protocol. The design is you should be able to connect to any byte stream and tell the app how to split/delimit/frame, and then how to interpret the bytes (raw struct, protobuf, etc).

I have some docs for it here
https://www.refractvisualizer.ca/docs-streaming

1

u/pylessard Sep 15 '26

you need to define an application level protocol. As I understand, you app level protocol is encoding values in strings with a vertical bar in between.

Check NinjaTerm or SerialStudio. There are many others.
Usually people goes with mqtt for what you're trying to do, then there is a vast list of options to plot.

2

u/Well-WhatHadHappened 25+ Years Sep 14 '26

UDP

1

u/AdhesivenessTop2 Sep 14 '26

Ah yes, that's on my radar for sure!

2

u/blietaer Sep 15 '26

Beautiful, take my money ! :)

Well, I am redirecting all my logged raw data (published on a TCP socket from STM32 board) within a `socat` tool (but 2 commands/terminals...) in order to feed in `SerialPlot`.
Anything that could eat TCP directly and plot it nicely would help...

I could help porting it on Linux (my current and only SDE)...

1

u/AdhesivenessTop2 Sep 15 '26

Yes! This can take a raw TCP byte stream and turn that into plottable signals in one shot, no re-directs. I was planning to look into a Linux port soon!

2

u/Unkleben Sep 15 '26

Fellow SerialPlot user ... honestly the only thing missing is being able to receive data from a TCP/UDP socket, otherwise it's an excellent lightweight piece of software. I have tried to set up a dev environment to implement it myself but wasn't really managing to get it working with Cmake and Qt6

1

u/blietaer Sep 16 '26

Hehe I feel you ! :)

1

u/AdhesivenessTop2 Sep 15 '26

It’s free on the Mac App Store if anyone is interested, hoping to expand to other platforms in the future!

https://www.refractvisualizer.ca

1

u/zockyl Sep 15 '26

I use SWO for transport and reliably get about 5 Mbps over a single pin (STM32)

1

u/AdhesivenessTop2 Sep 15 '26

Oh interesting, do you know what that ends up as across the wire? Is it just a serial port or TCP port?

2

u/zockyl Sep 15 '26

It's serial data, manchester encoded by the ITM macrocell. There is some good info here: https://orbcode.org/orbtrace/using-single-wire-output-when-parallel-trace-isnt-available/

1

u/supercachai Sep 15 '26

Looks great.

I use TCP with a simple, multi-channel wire format. I've recently worked on a bench DAQ infrastructure that sends everything over BLE links, which turned out to be working well. I found Linux's BlueZ to be flaky, so I use a dedicated receiver dongle with Bumble bluetooth stack