What is the problem?
I currantly have octoprint up and running on a raspbeery pi. I can connet to it via octopi.local just fine. i have the webcam up and running. I cannot however get my ender 3 to connect to it. it says "Error: Failed to autodetect serial port, please set it manually.". i have read a lot of forums and cannot seem to find a solution that works. might I add I had it connected about 6 months ago. now it won't connect for the life of me. the serial port drop-down menu does not have any other options other than auto. when i try to connect to the printer I leave the baudrate and serial port on auto.
What did you already try to solve it?
reinstall and setup octoprint
tried many mini USB cables with no success.
read plenty of forums and troubleshot just about everything that's in my skill set to do.
Logs (octoprint.log, serial.log or output on terminal tab at a minimum, browser error console if UI issue ... no logs, no support!)
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.
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.
Additional information about your setup (OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible)
I am running windows 10, a raspberry pi 3b+, and octoprint 1.4.0
thank you so much for your help, it means a lot. so sorry if I left something out. I hope this can be resolved.
One thing to check, the opening in the processor case of Ender 3βs, for the usb connector, is a little small. In my case, the usb cable would almost plug in, but not quite. Sometimes I could connect, but not always. I tried several cables, but could not get a consistent connection. It would sometimes disconnect in the middle of a print. I ended up using a knife to trim the plastic around the usb cable connector. That solved the problem for me. Donβt ask how long it took me to figure this out.
Also, with the printer off, when you plug the USB into your pi, does the display on the printer power on? if so, you need to use the strip of electrical tape over the + power pin of the USB to keep it from feeding power into the printer. And with the printer connected and powered on, ssh in and do a sudo lsusb
what is the output of that?
There is no need to that. It just prevents underpowering the pi when the printer isn't turned on.
That's why we tested to turn the printer on first.
Of course I would also recommend doing the tape thing - just saying it isn't a mandatory mod.
I thought again about your problem and it might be possible that you got a bend pin.
I guess you already tried different usb ports on the pi so I would check the connector on the printer.
It could be your cable, I had similar trouble until I located a cable with the ferrite filters. The tape mod on pin 1 is recommended as it'll stop the challenges of powering the printer off and killing the Pi, as I found out the hard way.
The other thing I found was ground loops, which the ferrite filters probably managed to minimise induced noise to get by, but didn't fully solve the problem.
If you don't have a secure ground on the two devices you can have a potential develop between the Pi and the printer, more so if they are plugged into different power sockets. (I found this as the flood light with a metal case I was using on the printer (physically connected) had a dodgy plug pack and was creating a 4v AC ground loop).
Best answer is to connect the Pi ground to the printer ground (on the main board) so that this doesn't impact the signal path. The thing to do BEFORE doing that is to us a meter to test the difference in potential so you don't fry anything.
Also too, you need to be able to see the /Dev/USBxxx device in the OctoPrint connect menu, if this is not appearing then you may have additional USB issues.
And if you have enabled the Pi UART because you modded it for the button (how I found it on the Pi4B) or because it's enabled by default, OctoPrint polls the UART (TTY Device) before the USB device and fails when the TTY device doesn't respond. There are threads on these issue elsewhere in here.
@jhale716
those are things we could do if the connection isn't stable or if we get some special TTY names.
As you can see in the dmesg output there is no connection detected at all.