espressif / esp-mdf

Espressif Mesh Development Framework, limited maintain, recommend to use https://github.com/espressif/esp-mesh-lite
Other
774 stars 253 forks source link

ESP mesh Throughput measurement. #304

Open yemirabalaraju opened 2 years ago

yemirabalaraju commented 2 years ago

Hi , I am trying to measure throughput by transferring 1Kbytes of data between Node to Root node. and below is my observations

With NO Hops: 1.9Mbps for 1KB file transfer With One HOP : 1.01Mbps for 1KB file transfer With TWO Hops: 0.9Mbps. for 1KB file transfer

Point i wanted to understand: If File Size increase from 1KB to 4KB, throughput becomes 0.11Mbps. Some where I read that ESP MESH data-rates is max of 10Mbps. is this truly achievable for a file transfer.

Setup: From a Node, i am transmitting 1KBytes of data to Root Node. Measuring time-diff between using "esp_timer_get_time".

Previoustime= esp_timer_get_time(); ret = mwifi_write(NULL, &data_type, data, size, true); // Transfering 1024 bytes from NODE to ROOT node Timediff = ((esp_timer_gettime()-Previoustime )/1000); printf("\n NODE Tx Time: %lld mSec FILE SIZE: %d ",Timediff,sizeBUFF_REPEAT_COUNT); printf(" ThroughPut: %f Mbps",(((BUFF_REPEAT_COUNTsize*8)/(float)Timediff)/1000));

Thanks