This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PROCESSOR-SDK-AM335X: WiFi speed low

Part Number: PROCESSOR-SDK-AM335X
Other Parts Discussed in Thread: AM3358

Hello,

In our design, we use mmc3(mmc@47810000) of am3358 to connect to our wifi-sdio module.

Since the pin level of am335x is configured to 3.3V, we used a level conversion chip (LSF0108PWR) to convert the level to 1.8V used by the wifi module.

After power-on, although the WiFi module can work normally, but the WiFi max speed is only 37Mbits/s, which is lower than our expectation(>100Mbits/s).

[root@st-am335x ~] # iperf3 -c 192.168.50.20 -u -b 200M -t 10
Connecting to host 192.168.50.20, port 5201
[  5] local 192.168.50.3 port 57609 connected to 192.168.50.20 port 5201
[ ID] Interval           Transfer     Bitrate         Total Datagrams
[  5]   0.00-1.00   sec  4.25 MBytes  35.6 Mbits/sec  3052
[  5]   1.00-2.00   sec  4.46 MBytes  37.4 Mbits/sec  3200
[  5]   2.00-3.00   sec  4.46 MBytes  37.4 Mbits/sec  3201
[  5]   3.00-4.00   sec  4.46 MBytes  37.4 Mbits/sec  3200
[  5]   4.00-5.00   sec  4.45 MBytes  37.4 Mbits/sec  3198
[  5]   5.00-6.00   sec  4.45 MBytes  37.4 Mbits/sec  3199
[  5]   6.00-7.00   sec  4.46 MBytes  37.4 Mbits/sec  3200
[  5]   7.00-8.00   sec  4.46 MBytes  37.4 Mbits/sec  3201
[  5]   8.00-9.00   sec  4.45 MBytes  37.4 Mbits/sec  3199
[  5]   9.00-10.00  sec  4.46 MBytes  37.4 Mbits/sec  3200
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Jitter    Lost/Total Datagrams
[  5]   0.00-10.00  sec  44.3 MBytes  37.2 Mbits/sec  0.000 ms  0/31850 (0%)  sender
[  5]   0.00-10.00  sec  44.3 MBytes  37.2 Mbits/sec  0.326 ms  0/31839 (0%)  receiver

Using cat got the following information

[root@st-am335x ~] # cat /debugfs/mmc1/clock
50000000
[root@st-am335x ~] # cat /debugfs/mmc1/ios
clock:          50000000 Hz
vdd:            21 (3.3 ~ 3.4 V)
bus mode:       2 (push-pull)
chip select:    0 (don't care)
power mode:     2 (on)
bus width:      2 (4 bits)
timing spec:    2 (sd high-speed)
signal voltage: 0 (3.30 V)
driver type:    0 (driver type B)

Is it because the use of LSF0108PWR and our mmc level does not meet the requirements of 1.8V? If it is, can configuring the data level of mmc to open-drain and pull up with an external power of 1.8V solve the problem?

 Thanks.

  • Hi,

    WiFi throughput depends upon multiple factors , including AP network , RF interference etc. Is AP BSS on 2.4 GHz or 5 GHz band ?

    Thanks

    Saurabh

  • Hi Mr. Saurabh,

    Our AP BSS is on 5 GHz band.

    Besides I use other devices (my laptop) to run the same network speed test on the same network, the speed can reach 200Mbits/s or higher.

    Thank you for your reply.

    qiling wu

  • HI ,

    - can you test this in RF shield room ?

    - change client bandwidth to 50M for example and see if it makes any difference

    - where are you running iperf server ? on wired or wireless device ?

    Thanks

    Saurbah

  • Hi Mr. Saurabh,

    -We run iperf server on wired device.

    -We don't have RF shield room.

    -Since the wifi-sdio module which we use also has USB interface.  The network throughput rate of the test use USB interface can run to 100Mbits/s on the same main control board. So we think the problem is on SDIO. From this point, we want to confirm whether the SDIO driver is not working at a faster timing, such as sdr50, resulting in a low network speed.

    -The test results using different bandwidths are as follows (SDIO interface)

    [root@st-am335x ~] # iperf3 -c 192.168.50.20 -u -b 50M -t 10
    Connecting to host 192.168.50.20, port 5201
    [  5] local 192.168.50.3 port 38091 connected to 192.168.50.20 port 5201
    [ ID] Interval           Transfer     Bitrate         Total Datagrams
    [  5]   0.00-1.00   sec  4.25 MBytes  35.6 Mbits/sec  3052
    [  5]   1.00-2.00   sec  4.45 MBytes  37.4 Mbits/sec  3199
    [  5]   2.00-3.00   sec  4.45 MBytes  37.4 Mbits/sec  3198
    [  5]   3.00-4.00   sec  4.45 MBytes  37.4 Mbits/sec  3199
    [  5]   4.00-5.00   sec  4.45 MBytes  37.4 Mbits/sec  3199
    [  5]   5.00-6.00   sec  4.45 MBytes  37.4 Mbits/sec  3198
    [  5]   6.00-7.00   sec  4.46 MBytes  37.4 Mbits/sec  3200
    [  5]   7.00-8.00   sec  4.45 MBytes  37.3 Mbits/sec  3196
    [  5]   8.00-9.00   sec  4.43 MBytes  37.1 Mbits/sec  3180
    [  5]   9.00-10.00  sec  4.45 MBytes  37.3 Mbits/sec  3197
    - - - - - - - - - - - - - - - - - - - - - - - - -
    [ ID] Interval           Transfer     Bitrate         Jitter    Lost/Total Datagrams
    [  5]   0.00-10.00  sec  44.3 MBytes  37.2 Mbits/sec  0.000 ms  0/31818 (0%)  sender
    [  5]   0.00-10.00  sec  44.3 MBytes  37.2 Mbits/sec  0.321 ms  0/31807 (0%)  receiver
    
    iperf Done.
    [root@st-am335x ~] # iperf3 -c 192.168.50.20 -u -b 30M -t 10
    Connecting to host 192.168.50.20, port 5201
    [  5] local 192.168.50.3 port 50218 connected to 192.168.50.20 port 5201
    [ ID] Interval           Transfer     Bitrate         Total Datagrams
    [  5]   0.00-1.00   sec  3.57 MBytes  30.0 Mbits/sec  2567
    [  5]   1.00-2.00   sec  3.58 MBytes  30.0 Mbits/sec  2569
    [  5]   2.00-3.00   sec  3.58 MBytes  30.0 Mbits/sec  2568
    [  5]   3.00-4.00   sec  3.58 MBytes  30.0 Mbits/sec  2568
    [  5]   4.00-5.00   sec  3.57 MBytes  30.0 Mbits/sec  2564
    [  5]   5.00-6.00   sec  3.58 MBytes  30.1 Mbits/sec  2573
    [  5]   6.00-7.00   sec  3.58 MBytes  30.0 Mbits/sec  2569
    [  5]   7.00-8.00   sec  3.57 MBytes  30.0 Mbits/sec  2565
    [  5]   8.00-9.00   sec  3.58 MBytes  30.0 Mbits/sec  2572
    [  5]   9.00-10.00  sec  3.58 MBytes  30.0 Mbits/sec  2569
    - - - - - - - - - - - - - - - - - - - - - - - - -
    [ ID] Interval           Transfer     Bitrate         Jitter    Lost/Total Datagrams
    [  5]   0.00-10.00  sec  35.8 MBytes  30.0 Mbits/sec  0.000 ms  0/25684 (0%)  sender
    [  5]   0.00-10.00  sec  35.8 MBytes  30.0 Mbits/sec  0.315 ms  0/25683 (0%)  receiver
    
    iperf Done.
    [root@st-am335x ~] # iperf3 -c 192.168.50.20 -u -b 100M -t 10
    Connecting to host 192.168.50.20, port 5201
    [  5] local 192.168.50.3 port 37232 connected to 192.168.50.20 port 5201
    [ ID] Interval           Transfer     Bitrate         Total Datagrams
    [  5]   0.00-1.00   sec  4.17 MBytes  35.0 Mbits/sec  2996
    [  5]   1.00-2.00   sec  4.36 MBytes  36.6 Mbits/sec  3133
    [  5]   2.00-3.00   sec  4.42 MBytes  37.0 Mbits/sec  3172
    [  5]   3.00-4.00   sec  4.49 MBytes  37.7 Mbits/sec  3226
    [  5]   4.00-5.00   sec  4.23 MBytes  35.5 Mbits/sec  3037
    [  5]   5.00-6.00   sec  4.45 MBytes  37.4 Mbits/sec  3199
    [  5]   6.00-7.00   sec  4.45 MBytes  37.4 Mbits/sec  3198
    [  5]   7.00-8.00   sec  4.45 MBytes  37.4 Mbits/sec  3198
    [  5]   8.00-9.00   sec  4.45 MBytes  37.3 Mbits/sec  3196
    [  5]   9.00-10.00  sec  4.45 MBytes  37.4 Mbits/sec  3199
    - - - - - - - - - - - - - - - - - - - - - - - - -
    [ ID] Interval           Transfer     Bitrate         Jitter    Lost/Total Datagrams
    [  5]   0.00-10.00  sec  43.9 MBytes  36.9 Mbits/sec  0.000 ms  0/31554 (0%)  sender
    [  5]   0.00-10.00  sec  43.9 MBytes  36.8 Mbits/sec  0.325 ms  0/31544 (0%)  receiver
    
    iperf Done.
    

    Thank you for your reply.

    qiling wu

  • Anyone can help me ?

  • Hi , Pls make sure device is configured properly

    Thanks

    Saurabh