开源改变世界!!

命令行界面 #1171

推推 grbl 1年前 (2023-01-27) 106次浏览
关闭
布雷勒 打开了这个问题 2019 年 1 月 11 日 · 7条评论
关闭

命令行界面#1171

布雷勒 打开了这个问题 2019 年 1 月 11 日 · 7条评论

注释

命令行界面 #1171
合作者

功能要求

有些人请求了一个 CLI 界面,以便从终端使用通用 Gcode 发送器(#945#278#882)。我已经开始尝试使用这样的界面,并想知道是否还有人对此感兴趣?

这些是现在的功能:

  • 设置连接的波特率
  • 列出所有可用端口
  • 选择我们连接的控制器固件类型,默认为“GRBL”。可用固件:[GRBL、TinyG、测试(延迟)、Smoothie Board、测试]
  • 打开一个文件以流式传输到控制器,完成后将退出。
  • 家用机器,将在任何 gcode 文件发送到控制器之前完成。
  • 选择控制器要连接到的端口。即 /dev/ttyUSB0(在类 Unix 系统上)或 COM4(在 Windows 上)。
  • 重置警报

可以选择不同的输出类型:发送到控制器的纯命令流或进度条。这是进度条的示例:

我在想我们可以将一个单独的启动脚本与 UGS 经典版或其自己的包打包在一起。你怎么认为?

查看当前的实现(仍在进行中):
https ://github.com/breiler/Universal-G-Code-Sender/tree/cli/ugs-cli

命令行界面 #1171
贡献者
卡内基 评论了 2019 年 1 月 12 日 通过电子邮件
命令行界面 #1171
合作者作者

我的描述有点不清楚,只有在传递 –home 标志时才会完成归位。
这些是当前的选项:

 -b,--baud <baudrate>           Baud rate to connect with.
 -c,--controller <controller>   What type of controller firmware we are
                                connecting to, defaults to "GRBL". These
                                are the available firmwares: [GRBL, TinyG,
                                Testing (Delay), Smoothie Board, Testing]
 -f,--file <filename>           Opens a file for streaming to controller
                                and will exit upon completion.
 -h,--help                      Prints the help information.
 -ho,--home                     If a homing process should be done before
                                any gcode files are sent to the
                                controller.
 -l,--list                      Lists all available ports.
 -p,--port <port>               Which port for the controller to connect
                                to. I.e /dev/ttyUSB0 (on Unix-like systems
                                or COM4 (on windows).
 -pp,--print-progressbar        Prints the progress of the file stream
 -ps,--print-stream             Prints the streamed lines to console
 -r,--reset-alarm               Resets any alarm
 -v,--version                   Prints the software version.