This details the steps I had to go through to get this up & running on & connected to OctoPrint. It provides a GUI to simulate the printer, supporting a subset of the Marlin features. You can connect to it via OctoPrint, but it requires a small patch.
- Git checkout of Marlin, setup with AutoBuildMarlin/Platformio in VS Code.
- Check ini/native.ini in case anything has changed with requirements
- Download and install MYSYS2, following the instructions there
- Run
pacman -S --needed base-devel mingw-w64-x86_64-toolchain mingw64/mingw-w64-x86_64-glm mingw64/mingw-w64-x86_64-SDL2 mingw64/mingw-w64-x86_64-SDL2_net mingw-w64-x86_64-dlfcn
or whatever command is listed in the native.ini file in the MYSYS2 terminal - OctoPrint git checkout setup & running
- Grab the Simulator Example Configurations to use in Marlin
- Change the
SERIAL_PORT
to3
, this makes the Simulator listen on a socket on port 8099 - Build, you should end up with a MarlinSimulator.exe
- You will need a small patch to allow OctoPrint to connect to the TCP socket. This commit demonstrates the necessary changes
- Add
socket://localhost:8099
to the additional serial ports in OctoPrint - Run the simulator, and connect OctoPrint