-
Notifications
You must be signed in to change notification settings - Fork 170
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
[ESP32 FG mode, stm32mp131 host, sdio mode] WiFi transmission rate #497
Comments
before running iperf, check issues in raw throughput and stabilise them. Please send photo captured of your setup. Also, please ensure that the porting guide is followed. |
We tested it on the PCB board, and SDIO has pull-up capabilities |
|
Also, when will esp_hosted_ng release a version that supports SoftAP ? |
4.7K is not acceptable value, btw. check the porting guide. Try to stick with the values we use. For ESP32-WROOM32, the efuse_burning is mandatory. From above log, host tx seems good (still there is chance to be higher, but at is fair enough). Can you let us know what (blue and yellow) extra wires added beside esp32? |
NG supports softAP already. |
efuse_burning has been done as required. extra wires (blue and yellow) added beside esp32 is serial port firmware burning related cables. |
Does the latest NG code on the master branch already support SoftAp? When compiling ko, just add CONFIG_AP_SUPPORT, |
Just add Latest ng firmware to be used from master. It should already support softap. |
NG no longer supports softap+station ? |
NG doesn't yet support softap+station. |
How long does it take for NG support softap+station |
It is not currently planned. so can't commit. |
|
how to enable wifi atuo reconnect after disconnected in FG station wifi mode ? |
Short answerCustomise disconnected: Add hook of Long answer
Note
Let us know if you face any difficulty. |
Your method is to listen for the disconnection message and then restart the connection on the host side. What I want is for the ESP32 chip station to be able to reconnect to the previously set AP hotspot by itself when rescanning the hotspot. |
Just to understand this clearly, so do you mean that one every reboot, esp should auto connect to the prior AP (or router) it was connected to. If host triggered connect with new credentials, these new credentials should become default credentials. Is this the complete context? Anything I missed? |
In addition to reboot, there is another scenario where the station disconnects when the signal is poor, and the ESP32 chip can automatically reconnect when the signal is restored |
The main intention is that host should be notified on disconnect as soon as possible. May be we retry 1-2 times and then send the disconnect to host. The main problem here is that host wouldn't even know that the network is disconnected. This is a typical ownership issue. In hosted ideology, we intend to control slave from host and host should be always and ASAP consistent with esp state. As workaround, When this macro is enabled and flashed, the slave would try to reconnect with above config, before sending the disconnect notification to host. Note Word of caution: Unless this disconnect is received at host, host still thinks that it is connected (which is or should be transient state, but still invalid state) Please let me know if this covers the scenario? |
right |
We will make this change and notify you, once fixed. |
This is little confusing, are your using ESP softap (softap mode) ? or using external AP (station mode) ? WRT station mode In sync way of connection, if the APIs is not returned till the time AP is either connected / failed to connect. As in manual way of connect, you are getting the connection successful or failure, the event was not triggered. The 'Connected' event is treated for non manual (auto disconnect->connect) case. |
see the |
station mode. |
No, if you are referring to auto connect right from slave (without informing host). Here, in macro , we just need to call up As in commit c7acb70, already, slave is saving the SSID-Password in NVS(encrypted flash), esp_wifi_connect() should retry the same SSID and password from NVS. But care should be taken to not waste a lot of time, in retries. As host is unaware of this disconnection. |
Checklist
How often does this bug occurs?
always
Expected behavior
WiFi transmission speed can reach the expected level
Actual behavior (suspected bug)
The actual transmission rate of WiFi downlink TCP is 1.18 Mbits/sec
raw transport throughput
Error logs or terminal output
Steps to reproduce the behavior
1、insmod esp32_sdio.ko
2、iperf3 -s -i 1 -p 2222
3、iperf3 -c 192.168.2.144 -p 2222 -i 1 -t 30 -P 5 -R
Project release version
master
System architecture
other (details in Additional context)
Operating system
Linux
Operating system version
Linux version 5.15.67
Shell
sh
Additional context
No response
The text was updated successfully, but these errors were encountered: