{"schema_version":1,"id":"sebastians85-esp32-c5-gateway-logger","name":{"en":"CAN-FD Gateway Logger","zh":"基于 ESP32-C5 的双路 CAN-FD 网关与数据记录器。"},"summary":{"en":"ESP32 Dual CAN-FD Bridge & Logger","zh":"基于 ESP32-C5 的双路 CAN-FD 网关与数据记录器。"},"purpose":"CAN-FD bridge and logger","tier":"community","author":"SebastianS85","repository":"https://github.com/SebastianS85/ESP32_C5_gateway_logger","license":"Apache-2.0","shape":"headless","scenes":["tools"],"boards":[{"name":"ESP32"}],"motion":false,"hardware":{"en":"ESP32-class board. Verify the exact board revision, display, power source and wiring in the upstream build guide.","zh":"ESP32 类开发板；请在上游构建文档中核对具体板型、屏幕、供电与接线。"},"notes":{"en":"A CAN FD tool built on the ESP32-C5's two on-chip TWAI-FD controllers, with three modes picked by DIP switches at boot: a direct bridge between CAN 1 and CAN 2, an SD card logger that stamps a .bin file from the DS3231MZ clock, or a Wi-Fi TCP server for live capture and injection from a PC. Data phase runs to 5 Mbit/s with payloads up to 64 bytes; 3 MB PSRAM ring buffers per channel guard against dropped frames. An I2C OLED, a PCF8574 for the switches and status LEDs, and a GPIO28 safe-eject button that flushes and unmounts the card complete the board. A Python GUI converts logs to Vector ASC for SavvyCAN, and a PyQt6 tool drives the device over TCP, including remote bitrate changes saved to NVS. Building needs ESP-IDF 6.0.2, PSRAM enabled and a custom 3 MB factory partition.","zh":"用 ESP32-C5 片内两路 TWAI-FD 控制器做的 CAN FD 工具，开机时由 DIP 开关选三种模式之一：CAN 1 和 CAN 2 之间直通桥接、带 DS3231MZ 时钟打时间戳的 SD 卡记录，或者 Wi-Fi TCP 服务器供电脑实时抓包和注入。数据段速率可到 5 Mbit/s，单帧最多 64 字节；每路有 3 MB 的 PSRAM 环形缓冲，防止高负载丢帧。板上有 I2C OLED、负责读开关和点状态灯的 PCF8574，以及 GPIO28 上的安全弹出键，按下先刷缓冲再卸载文件系统。电脑端一个 Python 图形工具把日志转成 Vector ASC 给 SavvyCAN，另一个 PyQt6 工具通过 TCP 控制设备，包括远程改速率并写进 NVS。编译要 ESP-IDF 6.0.2、打开 PSRAM，还得自己划一个 3 MB 的 factory 分区。"},"readme_excerpts":[{"label":"Feature","quote":"Up to 5 Mbit/s data-phase bitrates with payloads up to 64 bytes."},{"label":"Feature","quote":"Large PSRAM-backed receive ring buffers (3 MB each)"},{"label":"Input","quote":"Hardware safe eject button (GPIO28) to flush buffers and safely unmount the SD card"},{"label":"Build","quote":"ESP-IDF 6.0.2 (or a compatible 6.x release)."},{"label":"Build","quote":"PSRAM must be enabled in menuconfig."}],"images":{"type":"gallery","primary":"https://esp32gallery.com/previews/sebastians85-esp32-c5-gateway-logger/poster.jpg","poster":"https://esp32gallery.com/previews/sebastians85-esp32-c5-gateway-logger/poster.jpg","sources":["https://esp32gallery.com/previews/sebastians85-esp32-c5-gateway-logger/frames/view-001.jpg"]},"media_credit":{"status":"upstream-project-media","creator":"SebastianS85","source":"https://github.com/SebastianS85/ESP32_C5_gateway_logger/tree/0a2aa7596106c45db49bb3ce708b031e202a8309","note":{"en":"Screenshots from the upstream README. Code and firmware were not executed. License notices are included.","zh":"来自上游 README 的真实截图；未运行代码或固件，预览包保留许可证声明。"},"reviewed":"2026-10-20"},"preview":{"browser_playable":false,"kind":"media_gallery","label":{"en":"Project screenshots","zh":"项目截图"},"width":960,"height":720,"shape":"square","source_commit":"0a2aa7596106c45db49bb3ce708b031e202a8309"},"stars":6,"pushed_at":"2026-10-24T08:59:17Z","added_at":"2026-10-20T14:44:01+08:00","urls":{"html":"https://esp32gallery.com/projects/sebastians85-esp32-c5-gateway-logger/","html_zh":"https://esp32gallery.com/zh/projects/sebastians85-esp32-c5-gateway-logger/","json":"https://esp32gallery.com/data/catalog/projects/sebastians85-esp32-c5-gateway-logger.json","markdown":"https://esp32gallery.com/data/catalog/projects/sebastians85-esp32-c5-gateway-logger.md"}}
