What is the problem?
During my prints, octoprint disconnect randomly from my printer.
It starts to occur when I change my stock mainboard (Creality v.4.2.2) to BTT SKR Mini E3 V2 with my self-compiled Marlin 2.0.9.1. Currently the serial port config is set as:
#define SERIAL_PORT 2
#define BAUDRATE 115200
#define SERIAL_PORT_2 -1
I am using the stock LCD 12864 screen.
Also note that connection to my printer starts to be slow since my change of mainboard. It used to be less than 1 second and now it takes around 2-3 seconds for Octoprint to connect.
Another thing is that during connection, it is very prone to fail to connect if I have gcode file in my printer SD card and the startup M21 command triggered the disconnection.
What did you already try to solve it?
Switch to official Raspberry AC adaptor (5.1V 2.5A), change my USB cable to a shielded one (I am now using the one came with BTT mainboard), put a fan on top of the Pi to prevent overheating, tape my USB cable power pin, also unplug my stock 12864 screen as I thought I read something about screen cable to cause serial connection problem. All the above fail.
Have you tried running in safe mode?
Not yet, but I don't think it is a plugin problem
Did running in safe mode solve the problem?
Not tested
Systeminfo Bundle
You can download this in OctoPrint's System Information dialog ... no bundle, no support!)
octoprint-systeminfo-20210825145624.zip (94.0 KB)
Uploaded
Additional information about your setup
OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible
Octoprint: 1.6.1;
OctoPi: 0.18.0,
printer: Ender 3 with BTT SKR Mini E3 V2.0;
firmware: self-compiled Marlin 2.0.9.1;
browser: Microsoft Edge 92.0.902.78;
also access Octoprint via Android App OctoRemote ver. 1.4.3