cancel
Showing results for 
Search instead for 
Did you mean: 

Hotspot mode on st_image_core

Eldam
Senior

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!

This discussion is locked. Please start a new topic to ask your question.
1 ACCEPTED SOLUTION

Accepted Solutions
Eldam
Senior

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!

View solution in original post

3 REPLIES 3
PatrickF
ST Employee

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.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
NEW ! Sidekick STM32 AI agent, see here
Eldam
Senior

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!

++

Eldam
Senior

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!