-
Notifications
You must be signed in to change notification settings - Fork 7.6k
wifi: fix esp32 dual antenna issue #6841
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
Conversation
Please explain well what was the issue, how does it behave differently now and so on. @pedrominatel PTAL |
|
Thank you for the detailed information about the issue and the solution, @MaxwellAlan. Can you re-test, @SensorsIot? |
My test results:
Running time on each scenario: 5 min. Log output: Before fix
After fix
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks @MaxwellAlan and @pedrominatel |
Cool. Thank you! |
Background
Issue Descrition
According to the schematics of ESP32-WROOM-DA, there is no inverter chip(SN74AUP1G04 is NC), which means that we should use two gpio(pin 2 & pin 25) to control RTC6603SP.
While the true table of RTC6603SP shows that we only input with 1 & 0 or 0 & 1, 0 & 0 or 1 & 1 are invalid.
According to idf docs: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/wifi.html?highlight=antenna#wi-fi-multiple-antennas , below sample code means(comments inline):
Description of Change
WiFi: fix esp32 dual antenna not real work issue.
Tests scenarios
Since the gpio 2 is not led out to the module, so we test with gpio 18 & 25.
Test Result
pin18_and_pin25.csv
Related links
https://www.youtube.com/watch?v=F0u5qIwwY1k
espressif/esp-idf#8824