Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    Upload GCODE to RRF(Standalone) in KISSlicer

    Third-party software
    2
    2
    162
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • PCR
      PCR last edited by PCR

      I like the ability to upload .gcode files within a slicer. Most slicers have the feature built in.
      KISS does not. But with only some lines of code it is possible. But its no working with the DSF (SBC)

      You will need

      • KISSlicer from http://www.kisslicer.com/
      • RFM from https://github.com/wilriker/rfm/releases. Download the release for your OS
      • A RRF controlled printer with network ๐Ÿ˜‰

      Here is my workflow. I show it on my windows based machine but it will work on linux too. It could be not best practice but it works

      On my PC iยดve got a folder names .gcodes where i save all my sliced files
      Extract here the rfm or rfm.exe file from @wilriker
      will look something like this
      d6c76f9b-c345-41e1-9022-1fc09c4e3ea9-grafik.png

      Then open the command line or terminal in this folder and "register" your printer.

      type in

      for Windows

      rfm ls -device <Name of your Printer> -domain <IP or domain> -port <Port>
      

      for Linux

      ./rfm ls -device <Name of your Printer> -domain <IP or domain> -port <Port>
      

      in my case

      rfm ls -device Q5 -domain 192.168.178.22  -port 80
      

      you can test the connection by typing in

      rfm ls -device Q5
      

      This should output something like this

      C:\Users\PCR\Desktop\gcodes>rfm ls -device Q5
      total     427548
      [d]              -      2020-10-25T17:55:50     filaments
      [d]              -      2020-10-24T18:09:22     gcodes
      [d]              -      2020-10-25T17:55:44     macros
      [d]              -      2020-09-26T11:14:36     sys
      [d]              -      2020-10-24T16:06:32     www
      [f]         427548      2020-10-22T21:15:46     FIRMWARE.CUR
      

      Then go into the KISSlicer Setting under Printer/Firmware

      b90f0399-65e4-40c8-9a9d-20c11889e35f-grafik.png

      There you should add this command to the Post-Process field

      Windows

      "C:\Users\PCR\Desktop\gcodes\rfm.exe" upload -device Q5 <FILE> 0:/gcodes
      

      Linux/Mac

      ./rfm upload -device Q5 <FILE> 0:/gcodes
      

      aea279d4-4e87-4781-9507-dba4544bc875-grafik.png

      now everytime you save the file in the folder where rfm.exe is located the file will be uploaded to your printer.
      b057b562-9f5b-4093-ba04-dd20744511be-grafik.png

      It will look like KISSlicer is "breaking" but this is only during the upload ๐Ÿ˜‰

      Feel Free to ask.

      1 Reply Last reply Reply Quote 1
      • sinned6915
        sinned6915 last edited by sinned6915

        how is this simpler or better than using curl and a 2 line script?

        KISS PostProcessor command

        <KSPATH>\EV2.BAT "<FILE>"
        

        script contains

        curl -k -# -F "select=false" -F "print=false" -F file=@%1 -X POST http://192.168.X.Y/rr_upload?name=gcodes/%~nx1
        
        curl "http://192.168.X.Y/rr_disconnect
        

        RRF does not like spaces or punctualtion in filenames. I have not used DOS batch scripts on a long time, so the variable as filenames is touchy.

        I REALLY wish Lonesock gets stuff together and gets 2.0 done soon.

        1 Reply Last reply Reply Quote 1
        • First post
          Last post
        Unless otherwise noted, all forum content is licensed under CC-BY-SA