Notifications
Clear all

Is there a Terminal to send commands to the printer?  

  RSS
Leon
 Leon
(@leon-5)
Eminent Member
Is there a Terminal to send commands to the printer?

I'm trying to figure out if there is a way to send commands via command line like in OctoPrint.  Is this possible?

Would be nice to cut and paste my own macros since there are no macro buttons for selecting Tool heads on an XL... heating them up sequentially, clean and dock, etc.  I'm really tired of using the knob to manage 5 toolheads.

This topic was modified 11 months ago by Leon
Posted : 24/01/2024 1:31 pm
Lynn
 Lynn
(@lynn)
Estimable Member
RE: Is there a Terminal to send commands to the printer?

I too have this question and have asked it recently in this forum, but as of yet no one has properly responded, Hopeful this new post will elicit a response from those in the know. 

Posted : 24/01/2024 2:44 pm
_KaszpiR_
(@_kaszpir_)
Prominent Member
RE: Is there a Terminal to send commands to the printer?

One option would be to extract from octoprint libraries used to talk with the printer via usb or from prusalink  via gpio pins.

Otherwise you can create a web server or proxy and use prusalink to connect to it without tls - this way you can intercept and inject commands sent to the printer.
They are sent with a command to process requests and then later on as plaintext gcode commands.
I can provide more details if you are interested (I gave some example logs on discord about it), but I haven't tried to throughly check the communication.
For looking at what is sent to the printer see https://github.com/nvtkaszpir/3d-print/tree/main/prusa-connect-proxy

See my GitHub and printables.com for some 3d stuff that you may like.

Posted : 24/01/2024 6:37 pm
Lynn
 Lynn
(@lynn)
Estimable Member
RE: Is there a Terminal to send commands to the printer?

There are probably several ways to establish IO between a pi and the buddy board, but for most Mini, MK4 and XL owners, use of a Pi has been somewhat restricted from what was possible with he MK3, and other printers types.  From what I understand the Devs have not yet and may not ever fully support two way IO between the buddy board and a host like Octoprint, but I might be wrong about that. I for one used the Octoprint terminal very frequently, as I do with my Klipper machines, and now I'm kind of missing the terminal functionally on what is being presented as a modernized product.  

I reviewed your linked info and I think if you have a Pi connected your might be able to get there, but for the typical 3D printer owner, the potential method is beyond many of us.  I suspect terminal functionality could be added to Prusa-Link, but so far that hasn't happened.  While we do appreciate you willingness to help rig something up, I for one am seeking a more traditional terminal application that could be used within the wider community, just like we used to have with Pronterface, and what Klipper currently offers.

Posted : 24/01/2024 8:04 pm
_KaszpiR_
(@_kaszpir_)
Prominent Member
RE: Is there a Terminal to send commands to the printer?

Yeah both ideas that I presented are not that easy, it was more like a shower thought...

See my GitHub and printables.com for some 3d stuff that you may like.

Posted : 24/01/2024 10:23 pm
Leon
 Leon
(@leon-5)
Eminent Member
Topic starter answered:
RE: Is there a Terminal to send commands to the printer?

Well... I connected an OctoPi to my XL.  Its way more functional than I thought.  More than Prusa Connect sad to say.  I can swap tools, heat them individually, clean, dock them, etc... without touching the knob.  My Macro add-in works fine too... I guess i'm done with Prusa Connect for a while until they add those things.

The only thing I dont like so far is they call Tool 1, Tool 0 on the Pi.  But not a big deal.

Posted : 25/01/2024 6:23 pm
Leon
 Leon
(@leon-5)
Eminent Member
Topic starter answered:
RE:

Here is a Tip:  In OctoPrint Printer profile... set the number of tools to 6 (instead of 5).  So it will be 0 through 5.  But tool 5 actually doesnt exist.  You can use it as a park command.  It will return whichever tool you have... but then stops and does nothing since there is no tool #6.

OR you can type T5 at the Terminal command prompt and park it.  😉

This post was modified 11 months ago by Leon
Posted : 25/01/2024 7:01 pm
Lynn
 Lynn
(@lynn)
Estimable Member
RE: Is there a Terminal to send commands to the printer?

 I opted to give Prusa-link a chance to sway me away from Octoprint because it was advertised that the buddy board would not send information back via the serial connection.  So much of what I used octorprint for requires that 2 way IO.  I found that Proterface will connect to the buddy board and I can send G/M codes to the printer. Buy I haven't gotten it display any feedback from the printer.  When using Octoprint, does the terminal functionality  include reports back from the printer?

Posted : 25/01/2024 8:48 pm
Leon
 Leon
(@leon-5)
Eminent Member
Topic starter answered:
RE: Is there a Terminal to send commands to the printer?

Yes, I do see feedback scrolling.  And thats how I figured out what commands it used to select and park tool heads.

Posted : 26/01/2024 2:34 pm
Share: