Octoprint Installed Natively on Printer mainboard....Cannot connect to printer

What is the problem?

I installed Octoprint on my printer directly on the mainboard. It is an Artillery Sidewinder X4 Pro and is running a custom MKS PI, I upgraded the emmc to 32GBs and installed Octoprint. No issue there. I had Klipper installed and I used KIAUH to install Octoprint.

The issue is that I cannot connect to the printer at all, it gets stuck at Opening Serial Connection

What did you already try to solve it?

I have ran dmesg | grep tty

[ 0.002652] printk: console [tty0] enabled
[ 1.579783] ff110000.serial: ttyS0 at MMIO 0xff110000 (irq = 19, base_baud = 1500000) is a 16550A
[ 1.581999] ff120000.serial: ttyS1 at MMIO 0xff120000 (irq = 20, base_baud = 1500000) is a 16550A
[ 1.584039] ff130000.serial: ttyS2 at MMIO 0xff130000 (irq = 21, base_baud = 1500000) is a 16550A
[ 1.678921] printk: console [ttyS2] enabled
[ 8.118362] cdc_acm 1-1:1.0: ttyACM0: USB ACM device
[ 29.252926] cdc_acm 1-1:1.0: ttyACM0: USB ACM device
[ 48.335217] cdc_acm 1-1:1.0: ttyACM0: USB ACM device

I added tty0 to the ports and i added 1500000 to the baud rates in octoprint and still nothing, I get stuck on Opening serial connection anywhere besides Auto Auto which doesn't work at all

I installed and used setserial to make sure the serial ports were setup properly

Have you tried running in safe mode?

Yes, that made no difference

Did running in safe mode solve the problem?

No

Systeminfo Bundle

octoprint-systeminfo-20240716083002.zip (21.8 KB)

Attached above

Additional information about your setup

MKS PI Mainboard, armbian buster installed. Let me know what else you might need?

Did you use the octoprint_deploy script or manually install following the linux instructions? Almost sounds like the user configured running the service might not be a member of the correct groups for applying permissions. That being said, most embedded OS printers are running Klipper instead of Marlin, which requires a different setup for OctoPrint to communicate to Klipper, see here: https://www.klipper3d.org/Installation.html#configuring-octoprint-to-use-klipper

Argh, let me add that information to the post.

I'm running Klipper and used kiauh to install octoprint, I believe it uses octo deploy.

I can try modding the permissions to see if that works

ah, I'm not as familiar with KIAUH, but I think the setup for OctoPrint would be the same as linked before, setting up a custom serial port.

That f***ing did it

Thank you. I was looking all over for that info and figured I was using the wrong search terms.

Thank you so much

1 Like