FreeRTOS, unable to data transfer between stations in the soft-AP mode

stas1727
Posts: 3
Joined: Fri Mar 10, 2017 7:11 pm

FreeRTOS, unable to data transfer between stations in the soft-AP mode

Postby stas1727 » Fri Mar 10, 2017 7:29 pm

Hello,
I want to connect 3 ESP boards in station mode to the ESP board in AP mode. And connect from linux to the ESP AP board too.
Testing this configuration I've found that stations can't talk each other, only to AP.

If I run simple Arduino sketch on AP board, all stations can talk each other.

FreeRTOS minimal code:

Code: Select all

#define UDP_SERVER_AP_NAME "TEST-AP"
#define UDP_SERVER_AP_PASWORD "TEST-AP-PASS0001"

void user_init(void) {
    wifi_set_opmode(SOFTAP_MODE);

    struct softap_config* config = (struct softap_config*) zalloc(sizeof(struct softap_config));
    sprintf((char*) config->ssid, UDP_SERVER_AP_NAME);
    sprintf((char*) config->password, UDP_SERVER_AP_PASWORD);
    config->authmode = AUTH_WPA_WPA2_PSK;
    config->ssid_len = 0;
    config->max_connection = 4;

    wifi_softap_set_config(config);
}


Arduino sketch:

Code: Select all

void setup() {
    pinMode(LED_PIN, OUTPUT);     // set pin as output

    Serial.begin(115200);
    Serial.println();

    Serial.print("Setting soft-AP configuration ... ");
    Serial.println(WiFi.softAPConfig(local_IP, gateway, subnet) ? "Ready" : "Failed!");

    Serial.print("Setting soft-AP ... ");
    Serial.println(WiFi.softAP("TEST-AP", "TEST-AP-PASS0001") ? "Ready" : "Failed!");

    Serial.print("Soft-AP IP address = ");
    Serial.println(WiFi.softAPIP());
}

void loop() {
    digitalWrite(LED_PIN, HIGH);  // set the LED on
    delay(1000);                  // wait for a second
    digitalWrite(LED_PIN, LOW);   // set the LED off
    delay(1000);                  // wait for a second
}

ESP_Faye
Posts: 1565
Joined: Mon Oct 27, 2014 11:08 am

Re: FreeRTOS, unable to data transfer between stations in the soft-AP mode

Postby ESP_Faye » Wed Mar 22, 2017 2:03 pm

Hi,

What do you mean about "stations can't talk each other"? Is it UDP transmission? Is it broadcast?

Thanks for your interest in ESP8266!

stas1727
Posts: 3
Joined: Fri Mar 10, 2017 7:11 pm

Re: FreeRTOS, unable to data transfer between stations in the soft-AP mode

Postby stas1727 » Tue Mar 28, 2017 9:39 pm

ESP_Faye wrote:Hi,

What do you mean about "stations can't talk each other"? Is it UDP transmission? Is it broadcast?


Hello,
UDP unicast transmission.

Her Majesty
Posts: 82
Joined: Mon Oct 27, 2014 11:09 am

Re: FreeRTOS, unable to data transfer between stations in the soft-AP mode

Postby Her Majesty » Thu Apr 06, 2017 10:21 am

Are you using the latest ESP8266 RTOS SDK https://github.com/espressif/ESP8266_RTOS_SDK

stas1727
Posts: 3
Joined: Fri Mar 10, 2017 7:11 pm

Re: FreeRTOS, unable to data transfer between stations in the soft-AP mode

Postby stas1727 » Sun Apr 09, 2017 11:51 pm

yes, master branch

ESP_Faye
Posts: 1565
Joined: Mon Oct 27, 2014 11:08 am

Re: FreeRTOS, unable to data transfer between stations in the soft-AP mode

Postby ESP_Faye » Fri Apr 14, 2017 5:29 pm

Hi,

ESP8266_RTOS_SDK does not have this feature now, sorry for the inconvenience.

STA1 <-> ESP8266 softAP <-> STA2
STA1 and STA2 can not communicate with each other in ESP8266_RTOS_SDK right now, but ESP8266_NONOS_SDK can.

We will add this feature in ESP8266_RTOS_SDK in the future. And we will let you know if there is any update.

Thanks for your interest in ESP8266!

Who is online

Users browsing this forum: No registered users and 1 guest