-
Notifications
You must be signed in to change notification settings - Fork 53
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
Wifi image streaming hangs, when executed multiple times. #106
Comments
I often encounter this problem as well, independent of the chosen encoding. In my (limited) testing this seems to be related to the camera itself to be freezing, in which case the capture task simply never finishes (the official GAP8 SDK driver for the camera has forever loops, rather than timeouts in several places). |
Ok at least it seems to be not a problem of my setup. Did you find any solving for that or workaround to improve the behavior? It really frustrates me to always restart and reconnect. |
On the hardware level it seems to be related to the power management somehow. So fresh batteries help sometimes. But generally, we also go the route of frequent rebooting, unfortunately. It is possible to reboot wirelessly, which eases the pain a little bit. |
I will link another issue here too bitcraze/crazyflie-firmware#1205
|
Thanks for the input! |
I am not sure if it helps - but I did play a bit with the face detection example in the last days and even though I can't really explain all my observations, they led to some workarounds. I noted that You do find code for the camera cmd resend in the face detection pull request I just pushed: #113 Let us know if this helps you in some way, |
I tested this today with main/master of everything (nrf, stm, esp, gap8). It seems like the behavior is even worse than before. It starts well and then the connection freezes about 30s later (verified with 2 AI decks that used to work ok). I am typically also connected via the cfclient (so bitcraze/crazyflie-firmware#1205 applies), although I didn't notice any ESP disconnects. Note that I have used streaming+radio connection successfully about a year ago, although with a relatively low fps (see also #137). I tried the suggestions from @hmllr, especially the workaround for start/stopping the camera if needed. In my experiments that didn't help much. The additional prints helped me to narrow it down to the GAP8 being stuck at the It would make sense to do these long/infinite flight tests with an ai deck streaming data to get this very basic feature reasonably reliable. |
I've added this to the triage meeting list. This week we are too occupied but we hope for in 3 weeks we will have an opportunity to discuss this. |
Is there any update? I also found the camera stuck at |
No update I'm afraid. We couldn't find a fix for this, but it is interesting to see that on the bolt the problem is worse. Perhaps it is due to the deck not getting enough supply due to that... |
I am running the crazyflie and the AI deck on the latest firmware and try to use the image streaming in an application.
When I first connect the ai deck wifi to my computer and start the opencv-viewer.py everything works fine and I can access the streamed images. However, when I do this a second or a third time, so stop the python script and start it again, it hangs at the following step:
In rx_bytes it looks like that there is nothing received over the socket and the loop
just runs infinite.
When I power off the cf and then restart it again and newly connect the wifi it works again, but also only one or two times until the same problem again occurs.
I tried with another AI deck but this doesn't changed the behavior.
I flashed the AI deck with the
streamerMode = JPEG_ENCODING
option.Do you maybe know what is the problem here?
Thank you very much in advance!
The text was updated successfully, but these errors were encountered: