Set up and update the printer¶
The printer side runs the USB serial bridge and, if selected, its local touchscreen. Klipper, Moonraker and the web UI run on the SBC instead.
Installation on the printer¶
- Make sure the printer is on any FlashForge firmware, then plug in the OpenCreator Installer media as outlined on the installation page.
- Click to use "Tunneled". A warning asks you to read this page and have an SBC with USB gadget mode ready; I understand unlocks after 30 seconds. Then choose the touchscreen: GrumpyScreen, HelixScreen or none.
- Wait for installation to finish. The printer needs internet: it installs Entware, LoopScript,
a hard-float Python (which
oc-tunneledandoc-pluginrun on) and the socat bridge (details). No Klipper, Moonraker or web UI is installed on the printer in this mode. - Restart your printer.
- If you installed GrumpyScreen, it opens up for a Moonraker printer. Edit
/usr/data/grumpyscreen/grumpyscreen.cfgand sethost:under[moonraker]to your Pi's IP address. HelixScreen's setup wizard asks for the SBC's address itself. See Touchscreen and plugins.
What the tunnel step does¶
- Downloads opencreator-tunnel and copies its
printer-socatfolder (c5_socat.pyandidentify_monitor.c) to/usr/prog/c5-tunnel-socat. - Copies the bundled usb-serial modules there too, unless the kernel has usb-serial built in.
FlashForge's kernel 2.0.8 has none;
c5_socat.pyloads them only there. - Checks
c5_socat.pywith the printer's Python 3.8 and buildsidentify_monitorwith Entware's gcc. - Makes
/usr/data/opencreator/tunneled/tunneled.shexecutable. That's the switch: from the next boot,firmwareExeruns it instead of the normal startup, so the printer only runs the bridge and its touchscreen. What it starts is on Boot and services.
Continue with Set up the SBC.
Updating the printer side¶
The SBC's update manager only updates the SBC. To update OpenCreator on the printer itself (the bridge's startup scripts, the launcher, GrumpyScreen's files), SSH into the printer and run:
It pulls the latest opencreator-fs and puts the new files in place. They're used from the
next reboot. Klipper's config and the MCU firmware aren't touched. On a printer that hasn't
rebooted since the update that added the command, run
sh /usr/data/opencreator/tunneled/oc-tunneled instead.
What oc-tunneled does, in order:
- If the clock still says 1970 (the printer has no clock battery), starts setting it from the network and waits up to 60 s, since git refuses HTTPS certificates until then.
- Pulls opencreator-fs in
/usr/data/opencreator/opencreator-fs(local changes there are overwritten) and prints the old and new commit. - Pulls opencreator-tunnel into
/usr/data/opencreator/opencreator-tunneland updates the socat bridge in/usr/prog/c5-tunnel-socatwhen it changed:c5_socat.pyonly if it passes a Python 3.8 check,identify_monitoronly if it builds. The running bridge isn't restarted, since nothing on the printer can tell whether the SBC is printing; reboot the printer to run the new one. - Runs the OpenCreator updater for OpenCreator's own folders.
A new oc-tunneled arrives through that last step, so a change to the command itself only
takes effect from the run after.
| Message | What to do |
|---|---|
oc-tunneled: run it as root |
log in as root |
oc-tunneled: git not found (Entware) |
Entware is missing or broken; run the installer again |
the clock still says ...; check the network, or set it with date -s |
the printer has no network; fix Wi-Fi, or set the date by hand |
fetch failed (no network?) |
the printer can't reach GitHub |
this printer isn't in tunnel mode; its own updater already does this every minute |
a SoC install; nothing to do |
the new c5_socat.py fails the Python 3.8 check; the bridge is left as it is |
the old bridge keeps running; try again after the next opencreator-tunnel update |
identify_monitor didn't build; the old one is kept |
same as above |
Going back to SoC mode¶
Installing in SoC mode again over a tunneled printer makes tunneled.sh
non-executable, which switches the printer back to running Klipper itself.
Use the OpenCreator Installer for
the new installation.