jeanlemotan / esp32-cam-fpv

esp32 cam digital low latency fpv
MIT License
292 stars 75 forks source link

Fix no WiFi RF packet send issue and upgrade to IDF v4.4(latest) #23

Closed lida2003 closed 1 year ago

lida2003 commented 1 year ago

Please test this PR before merge. As my gs is NOT working(black screen issue).

Please consult @JulesThuillier @rottaran 's point of view in esp-idf 4.3 + latest code(56ee43e) constantly reboot #16 .

Please let me know: 1) If this PR works 2) Please try latest gs code 3) are you using Pi 4 hardware?


a) Compiled with IDF release/v4.4 commit(9ee3c83) b) AI Thinker(PSRAM 2MB), log shows RF packet send ok c) WANLAN error changed to hex format; Board status refines prints d) TX/RX/SD task increased stack size for overflow issues e) Remove sdkconfig file, which will be generated automatically

Note: sdkconfig will cause interface error issue, which might be root cause IDF compatibility.

jeanlemotan commented 1 year ago

I will try this weekend to check all the pending issues: RPI3 & Ubuntu not rendering, using IDF 4.4 and 5 and any other.

lida2003 commented 1 year ago

Close and prepare seperated PRs.

And there is a new rate API related fix, see Fix rate adjustment bug and update README.md #28

jeanlemotan commented 1 year ago

I managed to fix this issue locally by editing the sdkconfig to free as much IRAM and heap, pin some tasks to some cores and general tweaking. From the looks of it (and very brief debugging with the laptop on the couch) it looks like the packets get stuck in the wifi driver and they never get released.

jeanlemotan commented 1 year ago

the sdkconfig is committed, let me know if it's ok on your side

lida2003 commented 1 year ago

Please check IDF4.4.4 sd_enqueue_proc stack issue #31

PS: I can't add comment this morning, really bizarr.......

jeanlemotan commented 1 year ago

Fixed.