Skip to content

MartinNovan/SerialGCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SerialGCode

Simple console terminal to communicate with a 3D printer board over a serial port. This project was created to assist my other project.

Features

  • Send G-code commands interactively.
  • Receive responses with timestamps.
  • Send raw hex bytes.
  • Runtime commands to toggle DTR/RTS lines.
  • Automatic prompt after receiving "ok" from printer.

Usage

Run the program via .NET:

dotnet run -- --port COM4 --baud 115200

If port or baud rate is not specified, the program will list available serial ports and ask for user input.

Available Runtime Commands

Command Description
/help Show help
/exit Exit the application
/dtr on/off/pulse Toggle or pulse DTR line
/rts on/off Toggle RTS line
/raw HEXBYTES Send raw bytes in hex (space-separated)

Notes

  • Supports Windows and Linux serial ports.
  • Prompts appear automatically after receiving ok from the printer firmware.
  • Default baud rate: 115200, typical for Marlin-based boards.
  • Use /raw to send non-text bytes directly to the board.
  • /dtr and /rts commands can control the board’s reset or signal lines in real-time.

License

This project is licensed under the GNU General Public License v3.0 (GPL-3.0). See LICENSE for details.

About

Simple terminal program to communicate with a 3D printer board over a serial port.

Resources

License

Stars

Watchers

Forks

Languages