volconst
volconst
Some marlin versions does not emit the correct messages on connection. In pronterface, enable 'Debug communications' in the menu, connect to printer, and paste the log pane contents here. But...
Please include the whole log after enabling "Debug communication" and pressing the connect button.
The script is waiting for printer greeting - usually 'start'. The log shows that the printer does not greet. Try pressing pronterface Reset button after you press connect or printer/hardware...
It is expected to get some "Not connected to printer" messages, because we are sending them while we wait the connection. You can swap the send_now('M105') and sleep, and increase...
You should use the same baud rate as pronterface, Your last baud rate is 115200, so it is no surprise that it does not work.
Move the callback subscription before connect so you see if the printer sends some message ``` def recv_callback(line): print("got", line) p.recvcb = recv_callback p.connect('COM19', 250000) ```
What is your marlin version? add: ``` p.loud = True p.connect(...) ``` and paste the log. Another workaround that may work: ``` p.connect(...) time.sleep(1) p.online = True ```
Paste log when you add ``` p.connect(...) p.loud = True ```
> like i say, blank log, waiting for something, usually "ERROR:root:Not connected to printer" After `p.online = True` you should not see "Not connected to printer"
Oh, nooo. You are running the code in some interactive interpreter, probably opening the port multiple times in the same process. Do not do this. Always run the script in...