大家好,正如大家在官方 Issue 中讨论的那样,目前 ESP-IDF 并不支持原生的 P2P (Wi-Fi Direct) 协议栈。这意味着我们无法像使用高端 Linux 芯片(如高通/NXP)那样,在不打断手机互联网连接的情况下与 ESP32 进行大数据量传输。
目前我已通过手动构造 Vendor IE 和处理底层帧,初步实现了 P2P 的 Discovery(感知) 阶段,并正在攻克 Group Formation(连接)。我发现 P2P 的最大优势在于 Wi-Fi Concurrency(并发),即手机可以一边作为STA连接WiFi路由器上网一边通过WiFi P2P连接设备 ...
Search found 7 matches
- Fri Jan 02, 2026 1:43 am
- Forum: ESP-IDF 中文讨论版
- Topic: 关于实现 ESP32 Wi-Fi Direct (P2P) 功能的探讨:填补 ESP-IDF 的空白
- Replies: 0
- Views: 2138
- Thu Jan 01, 2026 9:48 am
- Forum: General Discussion
- Topic: Data Transfer Using Wi-Fi Direct with ESP32 and Establishing Wi-Fi Direct Connection between ESP32 and Android Phone
- Replies: 1
- Views: 2823
Re: Data Transfer Using Wi-Fi Direct with ESP32 and Establishing Wi-Fi Direct Connection between ESP32 and Android Phone
This is not WiFi-Direct. One method to determine if you are using WiFi-Direct is that if your phone need to disconnect its WiFi and then connect your ESP device, it's not through WiFi direct. WiFi direct won't conflict with WiFi STA/AP.
Actually ESP-IDF doesn't support WiFi-Direct till now.
So I'm ...
Actually ESP-IDF doesn't support WiFi-Direct till now.
So I'm ...
- Thu Jan 01, 2026 9:34 am
- Forum: ESP IoT Solution
- Topic: Direct Connection without internet/wifi
- Replies: 2
- Views: 10763
Re: Direct Connection without internet/wifi
You can use bluetooth, WiFi Direct or WiFi-AP mode.
But according to your demonstration, I think any of them is not suitable for you.
1. Bluetooth has an advantage of low power but poor in distance of communication.
2. WiFi Direct has the best effect of connection and communication but needs too ...
But according to your demonstration, I think any of them is not suitable for you.
1. Bluetooth has an advantage of low power but poor in distance of communication.
2. WiFi Direct has the best effect of connection and communication but needs too ...
- Thu Jan 01, 2026 9:20 am
- Forum: ESP-IDF
- Topic: Alternatives to WiFi direct (P2P)?
- Replies: 1
- Views: 5646
Re: Alternatives to WiFi direct (P2P)?
I saw your issue couple of weeks ago and have been trying to implement this P2P function based on ESP-IDF.
please follow my git repository and give me some advice.
https://github.com/AHWang2/ESP-WiFi-P2P-WiFi-Direct
Now this project can let ESP device appear on your android phone's P2P list.
Any ...
please follow my git repository and give me some advice.
https://github.com/AHWang2/ESP-WiFi-P2P-WiFi-Direct
Now this project can let ESP device appear on your android phone's P2P list.
Any ...
- Thu Jan 01, 2026 9:14 am
- Forum: General Discussion
- Topic: Streaming video to phone/P2P/Direct connection
- Replies: 3
- Views: 2856
Re: Streaming video to phone/P2P/Direct connection
Based on this issue, it appears that ESP-IDF currently does not support WiFi Direct functionality, also known as WiFi P2P.
https://github.com/espressif/esp-idf/issues/6522
So I am attempting to implement this feature by developing a P2P function based on ESP-IDF. This is the link to my GitHub ...
https://github.com/espressif/esp-idf/issues/6522
So I am attempting to implement this feature by developing a P2P function based on ESP-IDF. This is the link to my GitHub ...
- Thu Jan 01, 2026 9:08 am
- Forum: ESP IoT Solution 中文讨论版
- Topic: 求助:如何与手机点对点传输(P2P、Direct)
- Replies: 2
- Views: 29219
Re: 求助:如何与手机点对点传输(P2P、Direct)
我尝试解决这个问题,想自己开发一个基于ESP-IDF的P2P功能,这是我的github仓库网址:目前的进展是已经实现了让ESP设备出现在安卓手机的WLAN直连列表上,但还不具备连接功能和数据传输功能。
https://github.com/AHWang2/ESP-WiFi-P2P-WiFi-Direct
我认为WiFi Direct的优势有两个:
1. 相比于传统WiFi-AP和WiFi-STA的工作模式,P2P直连手机时,手机可以不断开当前连接着的WiFi。
2. 相比于其他P2P类型的功能,比如蓝牙,WiFi Direct拥有更大的带宽。
请问你是想在什么场景适用这个功能 ...
https://github.com/AHWang2/ESP-WiFi-P2P-WiFi-Direct
我认为WiFi Direct的优势有两个:
1. 相比于传统WiFi-AP和WiFi-STA的工作模式,P2P直连手机时,手机可以不断开当前连接着的WiFi。
2. 相比于其他P2P类型的功能,比如蓝牙,WiFi Direct拥有更大的带宽。
请问你是想在什么场景适用这个功能 ...
- Thu Jan 01, 2026 9:03 am
- Forum: ESP IoT Solution 中文讨论版
- Topic: 求助:如何与手机点对点传输(P2P、Direct)
- Replies: 2
- Views: 29219
Re: 求助:如何与手机点对点传输(P2P、Direct)
根据这个issue来看,目前ESP-IDF还不支持WiFi Direct功能,也就是WiFi P2P。
https://github.com/espressif/esp-idf/issues/6522
https://github.com/espressif/esp-idf/issues/6522