UltiMaker uses functional, analytical and tracking cookies. Tracking cookies enhance your experience on our website and may also collect your personal data outside of Ultimaker websites. If you agree with the use of tracking cookies, click “I agree, continue browsing”. You can withdraw your consent at any time. If you do not consent with the use of tracking cookies, click “Refuse”. You can find more information about cookies on our Privacy and Cookie Policy page.
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.
Anet A8 printer does not connect to cura
in Third party products & modifications
Posted
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.