update @ 2026/01/29
-
a simple vibe coding COM port GUI ( python , MFC )
-
GUI tool location :
MFC
\native_mfc\build\cmake\Release\simple_com_chart_gui_mfc.exe
\native_mfc\build\vs\Release\simple_com_chart_gui_mfc.exe
PYTHON
\main.pyw
-
function
-
COM port baud rate adjust
-
button Overlay :
Toggles whether channels are drawn as an overlay;
updates the plot immediately (or just redraws the overlay when in Snapshot mode).
- button Snapshot :
Freezes/unfreezes live plotting;
when ON the plot stops updating, when OFF it resumes live data and refreshes the view.
- button Fit :
Auto-fits the view to the currently enabled channels.
- button Refresh :
Clears current samples and resets the plot display;
updates the status counts (does not disconnect).
-
-
MFC GUI support data format :
MFC GUI display ,
- Python GUI support data format :
Python GUI display ,
This tool visualizes real-time MCU log data via UART / COM port. The MCU firmware must output logs in a specific text format for this tool to correctly decode and plot channel values.
Each log line must be a single line, ending with newline (\r\n).
key:value,key:value,...
Example:
state:5,CHG:4179mv,T1:2296mv,T2:1589mv,Q6:2111mv,Q2/Q3:21mv
- Fields are separated by comma
, - Key and value are separated by colon
: - Units are optional but recommended (e.g.
mv) - Spaces are ignored
- Order of fields does not matter
- Unknown keys are ignored
| Key | Description |
|---|---|
| state | System state (integer) |
| CHG | Charger voltage (mV) |
| T1 | Battery voltage T1 (mV) |
| T2 | Battery voltage T2 (mV) |
| Q6 | MOSFET Q6 voltage (mV) |
| Q2/Q3 | Sense voltage (mV) |
printf(
"state:%d,CHG:%dmv,T1:%dmv,T2:%dmv,Q6:%dmv,Q2/Q3:%dmv\r\n",
state, chg_mv, t1_mv, t2_mv, q6_mv, q23_mv
);







