Is it possible to simulate DWC + an event when a print ends?
-
Hi there,
I just got in touch with the Duet3D platform! I'm currently tasked with developing a pluging for DWC.
I was wondering about a few things, first of all, is it possible to somehow simulate the control pannel with no physical printer attached? This would greatly help development. We do have a printer remotely but it would be a lot of back and forth communication just for testing.
Secondly, is it possible to get an event of some sort when a print has ended in DWC? I haven't really found anything regarding this yet.
Thanks a lot in advance!
-
I think the easiest and most reliable is to insert a message using gcode at the end of each print job. For example: M117 "Print Finished" and monitor for that specific message (or similar check) using displayMessage.
Second-best option would be to monitor for the system message starting with "Finished printing file"
using rr_reply. I rate this second only because the reply has the possibility of being consumed (and disappearing) if called twice from the same ip / session. Although, with care, that can be avoided. -
@peterwilli depending how you develop the plugin you could keep an eye on the state.status and can also use the print file progress to see if the print had actually completed.
-
Thanks everyone! I got a lot more experience now after reading into it for a bit.
DSF was a good way to start. Especially since it was aligned with the board we use now (a pi controlling a smaller motherboard)