I've measured UDP client uplink throughput for 1Mbps using QCLI_demo command line interface with 1Mbps bitrate. It only transferred with 8kbps
1. Flash QCA4020 with QCLI_Demo project
2. Establish serial connection with higher comport as mentioned in setup guide with rate-115200, databits-8, stopbit-1, flowcontrol-none
3. Browse to WLAN in CLI and type 'enable'
4. Type 'Scan' to scan for availabel networks.
5. Connect to a network without security using "connect <ssid>" {Password isn't set when "SetWPAPassphrase" command is used. Need help with this}
6. Browse UP and goto NET
7. Use "dhcpv4c wlan0" command to enable dhcp client.(ping AP IP Address to verify)
8. From AP, send "iperf -s -i 1 -u"
9. From Net, send "iperf -c <IP> -t 20 -u -i 1 -b 1M"
Issue is only seen in client configuration with UDP throughput measurement. Low throughput is not observed with TCP UL/DL and UDP DL (server configuration)
Net> iperf -c 192.168.0.154 -t 20 -u -i 1 -b 1M
Net>
Net: ------------------------------------------------------------
Net: Client connecting to 192.168.0.154, UDP port 5001
Net: ------------------------------------------------------------
Net: Connecting
Net: Sending
Net: [ 0] 0.0- 1.0 sec 4.38 KBytes 16.00 Kbits/sec
Net: [ 0] 1.0- 2.0 sec 2.92 KBytes 8.00 Kbits/sec
Net: [ 0] 2.0- 3.0 sec 1.46 KBytes 8.00 Kbits/sec
Net: [ 0] 3.0- 4.0 sec 1.46 KBytes 8.00 Kbits/sec
Net: [ 0] 4.0- 5.0 sec 1.46 KBytes 8.00 Kbits/sec
Net: [ 0] 5.0- 6.0 sec 2.92 KBytes 8.00 Kbits/sec
Net: [ 0] 6.0- 7.0 sec 2.92 KBytes 8.00 Kbits/sec
[root@cpu533 test]# iperf -s -i 1 -u
------------------------------------------------------------
Server listening on UDP port 5001
Receiving 1470 byte datagrams
UDP buffer size: 160 KByte (default)
------------------------------------------------------------
[ 3] local 192.168.0.154 port 5001 connected with 192.168.0.151 port 62472
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 0.0- 1.0 sec 1.43 KBytes 11.7 Kbits/sec 0.000 ms 0/ 1 (0%)
[ 3] 1.0- 2.0 sec 1.43 KBytes 11.7 Kbits/sec 61.371 ms 0/ 1 (0%)
[ 3] 2.0- 3.0 sec 1.43 KBytes 11.7 Kbits/sec 119.414 ms 0/ 1 (0%)
[ 3] 3.0- 4.0 sec 1.43 KBytes 11.7 Kbits/sec 174.455 ms 0/ 1 (0%)
[ 3] 4.0- 5.0 sec 1.43 KBytes 11.7 Kbits/sec 227.545 ms 0/ 1 (0%)
Try setting below commands to make sure the device is in performance mode to compare results:
wlan SetPowerMode 0
net profile set 1
lp deepsleep 0
Thanks for the update. With above changes, the throughputs are
1. TCP TX -15 mbps
2. TCP RX - 15 mbps
3. UDP TX - 28 mbps
4. UDP RX - 38mbps
Is this discrepancy in throughputs expected or are there any additional parameters I missed like setting max tx buffers ?
Kindly refer to Document: 80-YA121-140 QCA402x (CDB2x) Development Kit User Guide, Table A-3 WLAN throughput instructions between CDB20 and Remote Machine for throughput commands.
Also, refer to latest QCA402x SDK release notes for expected Wi-Fi throughput performance numbers