Quantcast
Channel: Reprap Forum - Firmware - Marlin
Viewing all articles
Browse latest Browse all 2836

Question about handshake with printer with Marlin (3 replies)

$
0
0
Hi,
I'm trying to connect to a printer with Marlin, on Windows machine.
After port is opened, I send M105 command (I saw this in some example, I dont remember exactly where),
and then I receive response in form of:
Start
echo:Marlin 1.1.0-RC3
echo: something
....
....
echo: M200 D0
echo: SD init fail


My problem is that I try to detect when the printer is ready, but can't figure out what the is correct way,
since the above response doesnt end with "ok".
At the beginning I used an empty-line the find end of intro response, but from time to time, the empty-line arrives in the middle of the above response.
I found a lot of documentation on each command, but not on this issue.
Any help is appreciated.
Thanks,
Si.

Viewing all articles
Browse latest Browse all 2836

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>