AdventurerClientJS icon indicating copy to clipboard operation
AdventurerClientJS copied to clipboard

Printing percentage complete data

Open orangevan opened this issue 4 years ago • 4 comments

Hi Andy, I have run some comparitive TCP dumps from the flashprint software and the adventure client. I see the ADV client checks ~M119 and ~M105 to get the data it shows on the status page. Flashprint also check ~M27 to capture the Percent complete. I think just adding a query to ~M27 would provide you the ability to display Percent complete. Thoughts? TCP REQUEST FOR M27 ~M27 TCP RESPONSE TO M27 REQUEST CMD M27 Received. SD printing byte 72/100 ok

orangevan avatar Jan 15 '21 16:01 orangevan

This is great. I like it. If it’s something you’re interested in, I’m totally happy to take a PR to add this. Else, I’ll track it here in the backlog for me to get to.

andycb avatar Jan 16 '21 00:01 andycb

If i was skilled enough to code this in, i totally would take a swing at it. Unfortunately i'm not quite there. I will need to wait for you to get to it in the backlog of features. (note, i think the remembering the IP address (and/or discovering IP by sending the UDP packet on 18000 or 19000 i dont remember which) is definitely more useful than the percentage feature)

orangevan avatar Jan 16 '21 05:01 orangevan

In line with this, I think it would be awesome if the Status screen displayed the current extruder position (X,Y,Z) from M114. The A Parameter is how much filament has been extruded in millimeters. Once it gets up to 1000, it resets to 0. (in the gCode files, it uses a G92 E0 code to set it back to 0 for the next meter. I don't know if there's any way to keep track of it for a running tally, but if you count the number of G92 E0's in a gcode file and then take the last G1 E value it's the total length of filament.... (I foresee a fair amount of challenges to implement the A value accurately, but XYZ I expect would about as easy as M27...

Anyhow here's an example of the M114 from my Debug screen during a print ~M114\n CMD M114 Received. \nX:31.57 Y:31.56 Z:5.35 A:825.2 B:0 \nok \n

orangevan avatar Feb 08 '21 23:02 orangevan

discovering IP by sending the UDP packet on 18000 or 19000

I found a github repo which supposedly has this ability. I haven't really looked through it. Just now found it.

Gaweringo avatar Feb 14 '21 22:02 Gaweringo