2025-10-20 1:54 PM
Hi guys, im making system wchis is sampling data from 2 microphone channels.
I need to make it pass at least 8 kHz/8 bit/2ch data which i already did. The problem is that i'd like to increase the audio quality of transmitted data, and it's easy on the DFSDM and microphone site BUT:
The maximum internet speed that i archieved is: 182,4 kb/s and i know from datasheet that it can be up to 72,2 Mb/s ("IEEE 802.11n D7.0 -OFDM-72.2 Mbps -single stream w/20 MHz, Short GI").
So lets get to my code:
I'm using configuration files included in STM example:
These files limit the pocket size of IP frame to 1200 bytes and dont support the fragmentation if we send for example 2400 bytes array.
To simulate and test the bandwidth i assumed it will be best:
1. to reduce timeout of wifi:
#define WIFI_WRITE_TIMEOUT 100
#define WIFI_READ_TIMEOUT 100
(it was originally 10000).
2. Make dummy data before the while loop:
for (i = 0; i < ES_WIFI_PAYLOAD_SIZE; i++) {
DummyData[i] = 255;
}
and send as many pockets to measure the speed:
while (1) {
WIFI_SendDataTo(Socket, (uint8_t*) DummyData, (ES_WIFI_PAYLOAD_SIZE), &sentLen, 10, BcastIP, LOCAL_PORT);
}
What i counted in wireshark is that in 1 second i recive 18 or sometimes 19 pockets with 1200 bytes each it is: 182,4 kb/s. Could you tell me what to do to increase the speed of this connection?
What i thought was to increase the clock speed of SPI3 in es_wifi_io.c file and so I did it... and guess what it didnt work.
I will be very thankfull with any help.
Filip :)
2025-10-20 2:08 PM
> i know from datasheet that it can be up to 72,2 Mb/s ("IEEE 802.11n
To reach this speed, the wi-fi must have a decent host interface: master DMA or, at least, fast SPI with DMA. 10 MHz is not fast.
2025-10-20 2:12 PM
Yeah, i know i wouldn't get the full speed of 72,2 Mbps with 10MHz, it is said it can be archieved with 20MHz in datasheet: "IEEE 802.11n D7.0 -OFDM-72.2 Mbps -single stream w/20 MHz, Short G".
The problem is that the speed im getting is very, very low (182,4 kbps).....