Are there any apps for testing g-code on a Core One
 
Notifications
Clear all

Are there any apps for testing g-code on a Core One  

  RSS
hyiger
(@hyiger)
Honorable Member
Are there any apps for testing g-code on a Core One

Currently I'm testing g-code by creating a text file and printing it. What I would really like is a CLI or REPL where I directly send g-code to the printer rather than manually uploading and printing text. Does such a thing exist? 

Best Answer by ssmith:

I use a serial connection to the USB port, then Pronterface, Octoprint or just a serial terminal.  For most things, the serial terminal suits my needs.

Posted : 19/09/2025 5:47 pm
Tim
 Tim
(@tim-21)
Member
RE:

Say more ... not sure I understand how printing gcode (I assume onto paper) is a test.  Or are you trying to send gcode from your PC to the printer and bypass the Prusa Cloud and WiFi workarounds, something ala Pronterface or Rpi Octoprint?

 

I've never done it, never had the need, but theoretically you can simply install the drivers for the printer and then copy files from the pc directly. Pretty sure there are hurdles to get over, but seems doable, on the surface. If that's the goal, Pronterface may be the better solution.

 

https://www.pronterface.com/

Posted : 19/09/2025 5:54 pm
hyiger
(@hyiger)
Honorable Member
Topic starter answered:
RE:

Also, there is an annoying nag screen that blocks printing because the "g-code is not sliced for input shaping" etc and so I have to sit in front of the printer and manually push a button. So I have to manually add: M862.6 P"Input shaper" to my test g-code etc etc. 

This post was modified 4 weeks ago by hyiger
Posted : 19/09/2025 5:59 pm
hyiger
(@hyiger)
Honorable Member
Topic starter answered:
RE:

 

Posted by: @tim-24

Say more ... not sure I understand how printing gcode (I assume onto paper) is a test.  Or are you trying to send gcode from your PC to the printer and bypass the Prusa Cloud and WiFi workarounds, something ala Pronterface or Rpi Octoprint?

 

I've never done it, never had the need, but theoretically you can simply install the drivers for the printer and then copy files from the pc directly. Pretty sure there are hurdles to get over, but seems doable, on the surface. If that's the goal, Pronterface may be the better solution.

 

https://www.pronterface.com/

Why would you think I was printing this onto paper? I didn't say that... 

My choices are MacOS or Linux. So it would need to be over an http connection. I simply want to be able to test various commands without resorting to doctoring up a text file that I have to then upload. 

This post was modified 4 weeks ago by hyiger
Posted : 19/09/2025 6:01 pm
ssmith
(@ssmith)
Estimable Member
RE: Are there any apps for testing g-code on a Core One

I use a serial connection to the USB port, then Pronterface, Octoprint or just a serial terminal.  For most things, the serial terminal suits my needs.

Posted : 19/09/2025 6:09 pm
1 people liked
hyiger
(@hyiger)
Honorable Member
Topic starter answered:
RE: Are there any apps for testing g-code on a Core One

OK, thanks! I give it a try later. 

Posted : 19/09/2025 6:12 pm
mark
 mark
(@mark)
Reputable Member
RE: Are there any apps for testing g-code on a Core One

Why not go into the slicer in the Printers | Custom G-code tab and put what you want there? You can take advantage of conditional tests and variables. You can put in Start, End, Before Layer Change and After Layer change code.

Regards,

Mark

Posted : 19/09/2025 6:58 pm
Tim
 Tim
(@tim-21)
Member
RE: Are there any apps for testing g-code on a Core One

 

Posted by: @hyiger

Why would you think I was printing this onto paper? I didn't say that... 

My choices are MacOS or Linux. So it would need to be over an http connection. I simply want to be able to test various commands without resorting to doctoring up a text file that I have to then upload. 

Actually, you did, or implied it:   "creating a text file and printing it"  This wording is what made me think you were dumping a text file to screen or paper.  And you also said nothing about needing to print HTML via HTTP. 

But now that you've added a need for a command line, plain text, and http; I know of nothing that will allow that type of connection. Too many protocols to overcome.

 

Posted : 19/09/2025 7:28 pm
1 people liked
hyiger
(@hyiger)
Honorable Member
Topic starter answered:
RE: Are there any apps for testing g-code on a Core One

 

Posted by: @mark

Why not go into the slicer in the Printers | Custom G-code tab and put what you want there? You can take advantage of conditional tests and variables. You can put in Start, End, Before Layer Change and After Layer change code.

Regards,

Mark

It's just easier if I can type in a direct command and have it executed immediately. I don't need macros and variable access. Rather than having to create a dummy printer with only my g-code, with a dummy object to slice and then upload it to the printer so it can be executed. 

Posted : 19/09/2025 7:32 pm
hyiger
(@hyiger)
Honorable Member
Topic starter answered:
RE:

For example, I can upload this text file via PrusaConnect and print it just fine. What would be cool is to set break points and be able to step through it. 

M17 ; enable steppers

G28 ; home all without mesh bed level

; Nozzle Wipe
G0 X40 Y-14 Z4.5 F3000;
G0 X2 Y-16 Z4 F3000;
G0 X2 Y-14 Z4 F3000;
G0 X40 Y-16 Z4 F3000;
G0 X2 Y-14 Z4 F3000;
G0 X2 Y-16 Z4 F3000;
G0 X40 Y-14 Z4 F3000;
G0 X40 Y-14 Z4 F3000;
G0 X2 Y-16 Z4 F3000;
G0 X2 Y-14 Z4 F3000;
G0 X40 Y-18 Z4 F3000;
G0 X2 Y-16 Z4 F3000;
G0 X2 Y-16 Z4 F3000;
G0 X40 Y-14 Z4.5 F3000;
This post was modified 4 weeks ago by hyiger
Posted : 19/09/2025 7:33 pm
Tim
 Tim
(@tim-21)
Member
RE:

 

Posted by: @hyiger

For example, I can upload this text file via PrusaConnect and print it just fine. What would be cool is to set break points and be able to step through it

Insert pause commands ... or dwell.  But know that pause a hot nozzle on the print is a very bad idea.

Posted : 19/09/2025 7:44 pm
ssmith
(@ssmith)
Estimable Member
RE:

set break points and be able to step through it.

In MacOS or Linux, CoolTerm is a serial terminal app that works well for tasks like that. Can't step through a text file in the app, though.  I open the text in an editor and copy/paste steps into the connection window.

Posted : 19/09/2025 7:51 pm
hyiger
(@hyiger)
Honorable Member
Topic starter answered:
RE: Are there any apps for testing g-code on a Core One

 

Posted by: @ssmith

set break points and be able to step through it.

In MacOS or Linux, CoolTerm is a serial terminal app that works well for tasks like that. Can't step through a text file in the app, though.  I open the text in an editor and copy/paste steps into the connection window.

OK, this is basically what I want. I just want to send g-code directly to the printer without going through the indirection of uploading a g-code text file in PrusaConnect and pressing a print button. 

Posted : 19/09/2025 7:57 pm
Tim
 Tim
(@tim-21)
Member
RE: Are there any apps for testing g-code on a Core One

 

Posted by: @ssmith

In MacOS or Linux, CoolTerm is a serial terminal app that works well for tasks like that. Can't step through a text file in the app, though.  I open the text in an editor and copy/paste steps into the connection window.

I'm curious how you make the connection; does the printer simply accept a terminal connection from the usb port? Some sort of debug mode built in to the printer firmware?  I've always thought there was a protocol to establishing a connection, something most terminal apps lack.

Posted : 19/09/2025 7:59 pm
hyiger
(@hyiger)
Honorable Member
Topic starter answered:
RE:

 

Posted by: @tim-24

 

Posted by: @hyiger

Why would you think I was printing this onto paper? I didn't say that... 

My choices are MacOS or Linux. So it would need to be over an http connection. I simply want to be able to test various commands without resorting to doctoring up a text file that I have to then upload. 

Actually, you did, or implied it:   "creating a text file and printing it"  This wording is what made me think you were dumping a text file to screen or paper.  And you also said nothing about needing to print HTML via HTTP. 

But now that you've added a need for a command line, plain text, and http; I know of nothing that will allow that type of connection. Too many protocols to overcome.

 

We are talking about a 3D printer and printing using g-code. Not sure how you would mistake my comment for a 2D paper printer? And where did I mention HTML??? Do you know what a REST API is? 

Again you are twisting my words and being needlessly pedantic which doesn't contribute to the conversation. 

This post was modified 4 weeks ago by hyiger
Posted : 19/09/2025 8:01 pm
ssmith
(@ssmith)
Estimable Member
RE:

how you make the connection; does the printer simply accept a terminal connection from the usb port?

Simply connect 15200,8,N,1 and send. Not sure if the USB connection cares about the baud rate... If you send to the printer, the screen changes to indicate the serial port has control. That state times out after inactivity or if the printer control screen cancels it.

 

 

Posted : 19/09/2025 8:21 pm
1 people liked
Tim
 Tim
(@tim-21)
Member
RE: Are there any apps for testing g-code on a Core One

Okay - sorry,  I had no clue you were trying to do all this over a web connection (at least this is what REST and HTTP is normally used for).  

Posted by: @hyiger

 

Posted by: @tim-24

 

Posted by: @hyiger

Why would you think I was printing this onto paper? I didn't say that... 

My choices are MacOS or Linux. So it would need to be over an http connection. I simply want to be able to test various commands without resorting to doctoring up a text file that I have to then upload. 

Actually, you did, or implied it:   "creating a text file and printing it"  This wording is what made me think you were dumping a text file to screen or paper.  And you also said nothing about needing to print HTML via HTTP. 

But now that you've added a need for a command line, plain text, and http; I know of nothing that will allow that type of connection. Too many protocols to overcome.

 

We are talking about a 3D printer and printing using g-code. Not sure how you would mistake my comment for a 2D paper printer? And where did I mention HTML??? Do you know what a REST API is? 

Again you are twisting my words and being needlessly pedantic which doesn't contribute to the conversation. 

 

Posted : 19/09/2025 8:22 pm
Tim
 Tim
(@tim-21)
Member
RE: Are there any apps for testing g-code on a Core One

 

Posted by: @ssmith

how you make the connection; does the printer simply accept a terminal connection from the usb port?

Simply connect 15200,8,N,1 and sent send. Not sure if the USB connection cares about the baud rate... If you send to the printer, the screen changes to indicate the serial port has control. That state times out after inactivity or if the printer control screen cancels it.

 

 

Pretty sure it does, and is normally handled inside Pronterface when you make a connection.  I've never put a monitor tee on when using Pronterface so have never looked at what it says to the printer when opening the port. Might be as simple as Proterface setting the comm speeds and looking for an echo.

I'll have to sit down and try out a direct connection sans Pronterface. Pretty sure the terminal app will need the serial port setup, perhaps the USB driver picks it up from there. Thanks.

Posted : 19/09/2025 8:29 pm
hyiger
(@hyiger)
Honorable Member
Topic starter answered:
RE:

 

Posted by: @tim-24

Okay - sorry,  I had no clue you were trying to do all this over a web connection (at least this is what REST and HTTP is normally used for).  

Not trying to do anything other than understand what options are available for directly connecting to the printer. 

This post was modified 4 weeks ago by hyiger
Posted : 19/09/2025 8:48 pm
ssmith
(@ssmith)
Estimable Member
RE: Are there any apps for testing g-code on a Core One

 

 

FWIW, Octoprint on an rpi auto-selects 115200, CoolTerm makes a successful connection when I use anything, even 300. Could be the serial port driver handles it. 

Posted : 19/09/2025 9:09 pm
Share: