How to Set Up Wi-Fi Peer-to-Peer (P2P) Between Luckfox Lyra Ultra W and Mobile/PC?
Posted: 2025-09-17 9:52
I’m developing a handheld application on the Lyra Ultra W and need to establish a direct, offline Wi-Fi connection (peer-to-peer) with a smartphone or PC for file transfer . I’ve looked into Wi-Fi Direct but haven’t been able to get it working on my device.
Here’s my setup:
Hardware: Luckfox Lyra Ultra W (ARM64 Linux)
Host OS: ubuntu with wpa_supplicant and iw installed
Use case: Transfer files and receive control commands without an AP or internet
what i tried:
got to know about AIC8800DC module which support P2P connection
I would greatly appreciate guidance on:
1.Configuring P2P Group Owner (GO) mode on the Lyra Ultra W.
2.Example wpa_supplicant.conf or hostapd.conf snippets for P2P GO and client.
3.Any required kernel modules, driver options, or firmware tweaks.
4.CLI commands (using iw, wpa_cli, etc.) to initiate discovery, group formation, and connection.
5.Troubleshooting tips if peers aren’t discovered or connections keep dropping.
Thank you in advance for any advice, sample configs, or pointers to documentation.
Here’s my setup:
Hardware: Luckfox Lyra Ultra W (ARM64 Linux)
Host OS: ubuntu with wpa_supplicant and iw installed
Use case: Transfer files and receive control commands without an AP or internet
what i tried:
got to know about AIC8800DC module which support P2P connection
Code: Select all
root@luckfox:~# iw phy
Wiphy phy0
........
Supported interface modes:
* managed
* AP
* AP/VLAN
* monitor
* mesh point
* P2P-client
* P2P-GO
* P2P-device
1.Configuring P2P Group Owner (GO) mode on the Lyra Ultra W.
2.Example wpa_supplicant.conf or hostapd.conf snippets for P2P GO and client.
3.Any required kernel modules, driver options, or firmware tweaks.
4.CLI commands (using iw, wpa_cli, etc.) to initiate discovery, group formation, and connection.
5.Troubleshooting tips if peers aren’t discovered or connections keep dropping.
Thank you in advance for any advice, sample configs, or pointers to documentation.