2020-10-16 02:58 AM
Hello ST Teams!
Question again!
I'd like to set up an access point on my st_image_core, SDK1.2
i've added hotspot in layer append, and i can configure hostapd.conf
I've followed the howto :
https://wiki.st.com/stm32mpu/wiki/How_to_configure_a_wlan_interface_on_hotspot_mode
But it seems that somethings goes wrong. Even if i try with your st-hotspot-wifi-service.sh.
My question is:
Do i need to add a dhcp server like udhcp server (udhcpd)?
I've looked on the starter kit for DK2, and i cannot find any of these! What package from Starter kit I need to import to make things work?
What am i missing?
Seeya!
Solved! Go to Solution.
2020-11-04 06:00 AM
Hello , after a big struggle, i've find the main problem:
if i use "networkctl status wlan0" on my board with AP enabled (using st-hotspot-wifi.service.sh)
I get:
wlan0
Link File: /lib/systemd/network/99-default.link
Network File: /lib/systemd/network/51-wireless.network
If i do the same with DK2 ,AP enabled via st-hotspot-wifi.service.sh
wlan0
Link File: /lib/systemd/network/99-default.link
Network File: /lib/systemd/network/hostapd.network
If i delete 51-wireless.network, all is going fine.
It might be obvious for a linux king, but not so for a french frog linux user.
seeya!
2020-10-16 05:47 AM
Hello,
Could you share error messages (if any) or related logs ?
Did you use a custom board or the DK2 ?
Is the WLAN works on device mode ?
Did you setup all related stuff (supplies if different on your board, SDMMC, sideband controls, etc...) ?
Regards.
2020-10-16 06:15 AM
Hello PatrickF, thanks for answering me!
Error messages: not at all. AP dont give me any IP.
I can see my access point via my phone, try to connect to, but no result
I use a custom board, with st-image-core on it, with some appends and removes on local.conf.
Wlan works with my custom board, i can ping the internet when wlan0 is up and has an assigned ip.
I could try with dk2, but dk2 have st-image-weston on it (= starter kit right?), and i'd like to use a distro wich is less 'complete'.
Did you setup all related stuff (supplies if different on your board, SDMMC, sideband controls, etc...) ?
No, i followed the "how to hotspot mode"
I've been able to setup an access point(connect to it, have ip) by adding a (generic) udhcpd.conf . (Seems to config busybox dhcp server). But i don't see this kind of file in dk2.
I followed this procedure from murata Wifi/bt quick start guide
killall wpa_supplicant
ifconfig wlan0 192.168.1.1 up
udhcpd -S -I 192.168.1.1 /etc/udhcpd.conf
hostapd -B /etc/hostapd.conf
What i don't understand, that i dont see any reference about these lines/config on the howto hotspot mode / i believe that i'm missing a packet/append from the yocto build.
Have a nice weekend!
++
2020-11-04 06:00 AM
Hello , after a big struggle, i've find the main problem:
if i use "networkctl status wlan0" on my board with AP enabled (using st-hotspot-wifi.service.sh)
I get:
wlan0
Link File: /lib/systemd/network/99-default.link
Network File: /lib/systemd/network/51-wireless.network
If i do the same with DK2 ,AP enabled via st-hotspot-wifi.service.sh
wlan0
Link File: /lib/systemd/network/99-default.link
Network File: /lib/systemd/network/hostapd.network
If i delete 51-wireless.network, all is going fine.
It might be obvious for a linux king, but not so for a french frog linux user.
seeya!