Octoprint won't connect to printer

What is the problem?

I'm trying to connect my printer to octoprint which has worked before but somehow it doesnt work now. Ive always get "No more candidates to test, and no working port/baudrate combination detected."

Ive tried more than 10 different usb cables, and also tried to connect my printer directly to my pc which worked fine

Have you tried running in safe mode?

Yes, didn't change anything

Did running in safe mode solve the problem?

No

Systeminfo Bundle

You can download this in OctoPrint's System Information dialog ... no bundle, no support!)

octoprint-systeminfo-20211217153620.zip (31.1 KB)

Additional information about your setup

OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible

octoprint running on a raspi with original power supply.

can you enable serial logging and try to connect to the printer?

i have my octoprint set in german but you can enable the serial log under someting like:
settings -> serial connection -> common

to download the serial log after the connection attempt go to:
settings -> logging and klick on the download icon next to serial log

pls upload the file

2 Likes

Let's check if the pi can see the printer at all.

Log into your pi via ssh then disconnect your printer, connect it again, enter dmesg | tail -n 20 and post the output here.

If you need help with the ssh part
https://pimylifeup.com/raspberry-pi-ssh/
Scroll down and start at Connecting to Your Raspberry Pi over SSH.
The first part is already done for you in the octopi image.

1 Like

octoprint-systeminfo-20211218143626.zip (33.9 KB)
this one should have the serial log included

pi@octopi:~ $ dmesg | tail -n 20
[    7.951569] random: 7 urandom warning(s) missed due to ratelimiting
[    9.798307] uart-pl011 3f201000.serial: no DMA platform data
[    9.971602] 8021q: 802.1Q VLAN Support v1.8
[   10.235753] Adding 102396k swap on /var/swap.  Priority:-2 extents:1 across:102396k SSFS
[   10.273677] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
[   10.595603] 8021q: adding VLAN 0 to HW filter on device eth0
[   15.763395] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   16.809486] Bluetooth: Core ver 2.22
[   16.809572] NET: Registered protocol family 31
[   16.809582] Bluetooth: HCI device and connection manager initialized
[   16.809608] Bluetooth: HCI socket layer initialized
[   16.809622] Bluetooth: L2CAP socket layer initialized
[   16.809647] Bluetooth: SCO socket layer initialized
[   16.821243] Bluetooth: HCI UART driver ver 2.3
[   16.821259] Bluetooth: HCI UART protocol H4 registered
[   16.821331] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   16.821559] Bluetooth: HCI UART protocol Broadcom registered
[   17.094415] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   17.094428] Bluetooth: BNEP filters: protocol multicast
[   17.094451] Bluetooth: BNEP socket layer initialized

Unfortunately the Pi doesn't detect the printer.
Try other cables and usb ports until you see the printer in the dmesg log. :crossed_fingers:

1 Like

How would it look like when the printer is sucessfully connected? I've tried it a few times with different cables on different ports and now it looks like this:

[   14.035882] usb 1-1-port3: attempt power cycle
[   14.695722] usb 1-1.3: new low-speed USB device number 7 using dwc_otg
[   15.135710] usb 1-1.3: device not accepting address 7, error -32
[   15.235731] usb 1-1.3: new low-speed USB device number 8 using dwc_otg
[   15.675743] usb 1-1.3: device not accepting address 8, error -32
[   15.675852] usb 1-1-port3: unable to enumerate USB device

looks like that for me

[   19.887021] Bluetooth: SCO socket layer initialized
[   19.902126] Bluetooth: HCI UART driver ver 2.3
[   19.902144] Bluetooth: HCI UART protocol H4 registered
[   19.902252] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   19.902485] Bluetooth: HCI UART protocol Broadcom registered
[   21.015834] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   21.015854] Bluetooth: BNEP filters: protocol multicast
[   21.015886] Bluetooth: BNEP socket layer initialized
[   41.068794] uvcvideo: Failed to query (SET_CUR) UVC control 4 on unit 1: -32 (exp. 4).
[   41.354921] uvcvideo: Failed to query (SET_CUR) UVC control 10 on unit 2: -32 (exp. 2).
[   49.967506] usb 1-1.3.1: new full-speed USB device number 8 using dwc_otg
[   50.078482] usb 1-1.3.1: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.64
[   50.078498] usb 1-1.3.1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[   50.078506] usb 1-1.3.1: Product: USB Serial
[   50.148458] usbcore: registered new interface driver usbserial_generic
[   50.148513] usbserial: USB Serial support registered for generic
[   50.152650] usbcore: registered new interface driver ch341
[   50.152725] usbserial: USB Serial support registered for ch341-uart
[   50.152852] ch341 1-1.3.1:1.0: ch341-uart converter detected
[   50.155413] usb 1-1.3.1: ch341-uart converter now attached to ttyUSB0
[ 14.035882] usb 1-1-port3: attempt power cycle

This part sounds like the printer might be drawing too much power

Try this Put tape on the 5V pin - Why and how

this problem is driving me insane, it worked for a few weeks with the tape on the 5v pin but now it doesnt work anymore. I've restarted the printer and the pi several times which sometimes helps (by booting up the printer first and then the pi) but now that doesnt work either. Also i tried different usb cables with and without tape.

You may try with pronterface to connect to your PC to see if that works

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.