Page 1 of 1

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

Posted: Fri Mar 10, 2017 7:29 pm
by stas1727
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
}

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

Posted: Wed Mar 22, 2017 2:03 pm
by ESP_Faye
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!

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

Posted: Tue Mar 28, 2017 9:39 pm
by stas1727
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.

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

Posted: Thu Apr 06, 2017 10:21 am
by Her Mary
Are you using the latest ESP8266 RTOS SDK https://github.com/espressif/ESP8266_RTOS_SDK

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

Posted: Sun Apr 09, 2017 11:51 pm
by stas1727
yes, master branch

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

Posted: Fri Apr 14, 2017 5:29 pm
by ESP_Faye
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!