【Question】How to improve wifi send data rate?

Yongxiang
Posts: 2
Joined: Wed Sep 15, 2021 11:36 am

【Question】How to improve wifi send data rate?

Postby Yongxiang » Mon Sep 27, 2021 6:30 am

  1. while(true){
  2.         if(status == WIFI_CONNECTED){
  3.             //the raw buffer len must be <= 1500 Bytes and >= 24 Bytes
  4.         err = esp_wifi_80211_tx(WIFI_IF_AP, ds2ds_pdu, sizeof(ds2ds_pdu), true);
  5.         ESP_LOGE(TAG, "Send wifi data. (%s)", esp_err_to_name(err));  
  6.             //sys_delay_ms(1000);
  7.         }
  8.     else{
  9.         sys_delay_ms(5000);
  10.         printf("continue... \n");
  11.     }
  12.     }
This is the code for sending wifi data frame continuously. But I can't get the ideal rate because of the err "(ESP_ERR_NO_MEM)". The result as follow. How can I resolve this question? The actual valid rate is about 720kbps which is too low. Why does the API "esp_wifi_80211_tx" send data so slowly?
Thanks for anyone answer my question!
未命名图片.png
err result
未命名图片.png (60.57 KiB) Viewed 896 times

Who is online

Users browsing this forum: No registered users and 109 guests