when I'm trying to connect my printer to the OctoPrint, it gives that error.
What did you already try to solve it?
I've tried to set manually. I've found some /dev/tty... kind of things and tried it all.
Also find that https://docs.python.org/2/library/glob.html but I'm not a coder, I dont understand anything lol.
I guess I have to find right serial port but I''ve tried all that I can found in Internet
Logs (syslog, dmesg, ...)
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 network (Hardware you are trying to connect to, hardware you are trying to connect from, router, access point, used operating systems, ...)
From: Ultimaker Extended 3
To: OctoPrint 0.17.0
With: Raspberry Pi 4
Disconnect the serial cable from the printer. Plug it back in. Run dmesg from the Pi and look for the device name that's indicated in the last, say, 20 lines of that output. You're looking for something like /dev/tty* or tty* or similar, usually.
So now, you'll know the device name. In fact, if the operating system can see the device then OctoPrint will auto-populate this in that pull-down list in the Connection side panel widget.
I've found tty1 and tried as just ''tty1'' OctoPrint didnt recgnize as a serial port so I've add /dev/ to it.
Then this error occured.
error
Connecting to: /dev/tty1
Changing monitoring state from "Offline" to "Error: Connection error, see Terminal tab"
Unexpected error while connecting to serial port: /dev/tty1 SerialException: '[Errno 13] could not open port /dev/tty1: [Errno 13] Permission denied: '/dev/tty1'' @ comm.py:_openSerial:2611 (hook default)
I think it's the best if we're going back to @OutsourcedGuru advice.
Disconnect your printer, connect it again, enter dmesg | tail -n 20 and post the output here
For whatever reasons, some of the dmesg output got confused and your system tried to interpret some of that. Try just a dmesg and manually highlight copy/paste the last 20 lines here so that we can see it.
Now Raspberry closed itself to remote access. I can't find my RPi when I've tried in IP scan. I create ssh file to enable remote access but it didn't work. I can't access my OctoPi right now.So I guess i have to reboot or format my RPi. I will try 'dmesg' thing in Monday and I will send the reply to you guys, thanks a lot for your helps.
I connect to the PI over wifi to connect to octoprint, then there is a USB cable which is used by octoprint to send the Gcode commands and read the data like bed and extruder temps from the printer
Unless your printer is uber fancy it won't support wifi printing hence why octoprint exists. You can connect to octoprint using the internet and the pi then talks to the printer over USB allowing you to experience what seems like wireless printing. Your printer will almost certainly have a mini or microusb port, you simply need to use a cable to connect this to the pi.
Oh i am so dumb, thanks for help. I will try connect between pi and printer with USB to USB cable because I didnt see any other port beside the power port like in the photo. I will write the conclusion tomorrow.