Octoprint Fail to Detect Serial Port

What is the problem?
When I try to connect my printer (Ender 3 pro) to Octoprint (1.3.12, through a RPI 4, USB 2.0 port, on Macbook Pro) in terminal it gives this error message:

Changing monitoring state from "Offline" to "Detecting serial port"
Serial port list: []
Changing monitoring state from "Detecting serial port" to "Error: Failed to autodetect serial port, please set it manually."
Failed to autodetect serial port, please set it manually.

What did you already try to solve it?
I've tried:
Changing cable
Unplug and plug back in the USB cable
Restarting Octoprint/pi
Include other serial ports such as /dev/ttyUSB* , /dev/ttyACM* , /dev/tty.usb* , /dev/cu.* , /dev/cuaU* and /dev/rfcomm*
Logs (octoprint.log, serial.log or output on terminal tab at a minimum, browser error console if UI issue ... no logs, no support!)
octoprint.log (160.5 KB)
serial.log (1.4 KB)
When I try dmesg:

[   18.346786] Bluetooth: BNEP socket layer initialized
[   23.113250] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[  728.760852] usb 1-1.4: new full-speed USB device number 3 using xhci_hcd
[ 1272.240475] usb 1-1.4: new full-speed USB device number 4 using xhci_hcd
[ 1376.682606] usb 1-1.3: new full-speed USB device number 5 using xhci_hcd
[ 1654.817121] usb 1-1.3: new full-speed USB device number 6 using xhci_hcd
[ 1678.467458] usb 1-1.2: new full-speed USB device number 7 using xhci_hcd
[ 1712.387945] usb 1-1.1: new full-speed USB device number 8 using xhci_hcd
[ 1770.208741] usb 1-1.1: new full-speed USB device number 9 using xhci_hcd
[ 1857.939921] usb 1-1.1: new full-speed USB device number 10 using xhci_hcd
[ 1949.301102] usb 1-1.1: new full-speed USB device number 11 using xhci_hcd
[ 2022.622056] usb 1-1.4: new full-speed USB device number 12 using xhci_hcd
[ 2657.793872] usb 1-1.4: new full-speed USB device number 13 using xhci_hcd
[ 2659.144144] usb 1-1-port4: Cannot enable. Maybe the USB cable is bad?
[ 2659.243875] usb 1-1.4: new full-speed USB device number 14 using xhci_hcd
[ 2674.264126] usb 1-1.3: new full-speed USB device number 15 using xhci_hcd
[ 2887.907484] usb 1-1.4: new full-speed USB device number 16 using xhci_hcd
[ 2948.598398] usb 1-1.3: new low-speed USB device number 17 using xhci_hcd
[ 2948.698670] usb 1-1.3: device descriptor read/64, error -32
[ 2948.918677] usb 1-1.3: device descriptor read/64, error -32
[ 2949.138411] usb 1-1.3: new low-speed USB device number 18 using xhci_hcd
[ 2949.238672] usb 1-1.3: device descriptor read/64, error -32
[ 2949.458664] usb 1-1.3: device descriptor read/64, error -32
[ 2949.578754] usb 1-1-port3: attempt power cycle
[ 3005.389253] usb 1-1.3: new full-speed USB device number 20 using xhci_hcd
[ 3059.340056] usb 1-1.1: new full-speed USB device number 21 using xhci_hcd
[ 3089.160486] usb 1-1.2: new full-speed USB device number 22 using xhci_hcd
[ 3102.220687] usb 1-1.4: new full-speed USB device number 23 using xhci_hcd
[ 3313.713730] usb 1-1.4: new full-speed USB device number 24 using xhci_hcd

When I type lsusb:

Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Try this

2 Likes

Wow, that's crazy this fixed it! Thank you so much!

1 Like

You're welcome :slight_smile:
Happy printing :octopus:

Welp, I'm back. So I shut off my pi to change my camera setting and now I can't detect the serial port again... I saw on the other post that this could be caused by me turning on the pi before the printer? I've tried to shut both off and turn on the printer first but no lucky. Do you have any other suggestions that I could try? Thanks again, I really appreciate your help.

That's just the case if your printer draws too much power via usb and you didn't do the tape "mod".
I would check the tape - maybe it slipped on another pin or it doesn't cover the whole 5v pin.

Hmm.. I've tried re-taping it and double checked the coverage. Still doesn't seem like it's doing the trick.

Anyone else could possibly help me with this? It's still not working :slightly_frowning_face:

Let us look at the logs and dmesg again after the 5V pin mod

serial.log (376 Bytes)

and here's what I got for dmesg:

[   12.047709] bcmgenet: Skipping UMAC reset
[   12.152005] bcmgenet fd580000.genet: configuring instance for external RGMII (no delay)
[   12.152493] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   13.191768] bcmgenet fd580000.genet eth0: Link is Down
[   17.607903] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   18.481412] Bluetooth: Core ver 2.22
[   18.481499] NET: Registered protocol family 31
[   18.481556] Bluetooth: HCI device and connection manager initialized
[   18.481600] Bluetooth: HCI socket layer initialized
[   18.481623] Bluetooth: L2CAP socket layer initialized
[   18.481672] Bluetooth: SCO socket layer initialized
[   18.510046] Bluetooth: HCI UART driver ver 2.3
[   18.510062] Bluetooth: HCI UART protocol H4 registered
[   18.510177] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   18.510451] Bluetooth: HCI UART protocol Broadcom registered
[   18.984451] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   18.984459] Bluetooth: BNEP filters: protocol multicast
[   18.984471] Bluetooth: BNEP socket layer initialized
[   63.541623] usb 1-1.4: new full-speed USB device number 3 using xhci_hcd
[  106.812133] usb 1-1.4: new full-speed USB device number 4 using xhci_hcd
[  568.785233] usb 1-1.3: new full-speed USB device number 7 using xhci_hcd
[  581.946147] usb 1-1.4: new full-speed USB device number 8 using xhci_hcd

Yesterday I tried again without the tape and it looked like it was working... Till I unplugged my pi, then it won't connect again. I'm pretty frustrated by the inconsistent result I'm getting, hopefully, this will show what's wrong. Thank you.

Unfortunately I see nothing wrong here.
Maybe a full dmesg will show us what's wrong.
Sorry :confused:

1 Like

It's all good! I found out that if I first start Octoprint in safe mode the USB will connect, then if I restart again, the connection stays. I don't really understand why that is, maybe a plugin is making it all buggy. Thanks again for all your help :smiley:

1 Like