Page 1 of 1
How to set pico ultra w as AP
Posted: 2025-01-25 13:53
by keens312@hotmail.com
Hello support team,
The wifi module works fine on my pico ultra w.
But there is no docs tells how to set the wifi module as Access Point.
Can you tell me how to set it as AP?
Re: How to set pico ultra w as AP
Posted: 2025-01-26 2:37
by Crocodile
Hello, the method to enable a hotspot in Buildroot is as follows:
1.Bring up wlan0 and set IP:
Code: Select all
ifconfig wlan0 up
ifconfig wlan0 192.168.4.1
2.Configure dnsmasq.conf to assign IPs to connected devices,you can open and create /etc/dnsmasq.conf using vi:
Code: Select all
interface=wlan0
dhcp-range=192.168.4.2,192.168.4.20,255.255.255.0,24h
3 Start dnsmasq:
4 Configure hostapd.conf, you can open and create /etc/hostapd.conf using vi:
Code: Select all
interface=wlan0
driver=nl80211
ssid=<replace with the desired WiFi name>
hw_mode=g
channel=6
wmm_enabled=0
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=<replace with the desired WiFi password>
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
5 Start hostapd, after which you can connect to the hotspot: