cancel
Showing results for 
Search instead for 
Did you mean: 

How to send data via WiFi through a softAP?

BBecs.1
Associate II

Hello,

I am struggling to send data via a softAP over WiFi. Setting up the softAP and connecting to it from another device works well. Now, I would need to bind the newly created socket to the desired port and that's where it fails for me. I don't know if I am approaching the problem quite correctly. In my understanding, I would need to then listen on that port for a connection from another device and then either send or receive data through it. Thank you for your help. Source file is attached.

Sincerely,

Barna Becsek

5 REPLIES 5
Guillaume K
ST Employee

Hello

Could you precise which STM32 / board you are using ? is it B-L475E-IOT01 with Inventek WiFi module ?

what function fails exactly ?

do you have a log ?

if you are using B-L475E-IOT01 it would be nice to have a trace of the AT commands sent to the Inventek WiFi module (and the answers).

it's in Drivers\BSPv2\Components\es_wifi\es_wifi.c, add #define ES_WIFI_DEBUG_MODE.

the AT command traces are printed with ES_WIFI_DEBUGCMD macro in AT_ExecuteCommand()

Guillaume

Cvega.11
Associate II

hello my friend

I managed to configure the module with the stm32cubeide editor with the only drawback that sometimes it loads the page and sometimes it doesn't

I don't know where I have to modify the response times

timeout??

BBecs.1
Associate II

Dear @Cvega.1​ ,

thank you for your help. As far as I understood thought you are connecting to an existing wifi network. I would really like to create my own software access point and have others connect to it.

BBecs.1
Associate II

Dear @Guillaume K​ ,

I was using the STEVAL-WINKT1 with the ISM43362 Inventek WiFi module.

What does not work is binding a TCP socket to a port for communication. I was able to have devices join the network, but in order to exchange data, I would need to have an open socket which is bound to a certain port and listen on that port for incoming communication.

Additionally, there is this known (unresolved?) bug with the mentioned WiFi module, which unfortunately I only saw after purchasing it

https://community.st.com/s/question/0D50X0000BdfmuaSQA/soft-ap-does-not-work-with-the-cube-example-for-bl475eiot01a-with-ism43362

I have in the meantime moved to another manufacturer, as was suggested to me by someone from ST. There, I was in fact able to make it work.

To which module did you switch friend, you tried this example on your board, did it serve 100?

https://os.mbed.com/teams/ST/code/DISCO_L475VG_IOT01-wifi_http_server/file/a544e9eba8fb/main.cpp/

I implemented the example mentioned for another stm32 board but I just turned off the led and it turned on twice and then I no longer have access to the web server with the ip the page fell

I want to know if for the DISCO_L475VG_IO 1A board it works or fails the same?

Should I update the firmware?