First (only) connection fails with serial status mismatch

What is the problem?

I have an ender 3v2 and am running octoprint on a raspberry 4.
I always power up the raspberry first and start the printer from within octoprint using PSU control and a relay. (The 5V line from the USB connection to the printer is interrupted!)
Once the printer comes up and octoprint connects, I always get an error "serial status mismach".
The "last communication" window shows:

Changing monitoring state from "Offline" to "Detecting serial connection"
Performing autodetection with 1 port/baudrate candidates: /dev/ttyUSB0@115200
Trying port /dev/ttyUSB0, baudrate 115200
Connecting to port /dev/ttyUSB0, baudrate 115200
Handshake attempt #1 with timeout 5.0s
Connected to: Serial<id=0x6e7d3aa8, open=True>(port='/dev/ttyUSB0', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=5.0, xonxoff=False, rtscts=False, dsrdtr=False), starting monitor
Send: N0 M110 N0*125
Recv: šÑatus mismatch
Recv: Error:Serial status mismatch
Changing monitoring state from "Detecting serial connection" to "Error"

So this looks to me as if the connection worked, then tried again and failed!?

When I close this error message and manually hit connect, everything works fine. So it is really only the first connection that fails. subsequent disconnects/connects work fine.

What did you already try to solve it?

  • USB cable without 5V connection
  • playing with the connection settings without a clue/success

Have you tried running in safe mode?

yes

Did running in safe mode solve the problem?

no, same error but obviously without PSU control but with manual on/off.

Systeminfo Bundle

octoprint-systeminfo-20250808103010.zip (204.7 KB)

Additional information about your setup

Ender 3v2 with jyers 2.0.1 firmware, octoprint 1.11.2

Enable serial logging in the printer settings of OctoPrint and recreate the issue then share updated system info bundle.

Quick google seems to return many examples of custom firmware with this error and the suggestion by those maintainers (not the OctoPrint's maintainers) is to disable OctoPrint's safety features.

The potentially safer option would be to leave those settings alone and then install my FirmwareErrorHandler plugin. Then you add the specific error to ignore.

Put 'Error:Serial status mismatch' in the Error field