Connection timed out / Ender 3 Pro /SKR Mini V1.2 / Marlin Bugfix2.0.X/ RasPi 3 B+

What is the problem?
There was a timeout while trying to connect to the printer
What did you already try to solve it?

Changed power supply for Raspberry pi
Changed USB cord
Researched issue online
Modified USB cable to not power board.
Turned printer and Pi on ant different intervals
Unplugged USB cam

Logs (octoprint.log, serial.log or output on terminal tab at a minimum, browser error console if UI issue ... no logs, no support!)

serial.log

2020-05-19 17:53:51,297 - Connection closed, closing down monitor
2020-05-19 17:55:03,202 - Changing monitoring state from "Offline" to "Detecting serial port"
2020-05-19 17:55:03,323 - Serial port list: [u'/dev/ttyACM0']
2020-05-19 17:55:03,326 - Connecting to: /dev/ttyACM0
2020-05-19 17:55:03,339 - Changing monitoring state from "Detecting serial port" to "Opening serial port"
2020-05-19 17:55:03,418 - Connected to: Serial<id=0x67709a10, open=True>(port='/dev/ttyACM0', baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=30.0, xonxoff=False, rtscts=False, dsrdtr=False), starting monitor
2020-05-19 17:55:03,425 - Changing monitoring state from "Opening serial port" to "Connecting"
2020-05-19 17:55:33,505 - There was a timeout while trying to connect to the printer
2020-05-19 17:55:33,527 - Changing monitoring state from "Connecting" to "Offline"
2020-05-19 17:55:33,556 - Connection closed, closing down monitor

octoprint.log

2020-05-19 17:55:03,203 - octoprint.util.comm - INFO - Changing monitoring state from "Offline" to "Detecting serial port"
2020-05-19 17:55:03,340 - octoprint.util.comm - INFO - Changing monitoring state from "Detecting serial port" to "Opening serial port"
2020-05-19 17:55:03,475 - octoprint.util.comm - INFO - Changing monitoring state from "Opening serial port" to "Connecting"
2020-05-19 17:55:33,538 - octoprint.util.comm - INFO - Changing monitoring state from "Connecting" to "Offline"

dmesg

[   12.678200] ieee80211 phy0: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.36
[   12.994736] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   13.336114] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   13.336677] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   14.201103] wlan0: authenticate with 48:5d:36:98:ad:12
[   14.226250] wlan0: send auth to 48:5d:36:98:ad:12 (try 1/3)
[   14.234058] wlan0: authenticated
[   14.242491] wlan0: associate with 48:5d:36:98:ad:12 (try 1/3)
[   14.246537] wlan0: RX AssocResp from 48:5d:36:98:ad:12 (capab=0x1031 status=0 aid=8)
[   14.253047] wlan0: associated
[   14.389854] cryptd: max_cpu_qlen set to 1000
[   14.440300] wlan0: Limiting TX power to 30 (30 - 0) dBm as advertised by 48:5d:36:98:ad:12
[   14.444203] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[  179.368699] usb 1-1.4: USB disconnect, device number 4
[  181.970157] usb 1-1.2: new full-speed USB device number 6 using dwc_otg
[  182.103620] usb 1-1.2: New USB device found, idVendor=1eaf, idProduct=0004, bcdDevice= 2.00
[  182.103641] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  182.103653] usb 1-1.2: Product: Maple
[  182.103667] usb 1-1.2: Manufacturer: LeafLabs
[  182.105271] cdc_acm 1-1.2:1.0: ttyACM0: USB ACM device

Additional information about your setup (OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible)
Ender 3 Pro
SKR Mini V1.2
Marlin Bugfix2.0.X
RasPi 3 B+
Version 1.4.0

Hi,
I had similar random connectivity issues on USB and found that SKR mini USB port become loose from frequent cable plugging/unplugging.
Being familiar with soldering yet don't have enough skills to replace it so I switched to UART serial port.

In Marlin firmware from SKR it's enabled by default so you can try, it's just 3 wires.


Here got different issues that can't go faster than 115kb (random freezing SKR board), but that's another story...

Good luck!
rasterer

Does it work on your pc with pronterface?