Skip to content

CFS diagnostics

CFS Diagnostics (option 20) keeps an eye on the CFS: it logs when it disconnects, points out the likely causes and can try to restore the USB connection by itself. It is a beta feature.

You need Klipper Gcode Shell Command (option 5) first. Installing it starts the service right away and turns on USB recovery.

From Fluidd

CFS diagnostics

The CFS diagnostics window in Fluidd

In the CFS panel, the CFS DIAGNOSTICS button (DIAGNOSTICA CFS when Fluidd is in Italian) opens a window where you can:

  • see whether the service is running, whether it is logging and whether recovery is on;
  • start or stop the service, the log and recovery;
  • download the current log and the previous one;
  • delete the logs.

From the console

Command What it does
CFS_DIAG_STATUS Status of the service and of the CFS
CFS_DIAG_SUMMARY Recent events and likely causes
CFS_DIAG_SNAPSHOT Snapshot of the situation at that moment
CFS_DIAG_ENABLE / CFS_DIAG_DISABLE Turns the service on or off (also at startup)
CFS_DIAG_LOG_ON / CFS_DIAG_LOG_OFF Turns the log on or pauses it
CFS_DIAG_AUTORECOVER_ON / CFS_DIAG_AUTORECOVER_OFF Turns USB recovery on or off
CFS_DIAG_CLEAN Deletes logs and summary

Pausing the log stops neither the monitoring nor the recovery.

USB recovery

If the CFS stays disconnected for at least 20 seconds and the USB adapter is still present, the service tries to restart it. It only does this when the printer is definitely idle: standby, print finished, cancelled or in error. Never during a print or a pause.

Limit Value
Attempts per event 3
Pause between attempts at least 60 seconds
Attempts per hour 6

Recovery helps, but it does not guarantee that the CFS comes back or that the print is saved. The causes shown in the log are likely causes, not a certain diagnosis of a fault.

The log

The main file is:

/usr/data/printer_data/logs/cfs_diag.log

You can also download it from Fluidd. If you remove the module, the service stops but the log stays.

Camera and CFS

The camera and the CFS adapter use the same USB hub. If you get frequent disconnections, you can try turning off the camera (CAMERA_OFF) and see if anything changes. The camera's role has not been proven.