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

Disconnect issue might be related to input rate or absence thereof #12

Open
metabrain opened this issue Sep 17, 2021 · 0 comments
Open

Comments

@metabrain
Copy link

Hey,

No idea where would be the correct spot to raise it, but I was running into disconnects after 30 secs or so even if I sent no inputs, and even when I kept sending inputs all the time.

After some experimentation, I noticed if the delay between inputs is at around 400ms, there is no disconnects. I've had mine connected for past 2 hours and experienced no disconnects.

I am using a simple bash wrapper since I can't be bothered integrating with the .py script directly (and I still need to learn p3 async stuff).

#!/usr/bin/bash

while true
do
	echo "STARTING"
        sleep 5
	(while true; do echo "a" ; sleep 0.4; done;) | sudo python3 run_controller_cli.py PRO_CONTROLLER -r xxxxxxxxxxxxx
done

(with the delay between inputs, there are no disconnects - so in a way, now the outer while loop is useless.)

Cheers
Dan

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

1 participant