simon bde4c473ef Add Go UART tool to query firmware VERSION over serial.
Framed protobuf client for /dev/ttyUSB0 at 921600 baud with generated
uart_messages types matching the device protocol.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-18 22:06:58 +02:00
..

goTool

Host-side UART utilities for Powerpod.

version command

Sends MessageType.VERSION (0x03) in a framed UART packet and prints the protobuf response.

cd goTool
go mod tidy
go run . -port /dev/ttyUSB0

Options:

  • -port — serial device (required)
  • -baud — default 921600 (must match firmware)

Regenerate protobuf

protoc --go_out=./pb --go_opt=paths=source_relative \
  --go_opt=Muart_messages.proto=powerpod/gotool/pb \
  -I ../main/proto ../main/proto/uart_messages.proto