Jump to content

Marska52

New member
  • Posts

    1
  • Joined

  • Last visited

Personal Information

  • 3D printer
    Other 3D printer

Marska52's Achievements

2

Reputation

  1. I solved the problem in my situation. I have Windows 10 and Anet A8 printer. I looked a Python script: C:\Program Files\Ultimaker Cura 4.10.0\plugins\USBPrinting\AutoDetectBaudJob.py There is a loop where Cura sends "M105" gcode to the printer and waits response. while timeout_time > time(): line = serial.readline() if b"ok" in line and b"T:" in line: self.setResult(baud_rate) Logger.log(... serial.close() # close serial port ... return But "ok" and "T:" are not on the same line. That's why the condition never come true. I made a change like that: line = b"" while timeout_time > time(): line += serial.readline() if b"ok" in line and b"T:" in line: self.setResult(baud_rate) Logger.log(... serial.close() # close serial port ... return No other change was needed. The connection begun to play.
×
×
  • Create New...