joycontrol
joycontrol copied to clipboard
Disconnect issue might be related to input rate or absence thereof
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