Why can't octoprint connect to RockPi4B

I installed Armbian and OctoPrint on my RockPi4B. Octo server is working but can't connect to my Sapphire Pro. I try connect all of them /dev/tty*. If i get /dev/ttyS0 or /dev/ttyS4 OctoPrint he thinking but disconect on timeout. In Armbian lsusb printing:
Bus 004 Device 003: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
What I'm doing wrong? On PC and RepetierHost conneting succefully.
I'm rookie in linux.
logOctoPrint.log (1.9 KB)

1 Like

Try disconnecting and then reconnecting the serial cable to your printer then running dmesg to see what lines are added at the end. In theory, it might suggest what the expected device name is for your printer. You would then manually select this in the Connection side panel widget in OctoPrint rather than choosing AUTO.

Or go back temporarily to RepetierHost and find out what device that used.

If I use dmesg i think it is printer:
[ 2.514752] usb 3-1: New USB device found, idVendor=1a86, idProduct=7523
[ 2.514765] usb 3-1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 2.514776] usb 3-1: Product: USB Serial

But I don't know like I type /dev/???

Try dmesg | grep tty

Thanks guys for help me. I used dmes | grep tty now result in tty.log. I think here isn't ttyUSB what is this about?
tty.log (957 Bytes)

[    0.000000] Kernel command line: root=UUID=40fbf2d4-56b4-4893-8003-f4524890882d rootwait rootfstype=ext4 console=ttyFIQ0,1500000  panic=10 consoleblank=0 loglevel=1 ubootpart=d90a125d-01 usb-storage.quirks=0x2537:0x1066:u,0x2537:0x1068:u   cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory swapaccount=1
[    0.145342] Registered FIQ tty driver
[    0.170069] console [ttyFIQ0] enabled
[    0.170283] Registered fiq debugger ttyFIQ0
[    1.007768] ff180000.serial: ttyS0 at MMIO 0xff180000 (irq = 37, base_baud = 1500000) is a 16550A
[    1.008418] ff1a0000.serial: ttyS2 at MMIO 0xff1a0000 (irq = 38, base_baud = 1500000) is a 16550A
[    1.009039] ff370000.serial: ttyS4 at MMIO 0xff370000 (irq = 40, base_baud = 1500000) is a 16550A
[    4.944244] systemd[1]: Created slice system-serial\x2dgetty.slice.
[    4.945844] systemd[1]: Created slice system-getty.slice.
[   25.053954] tty_port_close_start: tty->count = 1 port count = 2.

And yet, I'm really not seeing it.

If it were me—and I am me on most days—I would create the following file.

sudo touch /etc/udev/rules.d/99-usb-serial.rules
sudo nano /etc/udev/rules.d/99-usb-serial.rules
#-- contents follow
SUBSYSTEM=="tty", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="7523", SYMLINK+="sapphire"
#-- end of contents

I would save that, reboot and do this:

ls -lt /dev

...and look for an entry at the top that looks like:

/dev/sapphire

thanks you help. I tryed you proposition but not good result. I lookin in Internet and tryed same change like:
ACTION=="add",SUBSYSTEM=="usb", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="7523", SYMLINK+="sapphire"
or
SUBSYSTEM=="tty", ATTRS{idVendor}=="1a86", ATTRS{idProduct}=="7523", ATTRS{devpath}=="1.2", SYMLINK+="sapphire"

Every one don't working. I'm stupid what it not working this easly.

You might then check how Armbian does udev rules.

Hello!
Now my octoprint worked. I resigned from Armbian because I fought two weeks and not every thing working in this linux. I insaled on my Rock Pi 4 Debian 9 and in this linux instaled octoprnit. In Debian it wasen.t easly either because I had small problem in install python. I'm glad you made it.

2 Likes

Are you satisfied how Octoprint works on Rock Pi? Is it stable? Are there any issues?

Hello @valentt !

You are digging out ancient threads to ask the same question.
This will not get a quicker answer.

It would be more helpful open a new thread. in the General sub forum.

I dont use Rock Pi to servise my Printer with Octopi. I bougth Rosperry Pi and using since 2 years.