Marlin Host Action Commands

In the newer Marlin versions they have some host action commands that can send a command to the host to start the next print job in queue (and a few others). They seem to be working in octoprint, any thoughts on if these would/could work with repetier-server? I tested them but it seems the functionality is not yet there for repetier-server.


  • Where are they documented? In
    I see no mention of them. 

    Would be easy to add since we alraedy have server commands doing that. In fact you can add it to reposnse parser to do so already, but if they have them build in i'd like to make them generally work.
  • They do have them built in but it is a bit hard to find info about them. It looks like they just send the message:


    back to the server. There are a list of commands here:

  • Most of them are implemented. cancel to stop running job already is implemented. What was missing is "start" action to start next job in queue which is fairly new. Not sur eif it makes too much sense to blindly start a job you can not see which it is, but will be added in 1.4.3.

  • Awesome, it will make sense to me to use it since I have another bit of code I wrote to handle my queues and I am not running repetier-server monitor in the printer room. Thanks!
  • I have been testing these and they are working well. Marlin has the M118 command that will send back custom commands to the host. Is it possible to add your own action behavior to repetier? I was looking for a 'restart' action that would restart the last print in case the print failed or had some other problem.
  • You can add listener to firmware output and trigger any g-code with or withsout server commands that you like. So anything we don't know can still be captured that way. On the otehr side if you send M118 to trigger thsi you could execute function also directly, so not sure why tell server with M118 to send something it then detects, except it is part of gcode being sliced to mark points for some actions.
  • Sorry but I am not sure I understand. The idea would be to use the menu on Marlin to send 'M118 A1 action:restart' to the repetier-server to restart the most recent print. Is this possible?
  • Ok using marlin menu as source makes more sense:-)

    Yes, you can use that solution to trigger actions just add a expression that detects it in printer config and run the action.

    Only most recent print is currently not possible. Guess I should add a server command for this, now that we have recent prints. What you can do is start first g-code in print queue. Especially if you stopped it, it will normally still be there for printing.
  • I see, well then I will be looking forward to it :)
Sign In or Register to comment.