Problem with JSON reply (tested DC42 1.09a/b) June 17, 2015 08:39AM |
Registered: 9 years ago Posts: 34 |
{"status":"P","coords":{"axesHomed":[1,1,1],"extr":[43.2],"xyz":[201.82,87.34,6.90]},"currentTool":1,"params":{"atxPower":1,"fanPercent":100.00,"speedFactor":100.00,"extrFactors":[100.00]},"seq":6,"sensors":{"probeValue":0,"fanRPM":0},"temps":{"bed":{"current":-11.7,"active":-273.1,"state":0},"heads":{"current":[210.0],"active":[210.0],"standby":[0.0],"state":[2]}},"time":1053.4,"currentLayer":23,"currentLayerTime":32.2,"extrRaw":[43.2],"fractionPrinted":67.8,"firstLayerDuration":68.9,"firstLayerHeight":0.30,"printDuration":1037.6,"warmUpDuration":180.5,"timesLeft":{"file":321.8,"filament":inf,"layer":364.4}}
Error: Parse error on line 1: ...e":321.8,"filament":inf,"layer":364.4}} -----------------------^ Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[', got 'undefined'
Re: Problem with JSON reply (tested DC42 1.09a/b) June 17, 2015 08:59AM |
Registered: 10 years ago Posts: 14,672 |
Re: Problem with JSON reply (tested DC42 1.09a/b) June 17, 2015 11:06AM |
Registered: 10 years ago Posts: 665 |
Quote
dc42
Hi Mark, I'm guessing that "inf" means infinity. I'll take a look at the firmware and see if I can work out what could be generating that, and how to fix it.
Re: Problem with JSON reply (tested DC42 1.09a/b) June 17, 2015 12:45PM |
Registered: 10 years ago Posts: 14,672 |
Quote
zombiepantslol
Quote
dc42
Hi Mark, I'm guessing that "inf" means infinity. I'll take a look at the firmware and see if I can work out what could be generating that, and how to fix it.
There was a problem in my PrintMonitor class, however a fix for this issue (in fact a possible division by zero) is included in my 1.09a firmware release.
Re: Problem with JSON reply (tested DC42 1.09a/b) June 17, 2015 01:15PM |
Registered: 10 years ago Posts: 14,672 |
Re: Problem with JSON reply (tested DC42 1.09a/b) June 17, 2015 05:46PM |
Registered: 9 years ago Posts: 34 |
Re: Problem with JSON reply (tested DC42 1.09a/b) June 17, 2015 06:11PM |
Registered: 10 years ago Posts: 14,672 |
Quote
FatFreddie
Hi David,
Yes, it seems (though it's hard to tell for sure) to be a little less frequent in 1.09b but it still happens after a few minutes of printing.
Thanks,
Mark
Re: Problem with JSON reply (tested DC42 1.09a/b) June 18, 2015 07:06AM |
Registered: 9 years ago Posts: 34 |
Re: Problem with JSON reply (tested DC42 1.09a/b) June 18, 2015 08:07AM |
Registered: 10 years ago Posts: 14,672 |
Re: Problem with JSON reply (tested DC42 1.09a/b) June 18, 2015 02:47PM |
Registered: 11 years ago Posts: 69 |
Re: Problem with JSON reply (tested DC42 1.09a/b) June 18, 2015 03:35PM |
Registered: 10 years ago Posts: 14,672 |
Quote
FatFreddie
Hi David,
Your changes fixed the JSON problem - thank you :-)
I am (was) using absolute extrusion - it's the default for Slic3r and what I've been using on my Mendel.
The filament usage based time calcs still don't work (stays at n/a) - looking at the generated G code, it resets the extruder using G92 E0 before each layer change which is what's presumably confusing it.
Re: Problem with JSON reply (tested DC42 1.09a/b) March 15, 2016 01:32PM |
Registered: 8 years ago Posts: 4 |
Re: Problem with JSON reply (tested DC42 1.09a/b) March 15, 2016 02:02PM |
Registered: 10 years ago Posts: 14,672 |
Quote
grant.baxter
Hello,
Any chance you could post this fix again? I have the exact same issue on this firmware!