wifi: fix esp32 dual antenna issue#6841
Merged
Merged
Conversation
6 tasks
Member
|
Please explain well what was the issue, how does it behave differently now and so on. @pedrominatel PTAL |
Contributor
Author
|
Member
|
Thank you for the detailed information about the issue and the solution, @MaxwellAlan. Can you re-test, @SensorsIot? |
Member
|
My test results:
Running time on each scenario: 5 min. Log output: Before fix After fix |
Member
|
Thanks @MaxwellAlan and @pedrominatel |
|
Cool. Thank you! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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