sunfounder / SunFounder_PiCar-V

Smart Video Car Kit V2.0 for Raspberry Pi from SunFounder
GNU General Public License v2.0
111 stars 175 forks source link

Remote control connection hangs and freezes #16

Open samueljmorris opened 5 years ago

samueljmorris commented 5 years ago

When I connect to the PiCar via WiFi, the client periodically hangs, the video freezes, and the car will continue whatever command it received last. Often, this results in the PiCar crashing into an object.

The issue is the most common using the Python client on Windows.

Using the web interface instead of the Python client helps, but it still freezes from time to time.

I have tried using both the Raspberry Pi 3 B onboard wifi and the supplied Ralink adapter.

The issue occurs even if the WiFi link quality shows as 70/70 in ifconfig.

When it is frozen, the Pi itself is still working normally but the output of the server process does not show any new commands being received.

sunfounder commented 5 years ago

Hi samueljmorris

Your question, I have sent feedback to our engineers to detect, if they give any results, I will inform you immediately, if there are other questions, please contact us anytime, we will try our best to solve it for you.

Best Regards Jake

support@sunfounder.com

From: samueljmorris Date: 2018-07-24 10:20 To: sunfounder/SunFounder_PiCar-V CC: Subscribed Subject: [sunfounder/SunFounder_PiCar-V] Remote control connection hangs and freezes (#16) When I connect to the PiCar via WiFi, the client periodically hangs, the video freezes, and the car will continue whatever command it received last. Often, this results in the PiCar crashing into an object. The issue is the most common using the Python client on Windows. Using the web interface instead of the Python client helps, but it still freezes from time to time. I have tried using both the Raspberry Pi 3 B onboard wifi and the supplied Ralink adapter. The issue occurs even if the WiFi link quality shows as 70/70 in ifconfig. When it is frozen, the Pi itself is still working normally but the output of the server process does not show any new commands being received. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

samueljmorris commented 5 years ago

Thank you for following up! I have looked into the issue more on my end, and it seems to occur when the WiFi signal strength drops too low and packet errors start occurring. Wireshark shows lots of duplicate ACK packets, out of order packets, and spurious retransmissions when it hangs.

Is there a way to use some kind of watchdog that will stop the car's motion if the connection times out?

My main concern is that the car keeps moving in whatever direction it was last going when the connection hangs.