wifi tcp transmission: configure to get the best for streaming application

abcdcadb
Posts: 36
Joined: Mon Aug 07, 2017 1:28 am

wifi tcp transmission: configure to get the best for streaming application

Postby abcdcadb » Tue Dec 26, 2017 4:19 am

I just finished a streaming video (stored in sd card of esp) via wifi tcp ( by samba protocol), however for a big video (high resolution and big fps), esp almost drops down after a moment, especially when enabling bluetooth.

I suspect that some parameters of wifi weren't configured well to support for a massive buffer transmission. I found out some which seem relevant: (could be configured in menuconfig)
1/ max number of wifi dynamic tx buffer ( set max value 128)
2/ WiFi AMPDU TX BA window size ( if too high, the streaming is stopped with "wifi: alloc eb len=196 type=2 fail", too low: the Wifi access point is down(disappear during streaming).
3/ Default send buffer size ( as my testing, higher,better, so i set 600000

So, i hope to get experiences to configure wifi to contribute the best result, if there is anymore parameter which I need to consider, I also am grateful to know

snahmad75
Posts: 445
Joined: Wed Jan 24, 2018 6:32 pm

Re: wifi tcp transmission: configure to get the best for streaming application

Postby snahmad75 » Wed Sep 05, 2018 3:33 pm

I am using Http Web server with SD card.

I am getting similar error
wifi: alloc eb len=192 type=2 fail

I am using WIFI with external RAM.

Internal Heap free: 41120
Heap free: 4195984:4233744


Plenty of external ram and some internal RAM.

Does in default settings WIFI only uses internal ram.

Who is online

Users browsing this forum: Bing [Bot] and 257 guests