Unsolved GCode Sender in Qt
-
I have a file in stl format which is scanned. After I called Slic3r from qt to generate gcode for 3d printing. I want to send gcode to Arduino Mega from my application. How can I do this process? Thank you in advance.
-
@aysenur said in GCode Sender in Qt:
Slic3r
Is this a library or an executable?
To start external executables see http://doc.qt.io/qt-5/qprocess.html
To communicate over serial port see http://doc.qt.io/qt-5/qserialport.html -
@jsulm I have called Slic3r as qprocess. I got the gcode of the stl file. There is a program RepetierHost and I can call this program as a qprocess, but I dont want user to see another program. Is this enough to read the file line by line and send to serial port for 3d printing.
-
@aysenur I don't know whether it is enough as I don't know the protocol used by the printer. Maybe there is a library you can use to send the data to the printer?
-
@aysenur said in GCode Sender in Qt:
RepetierHost
They seem to have a web API
https://www.repetier-server.com/manuals/programming/API/index.html