Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PortLister will not auto-connect on Serial Port /dev/ttyAMA0 #14

Open
Jimmy8881 opened this issue Aug 7, 2020 · 5 comments
Open

PortLister will not auto-connect on Serial Port /dev/ttyAMA0 #14

Jimmy8881 opened this issue Aug 7, 2020 · 5 comments

Comments

@Jimmy8881
Copy link

I have my RaspberryPI 3b connected through the serial GPIO pins to the Serial port (AUX1) on my SKR 1.3 through port /dev/ttyAMA0 instead of using the external usb port, I can connect Octoprint manually to my printer when pressing the Connect button but it will not Auto-connect. Using Octoprint Version 1.4.2

@brjhaverkamp
Copy link

What type of printer are you using? I have a Prusa mk3, connected to /dev/ttyAMA0 and it also will not auto-connect

@geekyboi
Copy link

Did you manage to solve this issue. I'm having the same problem with a BTT SKR 1.4 Turbo

@Jimmy8881
Copy link
Author

What type of printer are you using? I have a Prusa mk3, connected to /dev/ttyAMA0 and it also will not auto-connect

Sorry for the late reply, my printer is a cr-10s but upgraded to a skr 1.3 motherboard. The only workaround I found was to use a fork of the PSU control plugin that includes an auto connect function that can be set up with dev/ttyAMA0

@geekyboi
Copy link

geekyboi commented Nov 7, 2020

So I've spent a while trying to figure this one out.

This plugin only works for USB serial devices as it relies on a watchdog looking for new /dev/tty* files being created when a devices is connected. The GPIO serial file /dev/ttyAMA0 is always permanently there so the watchdog never starts the auto connect script.

You can detect when a serial device is attached to ttyAMA0 by using the serial.in_waiting command instead. Just need to add another function to trigger the on_port_created function when this occurs

@cowboy
Copy link

cowboy commented Jun 15, 2022

You can detect when a serial device is attached to ttyAMA0 by using the serial.in_waiting command instead. Just need to add another function to trigger the on_port_created function when this occurs

Did you ever happen to do this? If so, can you share what you did?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants