How to determine MRF24WG0MA wifi bottleneck

wifi

I have a PIC32 running a MRF24WG0MA (which is a b/g wifi transceiver which supports up to 11MBaud on b and 54Mbaud on g).

I have measured the sustained transmission thruput over several minutes at approximately 800 KBaud. I was hoping to get several MBaud.

I get MBaud speed from a laptop on the wifi network so I don't think it is an infrastructure problem.
I think it is either the PIC32 or the MRF24 chipset.

What is the best way to determine where the bottleneck is?

Currently my approach is to first analyze the packet timing with WireShark, then dive into the TCP/IP Stack provided my Microchip.

Best Answer

You can try tweaking the SPI up to 20M instead of the default 10M (WF_MAX_SPI_FREQ). Setting the optimization to 3 helps too. Also make sure you try the latest libraries.

Are you using iperf to measure the throughput or just monitoring file transfers? iperf will give you more consistent test results.