# cdbus_gui **Repository Path**: hfx1972/cdbus_gui ## Basic Information - **Project Name**: cdbus_gui - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-09-14 - **Last Updated**: 2026-11-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README CDBUS GUI Tool ======================================= CDBUS GUI is an open-source, cross-platform serial debugging tool supporting register read/write, waveform plotting, log printing, IAP upgrades, and more. #### Download: `git clone --recursive https://github.com/dukelec/cdbus_gui` #### Dependence: Python version >= 3.8 `pip3 install json5 websockets pyserial u-msgpack-python aiohttp IntelHex` #### Usage: Run `main.py`, then open the following URL in your web browser: http://localhost:8910 For Windows users without Python, `tools/build_win.sh` (run on Linux) makes `dist/cdbus_gui--win64.zip`: the embeddable Python with the dependencies and this tool. Unzip it anywhere and run `cdbus_gui.bat` (`cdbus_gui_udp.bat` for `main_udp.py`), it opens the page in the browser by itself. Windows 10 or later, x64. Every page carries a top bar with the tool version and a language picker (Auto follows the browser, otherwise English / Simplified Chinese / Traditional Chinese, the choice is remembered per browser). Hovering the version shows the full asset version, the same `v3.0-` that `main.py` prints at startup and that every own css / js url is tagged with, so an updated front end always reaches the browser: the hash changes, the urls change, and the cached files are bypassed. Bump `VERSION` in `html/common.js` for a release; the hash part follows the files on its own, and it is rechecked per request, so an edit under `html/` takes effect on the next reload without a restart. The underlying protocol for serial port is CDBUS, which uses the following frame format: `src, dst, len, [payload], crc_l, crc_h` Each frame includes a 3-byte header, a variable-length payload, and a 2-byte CRC (identical to Modbus CRC). For more information on the CDBUS protocol, please refer to: - https://cdbus.org The payload is encoded using the CDNET protocol. For detailed information, please refer to: - https://github.com/dukelec/cdnet - https://github.com/dukelec/cdnet/wiki/CDNET-Intro-and-Demo ### Index Page - "Serial": The first field accepts a port name or matching string (e.g., `ACM0`, `Bridge`, `2E3C:5740`), with wildcard support. The second field is the baud rate, supporting arbitrary values. - "Available": Lists all serial ports on the computer. - "Devices": Quickly open the debug page for each device (list expands automatically). - "Logs": Aggregates logs from all devices. (Pressing `Enter` inserts a blank line; Holding `Alt` or `Ctrl + Alt` allows block selection.) - "Record": `Start` records every frame on the bus, sent and received, into `records/cdbus_