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.

Linux/WL1831MOD: WiFi Hotspot too slow after sometime

Part Number: WL1831MOD
Other Parts Discussed in Thread: WL1831

Tool/software: Linux

Hi All,
We are using WL1831 Wifi module on iMx6x Android Marshmallow platform. We are supporting Hotspot using the WL1831 Wifi module and testing Streaming application on the iMx6x Device. 
Here is the testing senario and the problem statement:
=========================================
=> Enabling the Wifi Hotspot on the iMx6x Android.
=> Connect the off-the-shelf Wifi camera to the iMX6x Android device.
=> Run the Streaming application on the iMX6x Android device.
 
We are able to see the streaming image on the iMX6x Android device. But after sometime the iMx6x Android device is not able to receive the streaming image. 
After getting this issue, we ran the ping command on the iMX6x Android device to some other PC and we got the slow ping response.
I would like to know what could be issue on this.?
Regards,
Aravinth
  • Hi,

    It is hard to tell without seeing actual logs.

    How does the ping log look like when you say that ping response is slow?

    Is the entire system slow ot just wifi?

    Can you try capturing wifi sniffer log showing your ping test and see if there is an indication of an issue ?

    BR,

    Eyal

  • Hi Eyal,

    Thanks for your response. i have attached the iperf test result of the wifi module without using wifi camera. 

    Can you give me your feedback on this.?

    Regards,

    Aravinth

    wifi_iperf_test_log.txt
    =====================================================================================
    				UDP
    =====================================================================================
    *******************************************************************************
    			WL1831 Module work as a UDP client
    *******************************************************************************
    
    root@sabresd_6dq:/ # iperf -c 192.168.43.228 -t100 -u                          
    ------------------------------------------------------------
    Client connecting to 192.168.43.228, UDP port 5001
    Sending 1470 byte datagrams
    UDP buffer size:  160 KByte (default)
    ------------------------------------------------------------
    [  3] local 192.168.43.1 port 36995 connected with 192.168.43.228 port 5001
    [ ID] Interval       Transfer     Bandwidth
    [  3]  0.0-100.0 sec  12.5 MBytes  1.05 Mbits/sec
    [  3] Sent 8918 datagrams
    [  3] Server Report:
    [  3]  0.0-99.9 sec  12.5 MBytes  1.05 Mbits/sec  19.520 ms    1/ 8919 (0.011%)
    [  3]  0.0-99.9 sec  8 datagrams received out-of-order
    
    
    
    Phone work as UDP server:
    **************************
    
    iperf -s -u
    -----------------------------------------------------------------------------
    Server listening on UDP port 5001
    Receiving 1470 byte datagrams
    UDP buffer size: 208 KByte(default)
    ------------------------------------------------------------------------------
    [3]local 192.168.43.228 port 5001 connected with
    192.168.43.1 port 36995
    [ID]Interval Transfer Bandwidth Jitter Lost/
    Total Datagrams
    [3]0.0-99.9 sec 12.5 MBytes 1.04 Mbits/sec 19.815ms 1/8919(0.011%)
    [3]0.0-99.9 sec 8 datagrams received out-of-order
    
    
    ********************************************************************************
    		WL1831 Module work as a UDP server
    ********************************************************************************
    
    root@sabresd_6dq:/ # iperf -s -u                                               
    ------------------------------------------------------------
    Server listening on UDP port 5001
    Receiving 1470 byte datagrams
    UDP buffer size:  160 KByte (default)
    ------------------------------------------------------------
    [  3] local 192.168.43.1 port 5001 connected with 192.168.43.228 port 55280
    [ ID] Interval       Transfer     Bandwidth        Jitter   Lost/Total Datagrams
    [  3]  0.0-100.0 sec  12.4 MBytes  1.04 Mbits/sec   0.156 ms   47/ 8918 (0.53%)
    
    
    Phone work as UDP client:
    *************************
    
    iperf -c 192.168.43.1 t100 -u                                               
    ------------------------------------------------------------
    Client connecting to 192.168.43.1,UDP port 5001
    Sending 1470 byte datagrams
    UDP buffer size:  208 KByte (default)
    ------------------------------------------------------------
    [  3] local 192.168.43.228 port 55280 connected with 192.168.43.1 port 5001
    [ ID] Interval       Transfer     Bandwidth        Jitter   Lost/Total Datagrams
    [  3]  0.0-100.0 sec  12.5 MBytes   984 Kbits/sec   1.05 ms  47/ 8918 (0.53%)
    
    
    
    
    
    
    
    
    
    =============================================================================================
    				TCP
    =============================================================================================
    WL1831 Module work as a TCP Client:
    ***********************************
    
    root@sabresd_6dq:/ # iperf -c 192.168.43.228 -t100                             
    ------------------------------------------------------------
    Client connecting to 192.168.43.228, TCP port 5001
    TCP window size: 91.9 KByte (default)
    ------------------------------------------------------------
    [  3] local 192.168.43.1 port 53337 connected with 192.168.43.228 port 5001
    [ ID] Interval       Transfer     Bandwidth
    [  3]  0.0-100.1 sec   475 MBytes  39.8 Mbits/sec
    
    
    
    Phone work as TCP server:
    *************************
    
    iperf -s
    
    ----------------------------------------------------------------------------------------
    Server listening on TCP port 5001
    TCP window size: 91.9 KByte (default)
    --------------------------------------------------------------------------------------
    [  3] local 192.168.43.228 port 5001 connected with 192.168.43.1 port 53337
    [ ID] Interval       Transfer     Bandwidth
    [  3]  0.0-100.1 sec   475 MBytes  39.8 Mbits/sec
    
    
    ==========================================================================================
    WL1831 Module work as a TCP server:
    ***********************************
    
    root@sabresd_6dq:/ # iperf -s                                                  
    ------------------------------------------------------------
    Server listening on TCP port 5001
    TCP window size: 85.3 KByte (default)
    ------------------------------------------------------------
    [  4] local 192.168.43.1 port 5001 connected with 192.168.43.228 port 47879
    [ ID] Interval       Transfer     Bandwidth
    [  4]  0.0-100.1 sec   454 MBytes  38.1 Mbits/sec
    
    
    
    Phone work as TCP client:
    *************************
    
    iperf -c 192.168.43.1 -t100
    
    ------------------------------------------------------------
    Client connecting to 192.168.43.1, TCP port 5001
    TCP window size: 512KByte (default)+
    ------------------------------------------------------------
    [  4] local 192.168.43.228 port 47879 connected with 192.168.43.1 port 5001
    [ ID] Interval       Transfer     Bandwidth
    [  4]  0.0-100.0 sec   454 MBytes  38.1 Mbits/sec
    
    =====================================================================================================
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    

  • No sure what I am seeing here as you are not pushing high speed UDP traffic:
    iperf -c 192.168.43.228 -t100 -u

    try instead:
    iperf -c 192.168.43.228 -t100 -b100M -u

    to try and push 100MBPS traffic.
    I see that in TCP traffic you were seeing 40MBPS.

    BR,
    Eyal
  • Hi Eyal,

    I have attached log report of  "iperf -c 192.168.43.228 -t100 -b100M -u" your suggested command.

    Please give me your feedback on this.

    Regards,

    Aravinth

    wl1831-log-rebort.txt
    ===============================================================================
    UDP Server and Client
    ===============================================================================
    
    WL1831 work as UDP Client
    
    root@sabresd_6dq:/ # iperf -c 192.168.43.228 -t100  -u -b100m                  
    -------------------------------------------------------------------------------
    Client connecting to 192.168.43.228, UDP port 5001
    Sending 1470 byte datagrams
    UDP buffer size:  160 KByte (default)
    -------------------------------------------------------------------------------
    [  3] local 192.168.43.1 port 57871 connected with 192.168.43.228 port 5001
    [ ID] Interval       Transfer     Bandwidth
    [  3]  0.0-100.0 sec   560 MBytes  46.9 Mbits/sec
    [  3] Sent 399150 datagrams
    [  3] Server Report:
    [  3]  0.0-100.0 sec   559 MBytes  46.9 Mbits/sec   0.279 ms  
    250/399151 (0.063%)
    [  3]  0.0-100.0 sec  17 datagrams received out-of-order
    
    Phone work as UDP Server
    
    iperf -s -u                                               
    -------------------------------------------------------------------------------
    Server listening on UDP port 5001
    Receiving 1470 byte datagrams
    UDP buffer size:  208 KByte (default)
    -------------------------------------------------------------------------------
    [  3] local 192.168.43.228 port 5001 connected with 192.168.43.1 port 57871
    [ ID] Interval        Transfer     Bandwidth        Jitter     Lost/Total Datagrams
    [  3] 0.0-100.0 sec   559 MBytes   46.9 Mbits/sec    0.279 ms  250/399151 (0.063%)
    [  3] 0.0-100.0 sec  17 datagrams received out-of-order
    
    -------------------------------------------------------------------------------
    WL1831 work as UDP Server
    
    root@sabresd_6dq:/ # iperf -s -u                                               
    --------------------------------------------------------------------------------
    Server listening on UDP port 5001
    Receiving 1470 byte datagrams
    UDP buffer size:  160 KByte (default)
    ------------------------------------------------------------
    [  3] local 192.168.43.1 port 5001 connected with 192.168.43.228 port 42370
    [ ID] Interval       Transfer     Bandwidth        Jitter   Lost/Total Datagrams
    [  3]  0.0-100.0 sec   551 MBytes  46.2 Mbits/sec   1.854 ms   55/392905 (0.014%)
    [  3]  0.0-100.0 sec  1 datagrams received out-of-order
    
    
    Phone work as UDP Client
    
    iperf -c 192.168.43.1 -t100  -u -b100m
    -------------------------------------------------------------------------------
    Client connecting to 192.168.43.1, UDP port 5001
    Sending 1470 byte datagrams
    UDP buffer size:  208 KByte (default)
    -------------------------------------------------------------------------------
    
    [  3] local 192.168.43.228 port 42370 connected with 192.168.43.1 port 5001
    [ ID] Interval       Transfer     Bandwidth        
    [  3] 0.0-100.0 sec   551 MBytes  46.2Mbits/sec      
    [  3] Server Report:
    [  3]  0.0-100.0 sec   551 MBytes  46.2 Mbits/sec   1.853 ms   55/392905 (0.014%)
    [  3]  0.0-100.0 sec  1 datagrams received out-of-order
    
    
    

  • Hi Aravinth,

    In this log I see that you get 46.9 Mbits/sec of UDP traffic which is pretty good.
    What is the issue here?

    BR,
    Eyal