When will esp_hosted_ng spi support AP mode
Opened this issue · 25 comments
i need esp32 as a ap mode device,so i want to know When will esp_hosted_ng spi support AP mode,thank you.
We're working on adding softAP support for NG, but it'll take some time to merge it into the master branch.
If you want to test it early, I've attached 2024.04.24_softap_patch.tgz
for you to try. Please check the readme.txt for instructions.
We're working on adding softAP support for NG, but it'll take some time to merge it into the master branch. If you want to test it early, I've attached 2024.04.24_softap_patch.tgz for you to try. Please check the readme.txt for instructions.
Thank you very muck ,I will try it.
@mantriyogesh Hi , I download this patch,and try it ,but I get this log ,why esp32 init sta mode
log in my linux host NUC980
@Shreyas0-7 , can you please check this?
Hey @kangpei1 default mode is sta mode you can start AP mode using hostapd
- write your configuration for your AP in file such as host.conf
- start AP mode using
hostapd host.conf
command
hi @Shreyas0-7 @mantriyogesh I have solved the linux host network init faild problem, I try start ap mode,but its not success.
@PercyHide Is it possible for you to attach sniffer capture, also please post hostapd logs and dmesg logs
@Shreyas0-7
1,my linux log
linux_log.txt
2,my host.conf
3,my esp32 log
i think i have the same problem with #415.
1,when i used 2024.04.24_softap_patch.tgz ,i can have a wifi ,but i cant connect it.
2,when i used master , i can get wlan0, but i cant have a wifi. and i get the log
Hello @PercyHide , I doubt your SPI porting has some issues. Porting is one time activity, which you would have already performed, but may still have done issues.
If you import selective code from
does it help?
Please include this line and dependent code from FG file to ng file and reflash ESP and try again
What I meant, before evaluation of networking (be it sta or softap), I think it is worth to evaluate the underlying transport.
If above doesn't work, do you have logic analyser?
What I meant, before evaluation of networking (be it sta or softap), I think it is worth to evaluate the underlying transport.
If above doesn't work, do you have logic analyser?
i am sorry,i used esp_host_ng, and i dont have logic analyser.
the sta mode i used is ok ,and i want to confirm did the master have support soft ap mode?
@mantriyogesh I have a question
The v1.0.3 matser in esp_spi.c
funtion :static void esp_spi_work(struct work_struct *work)
hardware_type dont have be a value; its different in last version, so when i used v1.0.3 ,i cant get wlan0, my spi didt work normal because trans.cs_change didt be 1, when i Assign trans.cs_change value of 1, my spi work normal, i can get wlan0.
Hello @PercyHide , I doubt your SPI porting has some issues. Porting is one time activity, which you would have already performed, but may still have done issues.
If you import selective code from
does it help?
Please include this line and dependent code from FG file to ng file and reflash ESP and try again
i have try it , i also cant connect the ap
right, this message is not from transport, but from:
which is registered in slave only,
I will leave @Shreyas0-7 to further check on this in the AP debug direction, as this frame is received from slave side Wi-Fi driver, as I can observe.
BTW, You can ignore #376 (comment)
right, this message is not from transport, but from:
which is registered in slave only,
I will leave @Shreyas0-7 to further check on this in the AP debug direction, as this frame is received from slave side Wi-Fi driver, as I can observe.
BTW, You can ignore #376 (comment)
OK, Thank you , What can i do next?
@Shreyas0-7 PTAL..
@PercyHide Is it possible for you to capture sniffer?
@PercyHide Is it possible for you to capture sniffer?
Sorry , i cant
I suspect connection is not going through because RSN IE is not present in assoc req
wlan0: STA 50:84:92:04:75:9f IEEE 802.11: authenticated
wlan0: STA 50:84:92:04:75:9f IEEE 802.11: No WPA/RSN IE in association request
To confirm this I might need sniffer capture
I suspect connection is not going through because RSN IE is not present in assoc req
wlan0: STA 50:84:92:04:75:9f IEEE 802.11: authenticated
wlan0: STA 50:84:92:04:75:9f IEEE 802.11: No WPA/RSN IE in association request
To confirm this I might need sniffer capture
Maybe you can tell me ,what should i do.
Here are steps, can you please try this to capture sniffer
If you are using a Windows machine, try: https://www.youtube.com/watch?v=As9BUoOMk_A
If you are using an iOS machine, try: https://youtu.be/hxtgin0hgf8?si=nRvTdL24KiKHOPIs
If you are using a Linux machine do iwconfig, and select interface which you are not using
For example your interface is wlp0s20f3, try:
ifconfig wlp0s20f3 down
iwconfig wlp0s20f3 mode monitor
ifconfig wlp0s20f3 up
iwconfig wlp0s20f3 channel 6
wireshark
Please note that a lot of WiFi cards (NIC) don't support putting them in monitor mode. So it is vital to check the compatibility of your laptop's NIC.
Hope that helps.