我如何通过Pyserial将g代码命令发送到pcb打印机?

问题描述 投票:0回答:1

我一直在尝试通过Pyserial向Voltera V-One打印机发送简单的g代码命令。打印机通过端口“ COM3”连接到我的Windows PC,波特率为250000。我尝试了Pyserial文档页面上的简单示例:https://pythonhosted.org/pyserial/shortintro.html#opening-serial-port。我没有成功。 Attached is the image of the errors.

谢谢

python pyserial
1个回答
0
投票

/dev/ttyUSB0是Linux系统上串行端口的名称。在Win上,您只需使用'COM3'

© www.soinside.com 2019 - 2024. All rights reserved.