A Proposal for a Compact Gcode format: .COMPG September 16, 2016 06:58PM |
Registered: 11 years ago Posts: 580 |
Quote
frankvdh
Gcode files are huge, so transferring them to the printer's SDcard over the wire isn't practical.
Re: A Proposal for a Compact Gcode format: .COMPG September 17, 2016 04:02AM |
Registered: 12 years ago Posts: 799 |
Re: A Proposal for a Compact Gcode format: .COMPG September 17, 2016 01:39PM |
Registered: 11 years ago Posts: 580 |
Quote
Chri
Most of your 1-14 stuff is already implemented into most slic3rs
Quote
Chri
your "compg" (never user a format with more thatn 3 letter )
Quote
Chri
easiest(useable for 8bit) way would be switching to binary fromat, skeinforge has an implementation (broken?) , Repetier has also an implementation, afaik just Marlin doesn`t have, thats why most other slic3rs do not support it.
there was also another implementation of it proposed - sanguino3g
Quote
Chri
proposal could then also be applied to a binary format
Re: A Proposal for a Compact Gcode format: .COMPG September 18, 2016 02:34AM |
Registered: 8 years ago Posts: 91 |
Re: A Proposal for a Compact Gcode format: .COMPG September 18, 2016 03:35AM |
Registered: 9 years ago Posts: 5,232 |
Quote
6.Use integer for feedrates - for instance F2760.000 only needs to be F2760
Re: A Proposal for a Compact Gcode format: .COMPG September 19, 2016 02:43PM |
Registered: 11 years ago Posts: 580 |
Layer Change 2,186 0.1 % Retract/Unretract 80,315 3.4 Moves with Feedrate 153,667 6.6 Extrudes with Feedrate 159,375 6.8 Normal Extrudes 1,947,381 83.1 (Just X, Y and E) --------- ------ Total Commands 2,343,068 100.0%
Re: A Proposal for a Compact Gcode format: .COMPG September 20, 2016 01:09AM |
Registered: 12 years ago Posts: 799 |
Quote
My only reservation with bundling same-type commands, is easily and correctly parsing the next command - since the numeric data is not ASCII it could give a false positive for the next command type. It would save 2.9% in the above example - 1.83 MB.
Re: A Proposal for a Compact Gcode format: .COMPG September 20, 2016 03:19AM |
Registered: 11 years ago Posts: 580 |
ExxxxyyyyeeeeExxxxyyyyeeeeExxxxyyyyeeeeExxxxyyyyeeeeExxxxyyyyeeeeRZzzzzMxxxxyyyyfU!M104 S190 FxxxxyyyyeeeefExxxxyyyyeeeeExxxxyyyyeeeeExxxxyyyyeeee ... etc
Re: A Proposal for a Compact Gcode format: .COMPG September 20, 2016 03:54AM |
Admin Registered: 13 years ago Posts: 7,108 |
Re: A Proposal for a Compact Gcode format: .COMPG September 20, 2016 04:20AM |
Registered: 12 years ago Posts: 799 |
Quote
Dust
do we need yet another file format... why not just use gzip and make the file .gcodez or something similar.
Re: A Proposal for a Compact Gcode format: .COMPG September 24, 2016 05:17AM |
Registered: 10 years ago Posts: 14,683 |
Re: A Proposal for a Compact Gcode format: .COMPG September 24, 2016 05:38AM |
Registered: 9 years ago Posts: 5,232 |
Re: A Proposal for a Compact Gcode format: .COMPG September 24, 2016 06:21AM |
Registered: 10 years ago Posts: 14,683 |
Quote
o_lampe
Would it be a problem for the "planner" to deal with gcode without spaces and CR/LF? How would it be able to fill the buffer without splitting commands in half?
Re: A Proposal for a Compact Gcode format: .COMPG September 24, 2016 02:39PM |
Registered: 11 years ago Posts: 580 |
Quote
dc42
I agree with Paul's suggestions #1 to #8. As for the rest, the real problem is that low cost reprap controller hardware has been stuck in a rut for several years, using obsolete 8-bit processors that cost more than twice as much as their modern and much more capable 32-bit counterparts. (...)
Quote
dc42
The work involved in designing a low cost 32-bit board that costs less than Arduino/RAMPS/Pololu to mass produce would almost certainly be less than the work needed on at least 6 firmwares and at least 4 slicers to support a new gcode format.
Re: A Proposal for a Compact Gcode format: .COMPG October 16, 2016 09:57AM |
Registered: 14 years ago Posts: 7,616 |
Quote
Paul Wanamaker
As a software developer for over 20 years, and seeing the hoops that the 8 bit firmware needs to do in order to get steps out (poorly), and the inability for developers to add features due to memory and timing issues - it has always boggled my mind that people would go through the extra work to continue flogging the dead 8-bit horse.
Quote
Paul Wanamaker
I think the way forward is a cheaper, better, faster way, that includes a real operating system:
- Use a Raspberry Pi 3 (1.2GHz quad core), and a PI hat, that has a small Cortex microcontroller on it to output the actual step pulses.
Quote
Paul Wanamaker
If the PI Zero was easy to get then I would suggest that for the microcontroller on the hat - just plug it on!
Generation 7 Electronics | Teacup Firmware | RepRap DIY |
Re: A Proposal for a Compact Gcode format: .COMPG October 19, 2016 07:32PM |
Registered: 7 years ago Posts: 321 |
Re: A Proposal for a Compact Gcode format: .COMPG October 20, 2016 03:58AM |
Registered: 10 years ago Posts: 14,683 |
Quote
Paul Wanamaker
...
What in your opinion is the answer to comparable-cost 32-bit boards?
Since a 32-bit chip is not inherently more complex to put on a board, I've always thought that the slow pace of adoption of 32 bit was the time and cost of developing the firmware for a new architecture. I look at how long it's taking Smoothie to write the firmware for the Smoothie 2 (which I would buy despite the higher cost because I see the value). Chinese clones follow soon after, but often without the quality, and still cost more than 8-bit.
Quote
Paul Wanamaker
However, in my opinion, the development of a really cheap or more powerful Smoothieboard or Due would is still the wrong approach. Yes, still wrong - this will not harness the efficiency of scale, software, peripherals, and effort that exists cheaply elsewhere.
I think the way forward is a cheaper, better, faster way, that includes a real operating system:
- Use a Raspberry Pi 3 (1.2GHz quad core), and a PI hat, that has a small Cortex microcontroller on it to output the actual step pulses. Similar to this one, except DO NOT use an Arduino on the PI Hat! Uggh!
- Perhaps use a modified Octoprint as the front end.
- Use the already tested and elegant offloading method: Klipper.
- There would be no interfacing to peripherals with the stepper hat, so it's firmware would be very minimal. (If the PI Zero was easy to get then I would suggest that for the microcontroller on the hat - just plug it on!)
Re: A Proposal for a Compact Gcode format: .COMPG November 16, 2016 01:03AM |
Registered: 11 years ago Posts: 580 |
Re: A Proposal for a Compact Gcode format: .COMPG November 16, 2016 03:53AM |
Registered: 10 years ago Posts: 14,683 |
Quote
Paul Wanamaker
...
Perhaps part of my struggle is that I see that the problems that I still have to this day with my 32-bit controller (fairly minor, tho annoying they may be) would never have been a problem had the controller been made on top of a Pi: I'd have good fast communications via both Ethernet and USB (and WIFI), good fast web interface, a very nice display, and rock solid SD card support. Other than that it works fine...
So I guess what I really want is --- what you already provide. Hmmm...